We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ff662cc commit e6c1528Copy full SHA for e6c1528
pkg/mutation/mutation_deploy.go
@@ -111,6 +111,10 @@ func injectionDeploy(request *admissionv1.AdmissionRequest) (*admissionv1.Admiss
111
target.Spec.Template.Labels[config.ApplicationLabel] = target.Labels[config.ApplicationLabel]
112
target.Spec.Template.Labels[config.ServiceNameLabel] = target.Labels[config.ServiceNameLabel]
113
target.Spec.Template.Labels[config.ServiceGroupLabel] = target.Labels[config.ServiceGroupLabel]
114
+ if _, ok := target.Spec.Template.Labels[config.WebHookMatchKey]; ok {
115
+ // remove
116
+ delete(target.Spec.Template.Labels, config.WebHookMatchKey)
117
+ }
118
added = true
119
} else {
120
// Check if the x-live-enabled label exists in deploy's spec.template.metadata.labels; if not, add it.
0 commit comments