-
Notifications
You must be signed in to change notification settings - Fork 749
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 issue 1778 update1 #1826
fix issue 1778 update1 #1826
Conversation
…re in uppercase, reformat the value of MARIADB_PASSWORD to mariadb-password. Also, reformat the secretconfig of the secrets. getSecretPathsLegacy returns secretSubPath. Signed-off-by: jose luis <2064537+sosan@users.noreply.github.com>
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cdrage, sosan The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
This caused a regression in our Compose file: services:
a:
image: alpine:3.19
command: ["cat", "/etc/hello_world.yaml"]
secrets:
- source: hello-world
target: /etc/hello_world.yaml
secrets:
hello-world:
file: config/hello_world.yaml Now, I am unable to |
I would implement this solution differently, without touching any
The output of the original Compose by @sosan should be: spec:
containers:
- env:
- name: MARIADB_ROOT_PASSWORD_FILE
value: /run/secrets/MARIADB_PASSWORD
image: mariadb:11
name: database
volumeMounts:
- mountPath: /run/secrets
name: mariadb-password
subPath: MARIADB_PASSWORD
restartPolicy: Always
volumes:
- name: mariadb-password
secret:
items:
- key: mariadb-password
path: MARIADB_PASSWORD
secretName: mariadb-password |
Hi! Could you open an issue so we make sure that we track this? |
in case /run/secrets/MARIADB_PASSWORD and secrets: MARIADB_PASSWORD are in uppercase, reformat the value of MARIADB_PASSWORD to mariadb-password. Also, reformat the secretconfig of the secrets. also getSecretPathsLegacy returns secretSubPath.
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
updated fix to contemplate mays in secrets:
Which issue(s) this PR fixes:
Fixes #1778
Special notes for your reviewer: