-
Notifications
You must be signed in to change notification settings - Fork 124
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
add support for custom environment variables to the server deployment #291
add support for custom environment variables to the server deployment #291
Conversation
Please review the community contribution document for the process that is in place before submitting any PRs. We ask that a github issue be created first which describes the details of the bug or enhancement request being asked for. The issue provides a chance for the Kiali maintainers to have a dialogue with you before you submit any PRs. For example, this is not complete without an accompanying operator PR. In addition, I believe this request has been asked for before - though I can't remember the resolution (if there was one). Did you search in the github issues/discussions for a request for proxy settings? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there is no accompanying operator PR that goes with this server helm chart PR. We cannot merge this without that additional work. See checklists:
I'm going to work on the operator implementation. Should be done today. This is going to be done as part of kiali/kiali#7569 |
Test procedures for this PR:
helm template \
--set deployment.custom_envs[0].name="FOO1" \
--set deployment.custom_envs[0].value="http://aa.example.com:123" \
--set deployment.custom_envs[1].name="FOO2" \
--set deployment.custom_envs[1].value=123 \
--set deployment.custom_envs[2].name="FOO3" \
--set deployment.custom_envs[2].value=true \
-n istio-system kiali-server _output/charts/kiali-server-*.tgz should result in the following within the Deployment: - name: "FOO1"
value: "http://aa.example.com:123"
- name: "FOO2"
value: "123"
- name: "FOO3"
value: "true" And to see it actually deploy, use "helm install" and look at the pod yaml: helm install \
--set deployment.custom_envs[0].name="FOO1" \
--set deployment.custom_envs[0].value="http://aa.example.com:123" \
--set deployment.custom_envs[1].name="FOO2" \
--set deployment.custom_envs[1].value=123 \
--set deployment.custom_envs[2].name="FOO3" \
--set deployment.custom_envs[2].value=true \
-n istio-system kiali-server _output/charts/kiali-server-*.tgz After the pod deploys, look at the envs and confirm the three custom ones are there:
results in [
{
"name": "ACTIVE_NAMESPACE",
"valueFrom": {
"fieldRef": {
"apiVersion": "v1",
"fieldPath": "metadata.namespace"
}
}
},
{
"name": "LOG_LEVEL",
"value": "info"
},
{
"name": "LOG_FORMAT",
"value": "text"
},
{
"name": "LOG_TIME_FIELD_FORMAT",
"value": "2006-01-02T15:04:05Z07:00"
},
{
"name": "LOG_SAMPLER_RATE",
"value": "1"
},
{
"name": "FOO1",
"value": "http://aa.example.com:123"
},
{
"name": "FOO2",
"value": "123"
},
{
"name": "FOO3",
"value": "true"
}
] |
I created the operator PR for this functionality.
operator PR that introduces this functionality: kiali/kiali-operator#829 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ran through the test steps and it worked. I'll approve and merge (assuming the operator part works as well). We can remove the bad comment iin a trivial follow-up, not sure the original author will get to it.
I was able to commit it - github allows maintainers to commit suggestions so I had permission from the github UI to do it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
re-approving after trivial change
a corporate L7 proxy sits between my kiali deployment and my prometheus server. I need to specify the (HTTP|HTTPS|NO)_PROXY environment variables in my helm chart deployment.
part of: kiali/kiali#7569