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 5cfc005 commit 4343f76Copy full SHA for 4343f76
pkg/k8sutil/context.go
@@ -185,6 +185,9 @@ func (cc *ClusterContext) SetClusterLabels(labels map[string]string) {
185
}
186
187
func (cc *ClusterContext) SetClusterAnnotations(annotations map[string]string) {
188
+ if annotations == nil {
189
+ annotations = make(map[string]string)
190
+ }
191
delete(annotations, "kubectl.kubernetes.io/last-applied-configuration")
192
cc.Annotations = annotations
193
0 commit comments