-
Notifications
You must be signed in to change notification settings - Fork 8.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
Provide a schema for values for the Helm chart #10838
Comments
This would be a great first PR @hamjo |
/triage accepted |
This is stale, but we won't close it automatically, just bare in mind the maintainers may be busy with other tasks and will reach your issue ASAP. If you have any question or request to prioritize this, please reach |
Totally agree with @hamjo! Supplying a helm schema would also help against misconfigurations even before installing. I could see me work on this ticket. My general plan is to utilize I already started to work a little on this to see if it is feasible and it seems that a rudimentary schema can be generated almost as is.
Executing controller:
image:
chroot: false
image: ingress-nginx/controller
tag: "v1.10.0"
digest: sha256:42b3f0e5d0846876b1791cd3afeb5f1cbbe4259d6f35651dcc1b5c980925379c
# @schema
# enum: [IfNotPresent, Always, Never]
# @schema
pullPolicy: IfNotPresent
# @schema
# type: integer
# minimum: 0
# @schema
# www-data -> uid 101
runAsUser: 101 results in this schema: {
"properties": {
"controller": {
"properties": {
"image": {
"properties": {
"chroot": { "type": "boolean" },
"digest": { "type": "string" },
"image": { "type": "string" },
"pullPolicy": {
"enum": [ "IfNotPresent", "Always", "Never" ]
},
"runAsUser": {
"type": "integer",
"minimum": 0
},
"tag": { "type": "string" }
},
"type": "object"
}
},
"type": "object"
},
"global": {
"type": "object"
}
},
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object"
} |
/assign |
It would be great to have a schema values file available for the Helm chart.
Artifact Hub seems to be supporting it, making values configuration more searchable.
This would enable auto completion for IDEs supporting it when writing values file.
/kind documentation
/remove-kind feature
The text was updated successfully, but these errors were encountered: