-
Notifications
You must be signed in to change notification settings - Fork 324
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
Migrate server.enterpriseLicense to global.enterpriseLicense #856
Conversation
2ff2b1e
to
c94448b
Compare
@@ -1,5 +1,6 @@ | |||
{{- if (or (and (ne (.Values.client.enabled | toString) "-") .Values.client.enabled) (and (eq (.Values.client.enabled | toString) "-") .Values.global.enabled)) }} | |||
{{- if .Values.client.snapshotAgent.enabled }} | |||
{{- if .Values.server.enterpriseLicense }}{{ fail ".Values.server.enterpriseLicense has been moved to .Values.global.enterpriseLicense" }}{{ end -}} |
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.
{{- if .Values.server.enterpriseLicense }}{{ fail ".Values.server.enterpriseLicense has been moved to .Values.global.enterpriseLicense" }}{{ end -}} | |
{{- if .Values.server.enterpriseLicense }}{{ fail "server.enterpriseLicense has been moved to global.enterpriseLicense" }}{{ end -}} |
Should be an error the user can understand. The don't know what .Values is.
c94448b
to
df90cf9
Compare
@@ -1,5 +1,6 @@ | |||
{{- if (or (and (ne (.Values.server.enabled | toString) "-") .Values.server.enabled) (and (eq (.Values.server.enabled | toString) "-") .Values.global.enabled)) }} | |||
{{- if (and .Values.server.enterpriseLicense.secretName .Values.server.enterpriseLicense.secretKey (not .Values.server.enterpriseLicense.enableLicenseAutoload)) }} | |||
{{- if (and .Values.global.enterpriseLicense.secretName .Values.global.enterpriseLicense.secretKey (not .Values.global.enterpriseLicense.enableLicenseAutoload)) }} | |||
{{- if .Values.server.enterpriseLicense }}{{ fail "server.enterpriseLicense has been moved to global.enterpriseLicense" }}{{ end -}} |
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.
Could we put the fail at the top? And then maybe we only need one for the entire chart.
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.
AAH! ok that makes sense. It should simplify the PR.
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.
Should the bats test for this check also reside only for that file or does it make sense to test that change in all the files that utilize the license? 🤔
I see the argument in doing both.
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.
I think the pattern we've followed is only for that file. Let me check.
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.
Yeah, I think that's the pattern.
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.
🙏 thanks!!
df90cf9
to
30d44f5
Compare
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.
Needs a changelog
@@ -1,5 +1,6 @@ | |||
{{- if (or (and (ne (.Values.server.enabled | toString) "-") .Values.server.enabled) (and (eq (.Values.server.enabled | toString) "-") .Values.global.enabled)) }} | |||
{{- if (and .Values.server.enterpriseLicense.secretName .Values.server.enterpriseLicense.secretKey (not .Values.server.enterpriseLicense.enableLicenseAutoload)) }} | |||
{{- if (and .Values.global.enterpriseLicense.secretName .Values.global.enterpriseLicense.secretKey (not .Values.global.enterpriseLicense.enableLicenseAutoload)) }} | |||
{{- if .Values.server.enterpriseLicense }}{{ fail ".Values.server.enterpriseLicense has been moved to .Values.global.enterpriseLicense" }}{{ end -}} |
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.
I don't think we need this in all templates. As long as one of them fails at any given time, that should be fine. So for example, it makes sense to keep the failure in servers and clients since you can run with either just servers or just clients, but for ent license job, we probably don't need it.
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.
heh!! Luke raced you to it!!
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.
Oh oops! haha Luke FTW!
30d44f5
to
e1fe321
Compare
Changes proposed in this PR:
enterpriseLicense
config from being under theserver
stanza to theglobal
stanza.How I've tested this PR:
How I expect reviewers to test this PR:
Checklist: