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

gitlab-ci-pipelines-exporter: Allow specifying existing Secrets #21

Merged
merged 3 commits into from
Nov 19, 2021
Merged

gitlab-ci-pipelines-exporter: Allow specifying existing Secrets #21

merged 3 commits into from
Nov 19, 2021

Conversation

shivjm
Copy link
Contributor

@shivjm shivjm commented Sep 25, 2021

This adds the ability to specify the name of Secrets for the GitLab API token and the webhook token instead of specifying the values directly. You can specify either, both, or none this way, and they expect the values to be under different keys, so the Secret can be the same for both if desired.

I also extended the Makefile to allow validating all YAML files under tests/ so I could add tests for both directly specifying the values and specifying existing Secrets. These tests pass, and the revised chart works in a live cluster as well.

Closes #18

@Nevoff89
Copy link
Contributor

@mvisonneau Hi, could you accept this MR?

@mvisonneau mvisonneau merged commit 59aeca9 into mvisonneau:main Nov 19, 2021
@mvisonneau
Copy link
Owner

thanks a lot @shivjm! 🙇

@mvisonneau mvisonneau self-assigned this Nov 19, 2021
@mvisonneau mvisonneau added the enhancement New feature or request label Nov 19, 2021
@shivjm shivjm deleted the allow-specifying-existing-gcpe-secrets branch November 19, 2021 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

gitlab-ci-pipelines-exporter: Allow specifying name of existing Secret containing tokens
3 participants