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

Fail early if postgres_configuration_secret is specified by does not exist #2015

Merged

Conversation

rooftopcellist
Copy link
Member

@rooftopcellist rooftopcellist commented Feb 10, 2025

SUMMARY

Current, the operator checks if the secret exists, sees that it does not, then generates a secret and sets that on on the status.

status:
    postgresConfigurationSecret: awx-postgres-configuration

So you end up with the generated secret on the status, but still have an invalid postgres_configuration_secret on the AWX spec.

spec:
    postgres_configuration_secret: custom-pg-configuration

That could cause some serious issues for backup and restores...

This PR fails early if the specified secret does not exist and leaves an error on the AWX CR for the user to find, and fix.

ISSUE TYPE
  • New or Enhanced Feature

@rooftopcellist rooftopcellist force-pushed the better-error-handling-pg-secret branch from 625ecd2 to a66ef26 Compare February 10, 2025 21:55
@rooftopcellist rooftopcellist merged commit bb4f4c2 into ansible:devel Feb 17, 2025
7 checks passed
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

Successfully merging this pull request may close these issues.

2 participants