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

feat(snipeit): use existing secret for env var config #203

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

QuentinBtd
Copy link

@QuentinBtd QuentinBtd commented Aug 22, 2024

Why ?
I need to use secrets created by external-secrets.

How ?
Use env value from secrets ref

- Update references from `mysql` to `config.mysql` in `deployment.yaml`
- Update references from `mysql` to `config.mysql` in `secret.yaml`

Signed-off-by: Quentin BERTRAND <[email protected]>
- Update environment variable handling for MySQL credentials
- Refactor the conditional checks for MySQL secrets
- Reorganize setting of environment variables for MySQL connection details
- Adjust handling of `APP_KEY` secret retrieval

Signed-off-by: Quentin BERTRAND <[email protected]>
- Update environment variable handling for MySQL user, database, password, port, and key
- Improve handling of secret key references for MySQL configuration
- Adjust the way secrets are referenced for MySQL configuration

Signed-off-by: Quentin BERTRAND <[email protected]>
- Update the `values.yaml` file in the `snipeit` directory

Signed-off-by: Quentin BERTRAND <[email protected]>
- Update variable references from `config.mysql` to `mysql` in `snipeit/templates/secret.yaml`
- Correct variable names in the file to match the correct structure

Signed-off-by: Quentin BERTRAND <[email protected]>
- Comment out `keySecretName` and `keySecretKey` settings
- Add comments for `keySecretName` and `keySecretKey` settings

Signed-off-by: Quentin BERTRAND <[email protected]>
- Update the image tag to "v6.4.2" in values.yaml

Signed-off-by: Quentin BERTRAND <[email protected]>
- Update the `path` field in the `ingress` section.

Signed-off-by: Quentin BERTRAND <[email protected]>
- Update the `path` value in the ingress configuration to `/`

Signed-off-by: Quentin BERTRAND <[email protected]>
- Update the image tag to an empty value in `values.yaml` in the `snipeit` directory.

Signed-off-by: Quentin BERTRAND <[email protected]>
THE SUMMARY:

- Refactor the function to use a more efficient algorithm
- Update error handling for better user experience

Signed-off-by: Quentin BERTRAND <[email protected]>
@QuentinBtd QuentinBtd marked this pull request as ready for review August 23, 2024 13:10
@QuentinBtd
Copy link
Author

@jnmcfly 👋

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.

1 participant