Skip to content

Commit

Permalink
Fixing values.yaml docs for schema generation, corrected values.schem…
Browse files Browse the repository at this point in the history
…a.json
  • Loading branch information
julian-perge committed Oct 7, 2024
1 parent 3e11f60 commit 16739bc
Show file tree
Hide file tree
Showing 3 changed files with 175 additions and 75 deletions.
8 changes: 7 additions & 1 deletion charts/k6-operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,13 @@ spec:
{{- if .Values.manager.env }}
env:
{{- with .Values.manager.env }}
{{- toYaml . | nindent 10 }}
{{- toYaml . | nindent 12 }}
{{- end }}
{{- end }}
{{- if .Values.manager.envFrom }}
envFrom:
{{- with .Values.manager.envFrom }}
{{- toYaml . | nindent 12 }}
{{- end }}
{{- end }}
{{- if .Values.manager.containerSecurityContext }}
Expand Down
109 changes: 37 additions & 72 deletions charts/k6-operator/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"additionalProperties": false,
"properties": {
"affinity": {
"additionalProperties": false,
"additionalProperties": true,
"description": "affinity -- Affinity to be applied on all containers",
"title": "affinity",
"type": "object"
Expand All @@ -11,7 +11,7 @@
"additionalProperties": false,
"properties": {
"containerSecurityContext": {
"additionalProperties": false,
"additionalProperties": true,
"description": "authProxy.containerSecurityContext -- A security context defines privileges and access control settings for the container.",
"title": "containerSecurityContext",
"type": "object"
Expand Down Expand Up @@ -51,48 +51,38 @@
}
},
"title": "image",
"type": "object",
"required": [
"registry",
"repository",
"tag",
"pullPolicy"
]
"type": "object"
},
"livenessProbe": {
"additionalProperties": false,
"additionalProperties": true,
"description": "authProxy.livenessProbe -- Liveness probe in Probe format",
"title": "livenessProbe",
"type": "object"
},
"readinessProbe": {
"additionalProperties": false,
"additionalProperties": true,
"description": "authProxy.readinessProbe -- Readiness probe in Probe format",
"title": "readinessProbe",
"type": "object"
},
"resources": {
"additionalProperties": false,
"additionalProperties": true,
"description": "authProxy.resources -- rbac-proxy resource limitation/request",
"title": "resources",
"type": "object"
}
},
"title": "authProxy",
"type": "object",
"required": [
"enabled",
"image"
]
"type": "object"
},
"customAnnotations": {
"additionalProperties": false,
"additionalProperties": true,
"description": "customAnnotations -- Custom Annotations to be applied on all resources",
"title": "customAnnotations",
"type": "object"
},
"customLabels": {
"additionalProperties": false,
"additionalProperties": true,
"description": "customLabels -- Custom Label to be applied on all resources",
"title": "customLabels",
"type": "object"
Expand Down Expand Up @@ -136,16 +126,22 @@
"additionalProperties": false,
"properties": {
"containerSecurityContext": {
"additionalProperties": false,
"additionalProperties": true,
"description": "manager.containerSecurityContext -- A security context defines privileges and access control settings for the container.",
"title": "containerSecurityContext",
"type": "object"
},
"env": {
"additionalProperties": false,
"description": "manager.env -- Environment variables to be applied on the controller",
"items": {},
"description": "manager.env -- List of environment variables to set in the controller",
"title": "env",
"type": "object"
"type": "array"
},
"envFrom": {
"items": {},
"description": "manager.envFrom -- List of sources to populate environment variables in the controller",
"title": "envFrom",
"type": "array"
},
"image": {
"additionalProperties": false,
Expand All @@ -169,29 +165,23 @@
"type": "string"
},
"tag": {
"default": "controller-v0.0.15",
"default": "controller-v0.0.17",
"description": "manager.image.tag -- controller-manager image tag",
"title": "tag",
"type": "string"
}
},
"title": "image",
"type": "object",
"required": [
"registry",
"repository",
"tag",
"pullPolicy"
]
"type": "object"
},
"livenessProbe": {
"additionalProperties": false,
"additionalProperties": true,
"description": "manager.livenessProbe -- Liveness probe in Probe format",
"title": "livenessProbe",
"type": "object"
},
"readinessProbe": {
"additionalProperties": false,
"additionalProperties": true,
"description": "manager.readinessProbe -- Readiness probe in Probe format",
"title": "readinessProbe",
"type": "object"
Expand Down Expand Up @@ -221,12 +211,9 @@
"type": "string"
}
},
"description": "manager.resources.limits -- controller-manager Resources limits",
"title": "limits",
"type": "object",
"required": [
"cpu",
"memory"
]
"type": "object"
},
"requests": {
"additionalProperties": false,
Expand All @@ -244,21 +231,14 @@
"type": "string"
}
},
"description": "manager.resources.requests -- controller-manager Resources requests",
"title": "requests",
"type": "object",
"required": [
"cpu",
"memory"
]
"type": "object"
}
},
"description": "manager.resources -- controller-manager Resources definition",
"title": "resources",
"type": "object",
"required": [
"limits",
"requests"
]
"type": "object"
},
"serviceAccount": {
"additionalProperties": false,
Expand All @@ -277,20 +257,13 @@
}
},
"title": "serviceAccount",
"type": "object",
"required": [
"name",
"create"
]
"type": "object"
}
},
"title": "manager",
"type": "object",
"required": [
"replicas",
"serviceAccount",
"image",
"resources"
"image"
]
},
"namespace": {
Expand All @@ -303,26 +276,24 @@
"type": "boolean"
}
},
"description": "namespace -- Namespace creation",
"title": "namespace",
"type": "object",
"required": [
"create"
]
"type": "object"
},
"nodeSelector": {
"additionalProperties": false,
"additionalProperties": true,
"description": "nodeSelector -- Node Selector to be applied on all containers",
"title": "nodeSelector",
"type": "object"
},
"podAnnotations": {
"additionalProperties": false,
"additionalProperties": true,
"description": "podAnnotations -- Custom Annotations to be applied on all pods",
"title": "podAnnotations",
"type": "object"
},
"podLabels": {
"additionalProperties": false,
"additionalProperties": true,
"description": "podLabels -- Custom Label to be applied on all pods",
"title": "podLabels",
"type": "object"
Expand All @@ -338,13 +309,10 @@
}
},
"title": "prometheus",
"type": "object",
"required": [
"enabled"
]
"type": "object"
},
"tolerations": {
"additionalProperties": false,
"additionalProperties": true,
"description": "tolerations -- Tolerations to be applied on all containers",
"title": "tolerations",
"type": "object"
Expand All @@ -354,10 +322,7 @@
"type": "object",
"required": [
"global",
"installCRDs",
"namespace",
"prometheus",
"authProxy",
"manager"
]
}
Loading

0 comments on commit 16739bc

Please sign in to comment.