-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- define simple configmap key/value env vars directly - support opting out of creating a secret - support setting complex env and envFrom directly - add strict jsonschema validation - remove some unnecessary hardcoded env vars
- Loading branch information
Showing
11 changed files
with
279 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
apiVersion: v2 | ||
name: kubechecks | ||
description: A Helm chart for kubechecks | ||
version: 0.3.2 | ||
appVersion: "1.0.10" | ||
version: 0.4.0 | ||
appVersion: "1.1.1" | ||
type: application | ||
maintainers: | ||
- name: zapier |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
{{ if .Values.configMap.create }} | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: {{ include "kubechecks.name" . }} | ||
labels: | ||
{{ include "kubechecks.labels" . | indent 4 }} | ||
data: | ||
{{- range $index, $element := .Values.deployment.env }} | ||
{{ $index | quote }}: {{ $element | quote }} | ||
{{- end }} | ||
{{- range $key, $value := .Values.configMap.env }} | ||
{{ $key | quote }}: {{ $value | quote }} | ||
{{- end }} | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
deployment: | ||
configMap: | ||
create: true | ||
env: | ||
KUBECHECKS_ARGOCD_API_INSECURE: "false" | ||
KUBECHECKS_TEST_VALUE: "Hello" | ||
|
||
ingress: | ||
create: true | ||
annotations: | ||
kubernetes.io/ingress.class: an-ingress-class | ||
kubernetes.io/ingress.class: an-ingress-class |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,217 @@ | ||
{ | ||
"$defs": { | ||
"key-value-map": { | ||
"type": "object", | ||
"additionalProperties": { | ||
"type": "string" | ||
} | ||
} | ||
}, | ||
"type": "object", | ||
"properties": { | ||
"autoscaling": { | ||
"type": "object", | ||
"additionalProperties": false, | ||
"properties": { | ||
"create": { | ||
"type": "boolean" | ||
}, | ||
"minReplicas": { | ||
"type": "integer" | ||
}, | ||
"maxReplicas": { | ||
"type": "integer" | ||
}, | ||
"targetCPUUtilizationPercentage": { | ||
"type": "integer" | ||
}, | ||
"targetMemoryUtilizationPercentage": { | ||
"type": "integer" | ||
} | ||
} | ||
}, | ||
"commonLabels": { | ||
"$ref": "#/$defs/key-value-map" | ||
}, | ||
"deployment": { | ||
"type": "object", | ||
"additionalProperties": false, | ||
"properties": { | ||
"affinity": { | ||
"type": "object" | ||
}, | ||
"annotations": { | ||
"$ref": "#/$defs/key-value-map" | ||
}, | ||
"args": { | ||
"type": "array", | ||
"items": { | ||
"type": "string" | ||
} | ||
}, | ||
"env": { | ||
"type": "array" | ||
}, | ||
"envFrom": { | ||
"type": "array" | ||
}, | ||
"image": { | ||
"type": "object", | ||
"additionalProperties": false, | ||
"properties": { | ||
"pullPolicy": { | ||
"type": "string" | ||
}, | ||
"name": { | ||
"type": "string" | ||
}, | ||
"tag": { | ||
"type": "string" | ||
} | ||
}, | ||
"required": [ | ||
"name", | ||
"pullPolicy", | ||
"tag" | ||
] | ||
}, | ||
"imagePullSecrets": { | ||
"type": "array" | ||
}, | ||
"livenessProbe": { | ||
"type": "object" | ||
}, | ||
"nodeSelector": { | ||
"type": "object" | ||
}, | ||
"podAnnotations": { | ||
"$ref": "#/$defs/key-value-map" | ||
}, | ||
"podSecurityContext": { | ||
"type": "object" | ||
}, | ||
"readinessProbe": { | ||
"type": "object" | ||
}, | ||
"replicaCount": { | ||
"type": "integer" | ||
}, | ||
"resources": { | ||
"type": "object" | ||
}, | ||
"securityContext": { | ||
"type": "object" | ||
}, | ||
"startupProbe": { | ||
"type": "object" | ||
}, | ||
"tolerations": { | ||
"type": "array" | ||
}, | ||
"volumes": { | ||
"type": "array" | ||
}, | ||
"volumeMounts": { | ||
"type": "array" | ||
} | ||
} | ||
}, | ||
"ingress": { | ||
"type": "object", | ||
"additionalProperties": false, | ||
"properties": { | ||
"annotations": { | ||
"$ref": "#/$defs/key-value-map" | ||
}, | ||
"create": { | ||
"type": "boolean" | ||
}, | ||
"className": { | ||
"type": "string" | ||
}, | ||
"hosts": { | ||
"type": "object", | ||
"additionalProperties": { | ||
"type": "object", | ||
"additionalProperties": false, | ||
"properties": { | ||
"paths": { | ||
"type": "array", | ||
"items": { | ||
"type": "object", | ||
"additionalProperties": false, | ||
"properties": { | ||
"path": { | ||
"type": "string" | ||
}, | ||
"pathType": { | ||
"type": "string" | ||
} | ||
} | ||
}, | ||
"minItems": 1 | ||
} | ||
} | ||
} | ||
}, | ||
"labels": { | ||
"$ref": "#/$defs/key-value-map" | ||
}, | ||
"tls": { | ||
"type": "array" | ||
} | ||
} | ||
}, | ||
"secrets": { | ||
"type": "object", | ||
"additionalProperties": false, | ||
"properties": { | ||
"create": { | ||
"type": "boolean" | ||
}, | ||
"name": { | ||
"type": "string" | ||
}, | ||
"env": { | ||
"$ref": "#/$defs/key-value-map" | ||
} | ||
} | ||
}, | ||
"service": { | ||
"type": "object", | ||
"additionalProperties": false, | ||
"properties": { | ||
"create": { | ||
"type": "boolean" | ||
}, | ||
"type": { | ||
"type": "string" | ||
}, | ||
"port": { | ||
"type": "integer" | ||
}, | ||
"name": { | ||
"type": "string" | ||
} | ||
} | ||
}, | ||
"serviceAccount": { | ||
"type": "object", | ||
"additionalProperties": false, | ||
"properties": { | ||
"annotations": { | ||
"$ref": "#/$defs/key-value-map" | ||
}, | ||
"create": { | ||
"type": "boolean" | ||
}, | ||
"enabled": { | ||
"type": "boolean" | ||
}, | ||
"name": { | ||
"type": "string" | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters