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

Redis Secret Password Key #434

Merged

Conversation

JohnLahr
Copy link
Contributor

what

  • Added redisSecretPasswordKey value
  • Kept previous password value as default for backward-compatibility

why

This allows users to override the default password key used when specifying an existing Secret for Redis. This makes for a more seamless integration with popular third-party Redis Helm charts.

For example, the Bitnami Redis chart creates a secret called <release>-redis with a key called redis-password whose value is the password generated for that Redis distribution. Allowing users to specify an arbitrary key name means they can seamlessly integrate that Redis chart with this Atlantis chart and use the same secret.

tests

I have tested this successfully in an Amazon EKS cluster.

references

N/A

@JohnLahr JohnLahr requested a review from a team as a code owner October 31, 2024 23:32
- Added `redisSecretPasswordKey` value

Added a new `redisSecretPasswordKey` value that allows users to override
the default `password` key used when specifying an existing `Secret` for
Redis. This makes for a more seamless integration with popular
third-party Redis Helm charts.

Signed-off-by: John Lahr <john@johnlahr.me>
@JohnLahr JohnLahr force-pushed the redis-secret-password-key branch from 4b90e6d to b538425 Compare October 31, 2024 23:38
@GMartinez-Sisti
Copy link
Member

Hi @JohnLahr, thank you for the contribution! Would you mind adding a couple of unit test cases to test this?

JohnLahr and others added 2 commits November 2, 2024 12:51
Co-authored-by: Gabriel Martinez <19713226+GMartinez-Sisti@users.noreply.github.com>
Signed-off-by: John <john@johnlahr.me>
Signed-off-by: John Lahr <john@johnlahr.me>
@JohnLahr
Copy link
Contributor Author

JohnLahr commented Nov 3, 2024

@GMartinez-Sisti Added unit tests. Not as familiar with writing tests for charts, but I think I had enough context to work with. Let me know if those aren't sufficient!

@GMartinez-Sisti
Copy link
Member

@GMartinez-Sisti Added unit tests. Not as familiar with writing tests for charts, but I think I had enough context to work with. Let me know if those aren't sufficient!

Thanks @JohnLahr! They look great.

Now there’s just one small update requirement for the docs. Please check the job that failed.

Signed-off-by: John Lahr <john@johnlahr.me>
@JohnLahr JohnLahr force-pushed the redis-secret-password-key branch from 77b80fc to fa9d1d1 Compare November 3, 2024 21:03
@JohnLahr
Copy link
Contributor Author

JohnLahr commented Nov 3, 2024

Apologies. That should be fixed now 👍

Signed-off-by: John Lahr <john@johnlahr.me>
@GMartinez-Sisti
Copy link
Member

Apologies. That should be fixed now 👍

No need for apologies! Thank you again for the contribution 😁

@GMartinez-Sisti GMartinez-Sisti merged commit 8bcff6a into runatlantis:main Nov 4, 2024
5 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