Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/examples/src/charts/charts.k
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ charts: helm.Charts = {
podinfo: {
chart = "podinfo"
repoURL = "https://stefanprodan.github.io/podinfo"
targetRevision = "6.7.1"
targetRevision = "6.9.2"
schemaGenerator = "AUTO"
schemaValidator = "KCL"
}
podinfo_v5: {
chart = "podinfo"
repoURL = "https://stefanprodan.github.io/podinfo"
targetRevision = "5.2.1"
targetRevision = "6.9.2"
schemaGenerator = "AUTO"
schemaValidator = "KCL"
}
Expand Down
5 changes: 3 additions & 2 deletions docs/examples/src/charts/podinfo/chart.k
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
This file was generated by the KCL auto-gen tool. DO NOT EDIT.
Editing this file might prove futile when you re-run the KCL auto-gen generate command.
"""

import helm

schema Chart(helm.Chart):
Expand All @@ -13,12 +14,12 @@ schema Chart(helm.Chart):
values : Values | any, optional
chart : str, required, default is "podinfo"
repoURL : str, required, default is "https://stefanprodan.github.io/podinfo"
targetRevision : str, optional, default is "6.7.1"
targetRevision : str, optional, default is "6.9.2"
schemaValidator : "KCL" | "HELM", optional, default is "KCL"
"""
values?: Values | any
chart: str = "podinfo"
repoURL: str = "https://stefanprodan.github.io/podinfo"
targetRevision?: str = "6.7.1"
targetRevision?: str = "6.9.2"
schemaValidator?: "KCL" | "HELM" = "KCL"

9 changes: 8 additions & 1 deletion docs/examples/src/charts/podinfo/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@
"type": "string"
},
"tag": {
"default": "6.7.1",
"default": "6.9.2",
"required": [],
"title": "tag",
"type": "string"
Expand Down Expand Up @@ -387,6 +387,13 @@
"title": "podDisruptionBudget",
"type": "object"
},
"podSecurityContext": {
"additionalProperties": true,
"description": "set pod security context",
"required": [],
"title": "podSecurityContext",
"type": "object"
},
"probes": {
"additionalProperties": true,
"description": "https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes",
Expand Down
12 changes: 11 additions & 1 deletion docs/examples/src/charts/podinfo/values.schema.k
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
This file was generated by the KCL auto-gen tool. DO NOT EDIT.
Editing this file might prove futile when you re-run the KCL auto-gen generate command.
"""

schema Values:
r"""
Values
Expand Down Expand Up @@ -38,6 +39,8 @@ schema Values:
podAnnotations : ValuesPodAnnotations, optional
podDisruptionBudget : ValuesPodDisruptionBudget, optional
Disruption budget will be configured only when the replicaCount is greater than 1
podSecurityContext : ValuesPodSecurityContext, optional
set pod security context
probes : ValuesProbes, optional
https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
redis : ValuesRedis, optional
Expand Down Expand Up @@ -79,6 +82,7 @@ schema Values:
nodeSelector?: ValuesNodeSelector
podAnnotations?: ValuesPodAnnotations
podDisruptionBudget?: ValuesPodDisruptionBudget
podSecurityContext?: ValuesPodSecurityContext
probes?: ValuesProbes
redis?: ValuesRedis
replicaCount?: int
Expand Down Expand Up @@ -211,7 +215,7 @@ schema ValuesImage:
----------
pullPolicy : str, optional, default is "IfNotPresent"
repository : str, optional, default is "ghcr.io/stefanprodan/podinfo"
tag : str, optional, default is "6.7.1"
tag : str, optional, default is "6.9.2"
"""
[...str]: any
pullPolicy?: str
Expand Down Expand Up @@ -319,6 +323,12 @@ schema ValuesPodDisruptionBudget:
"""
[...str]: any

schema ValuesPodSecurityContext:
r"""
set pod security context
"""
[...str]: any

schema ValuesProbes:
r"""
https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
Expand Down
5 changes: 3 additions & 2 deletions docs/examples/src/charts/podinfo_v5/chart.k
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
This file was generated by the KCL auto-gen tool. DO NOT EDIT.
Editing this file might prove futile when you re-run the KCL auto-gen generate command.
"""

import helm

schema Chart(helm.Chart):
Expand All @@ -13,12 +14,12 @@ schema Chart(helm.Chart):
values : Values | any, optional
chart : str, required, default is "podinfo"
repoURL : str, required, default is "https://stefanprodan.github.io/podinfo"
targetRevision : str, optional, default is "5.2.1"
targetRevision : str, optional, default is "6.9.2"
schemaValidator : "KCL" | "HELM", optional, default is "KCL"
"""
values?: Values | any
chart: str = "podinfo"
repoURL: str = "https://stefanprodan.github.io/podinfo"
targetRevision?: str = "5.2.1"
targetRevision?: str = "6.9.2"
schemaValidator?: "KCL" | "HELM" = "KCL"

Loading