Skip to content

pod_environment_secret for cronjob #2902

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

Open
mcatany opened this issue Apr 15, 2025 · 0 comments
Open

pod_environment_secret for cronjob #2902

mcatany opened this issue Apr 15, 2025 · 0 comments

Comments

@mcatany
Copy link

mcatany commented Apr 15, 2025

  • Which image of the operator are you using? ghcr.io/zalando/postgres-operator:v1.11.0
  • Where do you run it - cloud or metal? Kubernetes
  • Are you running Postgres Operator in production? yes
  • Type of issue? Feature Request

We have set for our operator pod_environment_secret variable, so variables like AWS_ACCESS_KEY_ID are not hardcoded in the pod specification. The problem is that we have the logicalbackup enabled and the cronjob for that doesn't use it, but hardcodes the values of the envars. Is there any way to do that? Or does the possibility of implement that feature in the near future?

The code is here:

envVars = append(envVars, v1.EnvVar{Name: "AWS_ACCESS_KEY_ID", Value: c.OpConfig.LogicalBackup.LogicalBackupS3AccessKeyID})

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