Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Splunk Operator: Add labels to the metadata of the statefulsets created by the operator #1444

Open
mcaci opened this issue Feb 14, 2025 · 0 comments
Assignees

Comments

@mcaci
Copy link

mcaci commented Feb 14, 2025

Please select the type of request

Enhancement

Tell us more

Describe the request
Today the statefulsets created by the operator include labels in the metadata of the pod they ask to deploy (see https://github.com/splunk/splunk-operator/blob/main/pkg/splunk/enterprise/configuration.go#L671).
The objective of this issue is to add the same set of labels to the metadata of the created statefulset itself (and not just of the dependent pods).

Expected behavior
Labels in the metadata of the statefulset created by the operator are the same as the ones in the metadata of the pods deployed by that statefulset.

Different Splunk setup on K8S and K8s environment should not have impacts on this feature

Reproduction/Testing steps
N/A

Proposed changes(optional)
I prepared a PR for it, I will post it soon

K8s collector data(optional)
N/A

Additional context(optional)
This proposal starts from the fact that we use metadata labels on all k8s resources we deploy to attribute properties and ownership to all of them. With this change we would be able to do the same on the statefulsets created by the operator and not just the pods.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants