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

use {{ .Release.Name }} as cluster name #168

Merged
merged 7 commits into from
Nov 8, 2018

Conversation

tennix
Copy link
Member

@tennix tennix commented Nov 6, 2018

GKE marketplace needs to set {{ .Release.Name }} to its managed resources labels. But we don't have that in tidb-cluster resources. Helm [recommends] use {{ .Release.Name }} as instance label. We've already use instance labels for pod int tidb-operator code

// InstanceLabelKey is Kubernetes recommended label key, it represents a unique name identifying the instance of an application
// It's the cluster name in our case
InstanceLabelKey string = "app.kubernetes.io/instance"

To keep consistent, we should use release name for cluster name too.

xiaojingchen
xiaojingchen previously approved these changes Nov 7, 2018
weekface
weekface previously approved these changes Nov 7, 2018
@tennix
Copy link
Member Author

tennix commented Nov 7, 2018

/run-e2e-tests

@tennix tennix dismissed stale reviews from weekface and xiaojingchen via 35bbad5 November 7, 2018 13:27
@tennix
Copy link
Member Author

tennix commented Nov 7, 2018

/run-e2e-tests

gregwebs
gregwebs previously approved these changes Nov 7, 2018
xiaojingchen
xiaojingchen previously approved these changes Nov 8, 2018
@tennix tennix dismissed stale reviews from xiaojingchen and gregwebs via 72362df November 8, 2018 07:50
@tennix
Copy link
Member Author

tennix commented Nov 8, 2018

/run-e2e-tests

@tennix tennix merged commit d6ac8ab into pingcap:master Nov 8, 2018
@tennix tennix deleted the use-release-name-for-cluster branch November 8, 2018 10:02
queenliuxx pushed a commit to queenliuxx/tidb-operator that referenced this pull request Dec 19, 2018
* use {{ .Release.Name }} as cluster name

* keep cluster name for resource names

* fix tests

* fix master merge conflict
fgksgf pushed a commit to fgksgf/tidb-operator that referenced this pull request Dec 23, 2024
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

Successfully merging this pull request may close these issues.

4 participants