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

[helm] set app.kubernetes.io/instance label appropriately, define the new deployment.instance_name value #75

Merged
merged 2 commits into from
May 19, 2021

Conversation

jmazzitelli
Copy link
Contributor

@jmazzitelli jmazzitelli commented May 15, 2021

fixes: kiali/kiali#4018

This only touches the kiali-server helm chart.

If you leave all defaults as-is, this works as before and you will not notice any differences. The only difference is if you want to set fullnameOverride.

To simulate the way the operator works, the kiali-server helm chart now uses deployment.instance_name rather than the now-deprecated fullnameOverride. For backwards compatibility, if fullnameOverride is not kiali but deployment.instance_name remains its default value of kiali, then fullnameOverride is used, otherwise deployment.instance_name is used. The old nameOverride is deprecated and now ignored.

A second commit in this PR merely removes the quotes from the dashboard apiVersion fields for consistency to all other resources.

However, for backward compat, use fullnameOverride if non-kiali but instance_name is.
Change labels to be consistent with the way the operator sets them. The app.kubernetes.io/instance is the instance name of this install with app.kuberentes.io/name fixed as "kiali".
@jmazzitelli
Copy link
Contributor Author

This is a companion to kiali/kiali-operator#313

I did a quick test and this works.

@jmazzitelli
Copy link
Contributor Author

jmazzitelli commented May 17, 2021

To test - install via helm by passing in --set deployment.instance_name and see that the resources have their names prefixed with that setting's value (not "kiali") -- and of course everything should still work.

make build-helm-charts
helm install kiali-server -n istio-system --set deployment.instance_name=foo _output/charts/kiali-server-1.35.0-SNAPSHOT.tgz 

@jmazzitelli jmazzitelli merged commit c47e9e1 into kiali:master May 19, 2021
@jmazzitelli jmazzitelli deleted the instance_name branch May 19, 2021 20:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[helm] get server helm chart to work with deployment.instance_name like operator
2 participants