Skip to content

Commit 69ad376

Browse files
Add labels to the metadata of the statefulsets created by the operator (#1457)
* Add labels to the metadata of the statefulsets created by the operator * add tests to transfer labels to statefulsets * fix unit tests
1 parent c1ac691 commit 69ad376

File tree

10 files changed

+93
-55
lines changed

10 files changed

+93
-55
lines changed

pkg/splunk/common/urls_testingcode.go

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

pkg/splunk/enterprise/clustermanager_test.go

Lines changed: 13 additions & 8 deletions
Large diffs are not rendered by default.

pkg/splunk/enterprise/clustermaster_test.go

Lines changed: 11 additions & 6 deletions
Large diffs are not rendered by default.

pkg/splunk/enterprise/configuration.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -648,6 +648,7 @@ func getSplunkStatefulSet(ctx context.Context, client splcommon.ControllerClient
648648
ObjectMeta: metav1.ObjectMeta{
649649
Name: GetSplunkStatefulsetName(instanceType, cr.GetName()),
650650
Namespace: cr.GetNamespace(),
651+
Labels: labels,
651652
},
652653
}
653654
}

pkg/splunk/enterprise/indexercluster_test.go

Lines changed: 11 additions & 6 deletions
Large diffs are not rendered by default.

pkg/splunk/enterprise/licensemanager_test.go

Lines changed: 9 additions & 5 deletions
Large diffs are not rendered by default.

pkg/splunk/enterprise/licensemaster_test.go

Lines changed: 10 additions & 5 deletions
Large diffs are not rendered by default.

pkg/splunk/enterprise/monitoringconsole_test.go

Lines changed: 10 additions & 6 deletions
Large diffs are not rendered by default.

pkg/splunk/enterprise/searchheadcluster_test.go

Lines changed: 16 additions & 11 deletions
Large diffs are not rendered by default.

pkg/splunk/enterprise/standalone_test.go

Lines changed: 10 additions & 6 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)