Probe is not enabled by default

This commit is contained in:
Laszlo Fogas
2020-10-22 09:55:51 +02:00
parent ed00f71754
commit e3e9980deb
8 changed files with 342 additions and 20 deletions
+1 -1
View File
@@ -15,4 +15,4 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.6.1
version: 0.7.0
+3 -1
View File
@@ -55,15 +55,17 @@ spec:
- name: http
containerPort: {{ .Values.containerPort }}
protocol: TCP
{{- if .Values.probe.enabled }}
readinessProbe:
failureThreshold: 3
httpGet:
path: {{ .Values.probe }}
path: {{ .Values.probe.path }}
port: {{ .Values.containerPort }}
scheme: HTTP
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 10
{{- end }}
volumeMounts:
{{- range .Values.volumes }}
- name: {{ .name }}
@@ -0,0 +1,25 @@
suite: test deployment
templates:
- deployment.yaml
- configmap.yaml
tests:
- it: Should set a readiness probe
set:
probe:
enabled: true
asserts:
- equal:
path: spec.template.spec.containers[0].readinessProbe
value:
failureThreshold: 3
httpGet:
path: "/"
port: 8080
scheme: HTTP
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 10
- it: Should not set a readinessProbe
asserts:
- isNull:
path: spec.template.spec.containers[0].readinessProbe
+283
View File
@@ -0,0 +1,283 @@
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "http://example.com/example.json",
"type": "object",
"title": "The root schema",
"description": "The root schema comprises the entire JSON document.",
"default": {},
"examples": [
{
"image": {
"repository": "nginx",
"tag": "latest"
},
"replicas": 1,
"nameOverride": "",
"fullnameOverride": "",
"podAnnotations": {},
"podSecurityContext": {
"fsGroup": 999
},
"securityContext": {},
"containerPort": 8080,
"resources": {},
"nodeSelector": {},
"tolerations": [],
"affinity": {},
"secret": {
"enabled": false
},
"shell": "/bin/sh"
}
],
"required": [
"image",
"replicas",
"nameOverride",
"fullnameOverride",
"podAnnotations",
"podSecurityContext",
"securityContext",
"containerPort",
"resources",
"nodeSelector",
"tolerations",
"affinity",
"probe",
"secret",
"shell"
],
"properties": {
"image": {
"$id": "#/properties/image",
"type": "object",
"title": "The image schema",
"description": "An explanation about the purpose of this instance.",
"default": {},
"examples": [
{
"repository": "nginx",
"tag": "latest"
}
],
"required": [
"repository",
"tag"
],
"properties": {
"repository": {
"$id": "#/properties/image/properties/repository",
"type": "string",
"title": "The repository schema",
"description": "An explanation about the purpose of this instance.",
"default": "",
"examples": [
"nginx"
]
},
"tag": {
"$id": "#/properties/image/properties/tag",
"type": "string",
"title": "The tag schema",
"description": "An explanation about the purpose of this instance.",
"default": "",
"examples": [
"latest"
]
}
},
"additionalProperties": true
},
"replicas": {
"$id": "#/properties/replicas",
"type": "integer",
"title": "The replicas schema",
"description": "An explanation about the purpose of this instance.",
"default": 0,
"examples": [
1
]
},
"nameOverride": {
"$id": "#/properties/nameOverride",
"type": "string",
"title": "The nameOverride schema",
"description": "An explanation about the purpose of this instance.",
"default": "",
"examples": [
""
]
},
"fullnameOverride": {
"$id": "#/properties/fullnameOverride",
"type": "string",
"title": "The fullnameOverride schema",
"description": "An explanation about the purpose of this instance.",
"default": "",
"examples": [
""
]
},
"podAnnotations": {
"$id": "#/properties/podAnnotations",
"type": "object",
"title": "The podAnnotations schema",
"description": "An explanation about the purpose of this instance.",
"default": {},
"examples": [
{}
],
"required": [],
"additionalProperties": true
},
"podSecurityContext": {
"$id": "#/properties/podSecurityContext",
"type": "object",
"title": "The podSecurityContext schema",
"description": "An explanation about the purpose of this instance.",
"default": {},
"examples": [
{
"fsGroup": 999
}
],
"required": [
"fsGroup"
],
"properties": {
"fsGroup": {
"$id": "#/properties/podSecurityContext/properties/fsGroup",
"type": "integer",
"title": "The fsGroup schema",
"description": "An explanation about the purpose of this instance.",
"default": 0,
"examples": [
999
]
}
},
"additionalProperties": true
},
"securityContext": {
"$id": "#/properties/securityContext",
"type": "object",
"title": "The securityContext schema",
"description": "An explanation about the purpose of this instance.",
"default": {},
"examples": [
{}
],
"required": [],
"additionalProperties": true
},
"containerPort": {
"$id": "#/properties/containerPort",
"type": "integer",
"title": "The containerPort schema",
"description": "An explanation about the purpose of this instance.",
"default": 0,
"examples": [
8080
]
},
"resources": {
"$id": "#/properties/resources",
"type": "object",
"title": "The resources schema",
"description": "An explanation about the purpose of this instance.",
"default": {},
"examples": [
{}
],
"required": [],
"additionalProperties": true
},
"nodeSelector": {
"$id": "#/properties/nodeSelector",
"type": "object",
"title": "The nodeSelector schema",
"description": "An explanation about the purpose of this instance.",
"default": {},
"examples": [
{}
],
"required": [],
"additionalProperties": true
},
"tolerations": {
"$id": "#/properties/tolerations",
"type": "array",
"title": "The tolerations schema",
"description": "An explanation about the purpose of this instance.",
"default": [],
"examples": [
[]
],
"additionalItems": true,
"items": {
"$id": "#/properties/tolerations/items"
}
},
"affinity": {
"$id": "#/properties/affinity",
"type": "object",
"title": "The affinity schema",
"description": "An explanation about the purpose of this instance.",
"default": {},
"examples": [
{}
],
"required": [],
"additionalProperties": true
},
"probe": {
"$id": "#/properties/probe",
"type": "object",
"title": "The probe schema",
"description": "An explanation about the purpose of this instance.",
"default": "",
"examples": [
"/"
]
},
"secret": {
"$id": "#/properties/secret",
"type": "object",
"title": "The secret schema",
"description": "An explanation about the purpose of this instance.",
"default": {},
"examples": [
{
"enabled": false
}
],
"required": [
"enabled"
],
"properties": {
"enabled": {
"$id": "#/properties/secret/properties/enabled",
"type": "boolean",
"title": "The enabled schema",
"description": "An explanation about the purpose of this instance.",
"default": false,
"examples": [
false
]
}
},
"additionalProperties": true
},
"shell": {
"$id": "#/properties/shell",
"type": "string",
"title": "The shell schema",
"description": "An explanation about the purpose of this instance.",
"default": "",
"examples": [
"/bin/sh"
]
}
},
"additionalProperties": true
}
+3 -1
View File
@@ -24,7 +24,9 @@ tolerations: []
affinity: {}
probe: "/"
probe:
enabled: false
path: "/"
secret:
enabled: false
Binary file not shown.
+27 -17
View File
@@ -2,17 +2,17 @@ apiVersion: v1
entries:
cron-job:
- apiVersion: v2
created: "2020-10-14T14:46:14.697443792+02:00"
created: "2020-10-22T09:55:33.121811477+02:00"
description: One chart to rule them all. A generic Helm chart for your application
deployments. Because no-one can remember the Kubernetes yaml syntax.
digest: 167d6b4316572108bb16134b3cb118ca3fbe9f36cf5cbf2a22f3fc1868142b2f
digest: 9d5a3bbe9b5e0f637c9a4e285e5c4b55f6039a4fc5efecf3c714dab2349ae7ae
name: cron-job
type: application
urls:
- https://chart.onechart.dev/cron-job-0.1.2.tgz
version: 0.1.2
- apiVersion: v2
created: "2020-10-14T14:46:14.697182993+02:00"
created: "2020-10-22T09:55:33.121532703+02:00"
description: One chart to rule them all. A generic Helm chart for your application
deployments. Because no-one can remember the Kubernetes yaml syntax.
digest: afab9ba533a4686827b54b0dad64f5bbf76f7fbc075e35fb1034689db9ab9dda
@@ -22,7 +22,7 @@ entries:
- https://chart.onechart.dev/cron-job-0.1.1.tgz
version: 0.1.1
- apiVersion: v2
created: "2020-10-14T14:46:14.696927236+02:00"
created: "2020-10-22T09:55:33.121161282+02:00"
description: One chart to rule them all. A generic Helm chart for your application
deployments. Because no-one can remember the Kubernetes yaml syntax.
digest: 01f9fa40c1c4085d7688474ab00c9e9d21bd1d0793db6b75f2edda0e18456282
@@ -33,7 +33,17 @@ entries:
version: 0.1.0
onechart:
- apiVersion: v2
created: "2020-10-14T14:46:14.701019194+02:00"
created: "2020-10-22T09:55:33.126932961+02:00"
description: One chart to rule them all. A generic Helm chart for your application
deployments. Because no-one can remember the Kubernetes yaml syntax.
digest: 4bf90835f287917671ec40b5b395da9332cf18e70f248d250f8d5a72360dcb4e
name: onechart
type: application
urls:
- https://chart.onechart.dev/onechart-0.7.0.tgz
version: 0.7.0
- apiVersion: v2
created: "2020-10-22T09:55:33.126593382+02:00"
description: One chart to rule them all. A generic Helm chart for your application
deployments. Because no-one can remember the Kubernetes yaml syntax.
digest: 0cade489fc74a040f5e7f71d01c6fa00d3f68b4752a4d8234ccf2c1504b4c0a1
@@ -43,7 +53,7 @@ entries:
- https://chart.onechart.dev/onechart-0.6.1.tgz
version: 0.6.1
- apiVersion: v2
created: "2020-10-14T14:46:14.700727574+02:00"
created: "2020-10-22T09:55:33.126225098+02:00"
description: One chart to rule them all. A generic Helm chart for your application
deployments. Because no-one can remember the Kubernetes yaml syntax.
digest: d607820a7e104eaaa88c153c1f2f7f409ef4c612ad747caeb3a671cf3fce03d4
@@ -53,7 +63,7 @@ entries:
- https://chart.onechart.dev/onechart-0.6.0.tgz
version: 0.6.0
- apiVersion: v2
created: "2020-10-14T14:46:14.700443636+02:00"
created: "2020-10-22T09:55:33.125837801+02:00"
description: One chart to rule them all. A generic Helm chart for your application
deployments. Because no-one can remember the Kubernetes yaml syntax.
digest: ddf7cf87402095d62855898744b805115fdf86c4b295e0a4def0c50408fd9138
@@ -63,7 +73,7 @@ entries:
- https://chart.onechart.dev/onechart-0.5.1.tgz
version: 0.5.1
- apiVersion: v2
created: "2020-10-14T14:46:14.70018543+02:00"
created: "2020-10-22T09:55:33.125486653+02:00"
description: One chart to rule them all. A generic Helm chart for your application
deployments. Because no-one can remember the Kubernetes yaml syntax.
digest: adf3c2cf3a27e58ec75620599e0e1c2031a7410a061a590317beeff6d8a9ad69
@@ -73,7 +83,7 @@ entries:
- https://chart.onechart.dev/onechart-0.5.0.tgz
version: 0.5.0
- apiVersion: v2
created: "2020-10-14T14:46:14.699889235+02:00"
created: "2020-10-22T09:55:33.125117729+02:00"
description: One chart to rule them all. A generic Helm chart for your application
deployments. Because no-one can remember the Kubernetes yaml syntax.
digest: 8dab33263c4e632aeb4656c666871440b589497b70e76a1d6c3a5e3db1a30bba
@@ -83,7 +93,7 @@ entries:
- https://chart.onechart.dev/onechart-0.4.0.tgz
version: 0.4.0
- apiVersion: v2
created: "2020-10-14T14:46:14.699630952+02:00"
created: "2020-10-22T09:55:33.124767945+02:00"
description: A generic Helm chart for your application deployments
digest: fbaf6139e0ef8ad9a87cc1e41a97c7d25fdcf7ea17fa6364952f1a851a87480a
name: onechart
@@ -92,7 +102,7 @@ entries:
- https://chart.onechart.dev/onechart-0.3.2.tgz
version: 0.3.2
- apiVersion: v2
created: "2020-10-14T14:46:14.699409616+02:00"
created: "2020-10-22T09:55:33.124449805+02:00"
description: A generic Helm chart for your application deployments
digest: bd6f5b1865ab9b05fc6925c163ab8045235bd2723dba31f09d5083d24322d1f8
name: onechart
@@ -101,7 +111,7 @@ entries:
- https://chart.onechart.dev/onechart-0.3.1.tgz
version: 0.3.1
- apiVersion: v2
created: "2020-10-14T14:46:14.699181586+02:00"
created: "2020-10-22T09:55:33.12408656+02:00"
description: A generic Helm chart for your application deployments
digest: c79cef21eceab948144a289298cdf1e20e77a0782a883d7d65f9e709ccbbc271
name: onechart
@@ -110,7 +120,7 @@ entries:
- https://chart.onechart.dev/onechart-0.3.0.tgz
version: 0.3.0
- apiVersion: v2
created: "2020-10-14T14:46:14.698950871+02:00"
created: "2020-10-22T09:55:33.123697754+02:00"
description: A generic Helm chart for your application deployments
digest: dd814ac5d08d5e6163a1b769df6803f5cb0f09d906045086dfcc5be522bb1ec3
name: onechart
@@ -119,7 +129,7 @@ entries:
- https://chart.onechart.dev/onechart-0.2.0.tgz
version: 0.2.0
- apiVersion: v2
created: "2020-10-14T14:46:14.698724099+02:00"
created: "2020-10-22T09:55:33.123131986+02:00"
description: A generic Helm chart for your application deployments
digest: e46062df8053840cbfbba26c0a66a843a79f15a0b43a145ed019327513bd5098
name: onechart
@@ -128,7 +138,7 @@ entries:
- https://chart.onechart.dev/onechart-0.1.2.tgz
version: 0.1.2
- apiVersion: v2
created: "2020-10-14T14:46:14.698485089+02:00"
created: "2020-10-22T09:55:33.12247594+02:00"
description: A generic Helm chart for your application deployments
digest: a7bbc8b7dcc008e89156cd1830282b7d39c0592e82ccdcefb77a25a42eca2a3d
name: onechart
@@ -137,7 +147,7 @@ entries:
- https://chart.onechart.dev/onechart-0.1.1.tgz
version: 0.1.1
- apiVersion: v2
created: "2020-10-14T14:46:14.697703027+02:00"
created: "2020-10-22T09:55:33.122144842+02:00"
description: A generic Helm chart for your application deployments
digest: 1ed8c0645abdae6c950526e9c5410dc056847a11700dc7def5f1c55eb7de0cd4
name: onechart
@@ -145,4 +155,4 @@ entries:
urls:
- https://chart.onechart.dev/onechart-0.1.0.tgz
version: 0.1.0
generated: "2020-10-14T14:46:14.696594721+02:00"
generated: "2020-10-22T09:55:33.120701172+02:00"
Binary file not shown.