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

map a secret as one json file instead of separate key-value pairs #73

Open
ulrichwinter opened this issue Mar 14, 2023 · 0 comments
Open

Comments

@ulrichwinter
Copy link

When I create a secret manually e.g. using:
kubectl create secret generic test-secret --namespace epi-dev --from-file=some-file.json
and map the resulting secret as a volume into a pod, then the pod will see a file named some-file.json in the mapped location.

How can I achieve the same with aws-secret-operator:
Getting the secret value of the AWS Secret as one whole json file in the pod?

Looking into the resulting kubernetes secret, the difference is just the filename within the data like here:

apiVersion: v1
data:
  some-file.json: base64-encoded-json-content....
kind: Secret
metadata:
  name: test-secret
type: Opaque

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

No branches or pull requests

1 participant