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

Fix cluster name label of es scripts config map #7630

Merged
merged 1 commit into from
Mar 18, 2024

Conversation

thbkrkr
Copy link
Contributor

@thbkrkr thbkrkr commented Mar 15, 2024

This fixes a small bug where we were using the configMap name to set the label value of the cluster name, instead of the cluster name.

Testing:

> k get cm elasticsearch-sample-es-scripts -o json | jq .metadata.labels

Before:

{
  "common.k8s.elastic.co/type": "elasticsearch",
  "elasticsearch.k8s.elastic.co/cluster-name": "elasticsearch-sample-es-scripts"
}

After:

{
  "common.k8s.elastic.co/type": "elasticsearch",
  "elasticsearch.k8s.elastic.co/cluster-name": "elasticsearch-sample"
}

@thbkrkr thbkrkr added >bug Something isn't working v2.13.0 labels Mar 15, 2024
@thbkrkr thbkrkr merged commit 077db06 into main Mar 18, 2024
5 checks passed
@thbkrkr thbkrkr deleted the cluster-name-label-value-of-es-scripts-configmap branch March 18, 2024 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug Something isn't working v2.13.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants