-
Notifications
You must be signed in to change notification settings - Fork 4
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(secret): Support reading the license key from secret #95
Conversation
@@ -51,6 +51,11 @@ jobs: | |||
sleep 30 | |||
kubectl -n ingress-nginx get all | |||
|
|||
- name: Create secret |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The test suite uses the values files in test/cases/
. Instead of hardcoding a license there, we can create the "bindplane" secret with only the license
key. I added a license to the repo's secrets.
@@ -6,6 +6,7 @@ config: | |||
sessions_secret: 4484766F-5016-4077-B8E0-0DE1D637854B | |||
server_url: http://bindplane.local:3001 | |||
remote_url: ws://bindplane.local:3001 | |||
licenseUseSecret: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test case will mount the license from the secret created in the CI workflow.
65b3a67
to
4510e02
Compare
Description of Changes
Added a new option,
config.licenseUseSecret
. When true, the license will be read from the "bindplane" secret. This option is only considered ifconfig.license
is not set. If both options are not set, the license will not be set in the environment (this is the existing behavior).Please check that the PR fulfills these requirements