-
Notifications
You must be signed in to change notification settings - Fork 826
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
JSON Schema Validation for Helm #4094
base: main
Are you sure you want to change the base?
Conversation
This PR exceeds the recommended size of 1000 lines. Please make sure you are NOT addressing multiple issues with one PR. Note this PR might be rejected due to its size. |
Build Failed 😭 Build Id: 2b3ac633-f045-4686-8a28-e14c86851ba0 Status: FAILURE To get permission to view the Cloud Build view, join the agones-discuss Google Group. |
5af90dd
to
2519685
Compare
This PR exceeds the recommended size of 1000 lines. Please make sure you are NOT addressing multiple issues with one PR. Note this PR might be rejected due to its size. |
Build Failed 😭 Build Id: decbfeb6-a5ed-47ac-86cb-deb1069309f1 Status: FAILURE To get permission to view the Cloud Build view, join the agones-discuss Google Group. |
/gcbrun |
Build Succeeded 🥳 Build Id: 2fcdd657-cd8a-481f-b285-e763be78e8a5 The following development artifacts have been built, and will exist for the next 30 days:
A preview of the website (the last 30 builds are retained): To install this version:
|
This PR exceeds the recommended size of 1000 lines. Please make sure you are NOT addressing multiple issues with one PR. Note this PR might be rejected due to its size. |
Build Succeeded 🥳 Build Id: 4fda0ebf-7dba-4bb8-b086-788007e7ab8a The following development artifacts have been built, and will exist for the next 30 days:
A preview of the website (the last 30 builds are retained): To install this version:
|
What type of PR is this?
/kind feature
What this PR does / Why we need it:
This PR adds the Helm schema validation file
values.schema.json
.Reasoning for the addition of the validation file is described more fully in #4093:
Which issue(s) this PR fixes:
Working on #4093
Special notes for your reviewer:
Details on the creation of the
values.schema.json
file:helm get values agones -n agones-system -a -ojson
because this infers that all fields are required, when many of the fields are not in fact required, and can be safely set to nil.{{- if .Values.agones.controller.generateTLS }}
will evaluate tofalse
if.Values.agones.controller.generateTLS
isnil
, so.Values.agones.controller.generateTLS
is not a required value.{{- $replicas := (int .Values.agones.controller.replicas) }}
mean thatagones
,agones.controller
, andagones.controller.replicas
are all required values as these will throw errors ifnil
.helm install
orhelm upgrade
with the flag--skip-schema-validation
.CI/CD testing and documentation will be added in future PRs. This PR can be manually tested with: