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.4"
schemaGenerator = "AUTO"
schemaValidator = "KCL"
}
podinfo_v5: {
chart = "podinfo"
repoURL = "https://stefanprodan.github.io/podinfo"
targetRevision = "5.2.1"
targetRevision = "6.9.4"
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.4"
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.4"
schemaValidator?: "KCL" | "HELM" = "KCL"

153 changes: 150 additions & 3 deletions docs/examples/src/charts/podinfo/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,116 @@
"title": "hpa",
"type": "object"
},
"httpRoute": {
"additionalProperties": true,
"description": "Expose the service via Gateway HTTPRoute\nRequires a Gateway controller\nDocs https://gateway-api.sigs.k8s.io/guides/",
"properties": {
"additionalLabels": {
"additionalProperties": true,
"description": "Add additional labels to the HTTPRoute.",
"required": [],
"title": "additionalLabels",
"type": "object"
},
"annotations": {
"additionalProperties": true,
"description": "HTTPRoute annotations.",
"required": [],
"title": "annotations",
"type": "object"
},
"enabled": {
"default": false,
"description": "HTTPRoute enabled.",
"required": [],
"title": "enabled",
"type": "boolean"
},
"hostnames": {
"description": "Hostnames matching HTTP header.",
"items": {
"required": [],
"type": "string"
},
"required": [],
"title": "hostnames",
"type": "array"
},
"parentRefs": {
"description": "Which Gateways this Route is attached to.",
"items": {
"additionalProperties": true,
"properties": {
"name": {
"default": "gateway",
"required": [],
"title": "name",
"type": "string"
},
"sectionName": {
"default": "http",
"required": [],
"title": "sectionName",
"type": "string"
}
},
"required": [],
"type": "object"
},
"required": [],
"title": "parentRefs",
"type": "array"
},
"rules": {
"description": "List of rules and filters applied.",
"items": {
"additionalProperties": true,
"properties": {
"matches": {
"items": {
"additionalProperties": true,
"properties": {
"path": {
"additionalProperties": true,
"properties": {
"type": {
"default": "PathPrefix",
"required": [],
"title": "type",
"type": "string"
},
"value": {
"default": "/",
"required": [],
"title": "value",
"type": "string"
}
},
"required": [],
"title": "path",
"type": "object"
}
},
"required": [],
"type": "object"
},
"required": [],
"title": "matches",
"type": "array"
}
},
"required": [],
"type": "object"
},
"required": [],
"title": "rules",
"type": "array"
}
},
"required": [],
"title": "httpRoute",
"type": "object"
},
"image": {
"additionalProperties": true,
"properties": {
Expand All @@ -240,14 +350,22 @@
"title": "pullPolicy",
"type": "string"
},
"pullSecrets": {
"items": {
"required": []
},
"required": [],
"title": "pullSecrets",
"type": "array"
},
"repository": {
"default": "ghcr.io/stefanprodan/podinfo",
"required": [],
"title": "repository",
"type": "string"
},
"tag": {
"default": "6.7.1",
"default": "6.9.4",
"required": [],
"title": "tag",
"type": "string"
Expand All @@ -259,6 +377,7 @@
},
"ingress": {
"additionalProperties": true,
"description": "Expose the service via Kubernetes Ingress\nRequires an Ingress controller\nDocs https://kubernetes.io/docs/concepts/services-networking/ingress/",
"properties": {
"additionalLabels": {
"additionalProperties": true,
Expand Down Expand Up @@ -387,6 +506,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 Expand Up @@ -526,14 +652,22 @@
"title": "enabled",
"type": "boolean"
},
"imagePullSecrets": {
"items": {
"required": []
},
"required": [],
"title": "imagePullSecrets",
"type": "array"
},
"repository": {
"default": "redis",
"default": "docker.io/redis",
"required": [],
"title": "repository",
"type": "string"
},
"tag": {
"default": "7.0.7",
"default": "8.4.0",
"required": [],
"title": "tag",
"type": "string"
Expand Down Expand Up @@ -602,6 +736,12 @@
"additionalProperties": true,
"description": "Kubernetes Service settings",
"properties": {
"additionalLabels": {
"additionalProperties": true,
"required": [],
"title": "additionalLabels",
"type": "object"
},
"annotations": {
"additionalProperties": true,
"required": [],
Expand Down Expand Up @@ -657,6 +797,13 @@
"title": "nodePort",
"type": "integer"
},
"trafficDistribution": {
"default": "",
"description": "Stable from Kubernetes v1.33+ with a value of PreferClose. Additional values are PreferSameZone and PreferSameNode from v1.34+. Empty string means it's disabled.",
"required": [],
"title": "trafficDistribution",
"type": "string"
},
"type": {
"default": "ClusterIP",
"required": [],
Expand Down
Loading