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 f76cc4a commit 8f9c974Copy full SHA for 8f9c974
pkg/k8sutil/statefulset.go
@@ -65,8 +65,10 @@ type containerParameters struct {
65
func (oc *OperatorContext) ReconcileStatefulset() (reconcile.Result, error) {
66
cr := oc.GetMarkLogicServer()
67
logger := oc.ReqLogger
68
- // labels := getCommonLabels()
69
- groupLabels := cr.GetLabels()
+ groupLabels := cr.Labels
+ if groupLabels == nil {
70
+ groupLabels = getSelectorLabels(cr.Spec.Name)
71
+ }
72
groupLabels["app.kubernetes.io/instance"] = cr.Spec.Name
73
groupAnnotations := cr.GetAnnotations()
74
delete(groupAnnotations, "banzaicloud.com/last-applied")
0 commit comments