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

chore(charts): allow using existing secrets #947

Closed
wants to merge 15 commits into from

Conversation

thbcmlowk
Copy link
Contributor

@thbcmlowk thbcmlowk commented Jul 2, 2024

Description

Part of FL-1642

  • Add existingSecretName key for the following sections
    • database
    • addAccountOperator
    • redis
    • minio
  • Enabled existingSecret key for postgres section (see docs)
  • Added helpers to define the secret name based on whether one was provided
  • Injected new secret-name templates in deployments

How has this been tested?

Checklist

  • changelog was updated with notable changes
  • [] documentation was updated

@thbcmlowk thbcmlowk force-pushed the chore/use-existing-secrets branch 2 times, most recently from 847395d to b4d07f6 Compare July 3, 2024 09:26
@Substra Substra deleted a comment from Owlfred Jul 4, 2024
@Substra Substra deleted a comment from Owlfred Jul 4, 2024
Copy link

linear bot commented Jul 4, 2024

@Substra Substra deleted a comment from linear bot Jul 4, 2024
@thbcmlowk thbcmlowk force-pushed the chore/use-existing-secrets branch 2 times, most recently from 5fd18eb to b08da8e Compare July 4, 2024 16:02
Signed-off-by: Thibault Camalon <[email protected]>
Signed-off-by: Thibault Camalon <[email protected]>
Signed-off-by: Thibault Camalon <[email protected]>
Signed-off-by: Thibault Camalon <[email protected]>
Signed-off-by: Thibault Camalon <[email protected]>
@thbcmlowk thbcmlowk marked this pull request as ready for review July 4, 2024 16:06
@thbcmlowk thbcmlowk requested a review from a team as a code owner July 4, 2024 16:06
| Name | Description | Value |
| ---------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------ |
| `postgresql.enabled` | Deploy a PostgreSQL instance along the backend for its use | `true` |
| `database.auth.existingSecretName` | An alternative to giving username and password; must have `OBJECTSTORE_ACCESSKEY` and `OBJECTSTORE_SECRETKEY` keys. | `""` |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This key is duplicated 🤔

Comment on lines +440 to +441
{{- if .Values.redis.auth.existingSecretName -}}
{{- .Values.database.auth.existingSecretName }}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🕵️
I think the values have not been changed here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤦

*/}}
{{- define "substra-backend.redis.secretName" -}}
{{- if .Values.redis.auth.existingSecretName -}}
{{- .Values.database.auth.existingSecretName }}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also, the new redis value has not been documented

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The redis section has:

## @skip redis

*/}}
{{- define "substra-backend.accountOperator.secretName" -}}
{{- if .Values.addAccountOperator.existingSecretName -}}
{{- .Values.database.auth.existingSecretName }}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😇

@thbcmlowk thbcmlowk marked this pull request as draft July 9, 2024 09:02
@thbcmlowk thbcmlowk closed this Jul 10, 2024
@SdgJlbl SdgJlbl deleted the chore/use-existing-secrets branch July 18, 2024 08:51
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