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