Skip to content

Commit

Permalink
Update Namespace plugin for Kserve configs
Browse files Browse the repository at this point in the history
  • Loading branch information
VaishnaviHire committed Aug 10, 2023
1 parent 0727ad7 commit 14e3a13
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions pkg/plugins/namespacePlugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ func ApplyNamespacePlugin(manifestNamespace string, resMap resmap.ResMap) error
},
{
Gvk: resid.Gvk{
Group: "kustomize.config.k8s.io/v1beta1",
Kind: "Kustomization",
Group: "admissionregistration.k8s.io",
Kind: "ValidatingWebhookConfiguration",
},
Path: "namespace",
Path: "webhooks/clientConfig/service/namespace",
CreateIfNotPresent: false,
},
{
Expand All @@ -50,7 +50,15 @@ func ApplyNamespacePlugin(manifestNamespace string, resMap resmap.ResMap) error
Kind: "MutatingWebhookConfiguration",
},
Path: "webhooks/clientConfig/service/namespace",
CreateIfNotPresent: true,
CreateIfNotPresent: false,
},
{
Gvk: resid.Gvk{
Group: "apiextensions.k8s.io",
Kind: "CustomResourceDefinition",
},
Path: "spec/conversion/webhook/clientConfig/service/namespace",
CreateIfNotPresent: false,
},
},
UnsetOnly: false,
Expand Down

0 comments on commit 14e3a13

Please sign in to comment.