-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Register K3s CRDs with schema #7310
Comments
##Environment Details Infrastructure
Node(s) CPU architecture, OS, and version:
Cluster Configuration:
Config.yaml:
Reproduced behavior existing behavior
Results:
Validated schema rejects malformed yamlValidation Steps
Results: $ k apply -f bad_boolean.yaml
$ k apply -f good_boolean.yaml
Additional context / logs: $ cat bad_boolean.yaml
$ cat good_boolean.yaml
|
K3s tracking issue for:
HelmChartSpec.items.spec.set
can stall controller queue processing helm-controller#172We are registering the CRDs without any schema, which allows users to create resources with invalid data. The problem wouldn't show up until the resource was deserialized by the controller, at which point it would stop processing events from the watch channel because it was stuck on the event with the bad resource.
Example: create the following resource (with one of the
set
keys using an incorrect value of boolean type)You should see the following error:
The HelmChart "cert-manager" is invalid: spec.set.installCRDs: Invalid value: "boolean": spec.set.installCRDs in body must be of type integer,string: "boolean"
The HelmChart should be accepted when the value is properly quoted as
"true"
The text was updated successfully, but these errors were encountered: