Skip to content
This repository has been archived by the owner on Sep 24, 2024. It is now read-only.

Commit

Permalink
fix: nullify webhook config
Browse files Browse the repository at this point in the history
  • Loading branch information
raffis committed Feb 8, 2024
1 parent 3cf1edb commit 4ff6b5c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,12 +227,14 @@ func main() {
// Conversion Webhook is unsupported since there will be no pods running handling the conversion request
if crd.Spec.Conversion != nil {
crd.Spec.Conversion.Strategy = "None"
crd.Spec.Conversion.Webhook = nil
}

crds = append(crds, &crd)
case schema.GroupVersionKind{Group: "", Version: "v1", Kind: "Namespace"}:
namespaces[obj.GetName()] = &obj
default:
// objects = append(objects, &obj)
objects = append(objects, &obj)
}
}

Expand Down

0 comments on commit 4ff6b5c

Please sign in to comment.