feat(helm): AS-706 helm values schema#396
Conversation
findtopher
left a comment
There was a problem hiding this comment.
It'd be nice to see some documentation about how a customer might use this; right now it just looks like another thing that will frustrate me when I put a percentage in where an integer was tested....
Customers won't use this directly. When they run a But we can talk offline to discuss how to make sure no one has a negative experience! |
9ea0f6b
findtopher
left a comment
There was a problem hiding this comment.
It's unfortunate that this can't be used ahead of time to validate the config file... oh well!
|
Closing for now. I am going to use a new tool which gives some more freedom over the union of types and will need to retest. |
Rationale
A helm values schema allows us to validate/verify a user's
values.yamlfile entries before installing. It allows us to then display helpful messages about type mismatches / expected values / etc.This, hopefully, makes installations easier for customers and allows us to provide a smoother experience.
Changes
Adds a new
pre-commithook forhelm-schemaAdds a new
makefiletarget for installing helm pluginsUpdates
pre-commitworkflow to installhelm-schemafor the newpre-commithookCreates the new
values.schema.jsonfile with the following settings:Also disables a new markdown lint finding:
Checklist
Testing
Test 1: Inserting a map where an array is expected
Using this test, we should throw an error because
topologySpreadConstraintsshould be a listRunning the below shows it does!
Test 2: Inserting a string where an int is expected
Using this test, we should throw an error because
podDisruptionBudget.minAvailable" should be anint`Running the below shows it does!
Test 3: Making sure additional keys are allowed
Using this test, we should not throw an error
Running the below shows it does!