-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[Installer]: add license key to Installer config #7120
Conversation
f8181e2
to
d4a698f
Compare
d4a698f
to
cd5fec0
Compare
/werft run 👍 started the job as gitpod-build-sje-installer-license-key.3 |
8735b79
to
c69ecf3
Compare
This includes secret validation if it's present in the config
c69ecf3
to
a9fcc08
Compare
Codecov Report
@@ Coverage Diff @@
## main #7120 +/- ##
==========================================
- Coverage 19.04% 5.76% -13.29%
==========================================
Files 2 13 +11
Lines 168 1162 +994
==========================================
+ Hits 32 67 +35
- Misses 134 1094 +960
+ Partials 2 1 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
license?: string; | ||
licenseFile?: string; |
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.
👍
a9fcc08
to
e67b493
Compare
/hold |
/unhold |
let license = config.license | ||
const licenseFile = config.licenseFile | ||
if (licenseFile) { | ||
license = fs.readFileSync(licenseFile, "utf-8") |
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.
👍
/lgtm nice! 👍 |
LGTM label has been added. Git tree hash: 7ece5094d633533ba47e010b07470c0415a53bb9
|
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.
lgtm but should we have this documented somewhere that defining licenseFile will take precedence while loading license
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: geropl, princerachit Associated issue: #6868 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Description
Allows an enterprise license key to be added to the Installer config surface. This creates an optional Kubernetes secret from the volume and loads it into the server config. Also adds cluster validation to ensure that a license secret is set if included in the config YAML.
In the server, this adds
licenseFile
to the config interface and, if set, it loads it from that location and sets the value tolicense
.Related Issue(s)
Fixes #6868
How to test
Create a license, load it into a secret and deploy it to your cluster, adding the following block to your config YAML:
Happy to demo it to the approver(s) if required
Release Notes
Documentation