We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e451dfe commit c7c70bbCopy full SHA for c7c70bb
pkg/plugins/common/kustomize/v2/scaffolds/internal/templates/config/crd/kustomization.go
@@ -91,7 +91,11 @@ func (f *Kustomization) GetCodeFragments() machinery.CodeFragmentsMap {
91
92
if !f.Resource.Webhooks.IsEmpty() {
93
webhookPatch := fmt.Sprintf(webhookPatchCodeFragment, suffix)
94
- fragments[machinery.NewMarkerFor(f.Path, webhookPatchMarker)] = []string{webhookPatch}
+
95
+ marker := machinery.NewMarkerFor(f.Path, webhookPatchMarker)
96
+ if _, exists := fragments[marker]; !exists {
97
+ fragments[marker] = []string{webhookPatch}
98
+ }
99
}
100
101
// Generate resource code fragments
0 commit comments