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 4343f76 commit 29990a6Copy full SHA for 29990a6
pkg/k8sutil/context.go
@@ -219,6 +219,9 @@ func (oc *OperatorContext) SetOperatorLabels(labels map[string]string) {
219
}
220
221
func (oc *OperatorContext) SetOperatorAnnotations(annotations map[string]string) {
222
+ if annotations == nil {
223
+ annotations = make(map[string]string)
224
+ }
225
delete(annotations, "kubectl.kubernetes.io/last-applied-configuration")
226
oc.Annotations = annotations
227
0 commit comments