-
Notifications
You must be signed in to change notification settings - Fork 64
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
feat: additional env vars for ratify container via helm chart #1854
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅ |
@mannbiher thanks for opening up the PR. At yesterday's PR review meeting (10/8/24), we discussed the PR and had a few questions:
|
http_proxy, https_proxy and no_proxy environment variables are respected by go http client, so ratify automatically supports it. I am currently using these variables to use ratify behind a proxy.
I tested it today. helm template ratify . --set "env[0].name=RATIFY_CERT_ROTATION" --set-string "env[0].value=0" --set featureFlags.RATIFY_CERT_ROTATION=true Generated manifest env:
- name: RATIFY_CERT_ROTATION
value: "0"
- name: RATIFY_CERT_ROTATION
value: "1"
- name: RATIFY_EXPERIMENTAL_HIGH_AVAILABILITY
value: "0" Installation works and the pod spec shows same variable defined two times. However the later value takes effect inside pod. The helm chart change has the env block first, so it should not impact other environment variables. Environment variables inside pod. bash-5.2$ cat /proc/1/environ|tr '\0' '\n'|grep RATIFY_
RATIFY_CONFIG=/.ratify/
RATIFY_EXPERIMENTAL_HIGH_AVAILABILITY=0
RATIFY_CERT_ROTATION=1
I would like to have the helm chart change released earlier. But we can wait. I could maintain a local copy of helm chart. |
0c4d6e7
to
b252717
Compare
@mannbiher would it be possible for you to update the |
b252717
to
7ab3ee1
Compare
Done. |
0fa5821
to
722cb3c
Compare
Signed-off-by: Maneesh Singh <[email protected]>
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.
Lgtm thanks for the PR!
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.
lgtm, thanks for the change!
…-project#1854) Signed-off-by: Maneesh Singh <[email protected]>
…-project#1854) Signed-off-by: Maneesh Singh <[email protected]>
Description
What this PR does / why we need it:
Allow passing additional environment variables to ratify container via helm chart. E.g. when ratify requires proxy configuration to download plugin, user can pass the proxy environment variables via helm chart.
Which issue(s) this PR fixes (optional, using
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when the PR gets merged):Fixes #1853
Type of change
Please delete options that are not relevant.
main
branch)How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Please also list any relevant details for your test configuration
charts/ratify helm template ratify . --set featureFlags.RATIFY_CERT_ROTATION=true
Checklist:
Post Merge Requirements
Helm Chart Change