From f774c03b1a1798de4ccd244ba44134f78bc6df21 Mon Sep 17 00:00:00 2001 From: Spicoud <113991629+sara-picoud@users.noreply.github.com> Date: Wed, 20 Mar 2024 15:39:47 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=A6=9F=20Update=20image=20default=20tag?= =?UTF-8?q?=20(#4)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * update deploiement image tag 10 to latest and add a warning to provide the key * update readme --- README.md | 2 +- bouyguestelecom/spin/Chart.yaml | 2 +- bouyguestelecom/spin/templates/_helpers.tpl | 2 +- bouyguestelecom/spin/values.yaml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 01f856f..abc6bcd 100644 --- a/README.md +++ b/README.md @@ -96,7 +96,7 @@ spin: | deployment.extraVolumes | string | `""` | Add additionnal volumes | | deployment.image.pullPolicy | string | `"IfNotPresent"` | docker image pull policy | | deployment.image.repository | string | `"nginx"` | docker image repository url | -| deployment.image.tag | string | `"10"` | docker image tag | +| deployment.image.tag | string | `"latest"` | docker image tag | | deployment.livenessProbe | object |
`{"failureThreshold":5,"httpGet":`
`{"path":"/","port":80,"scheme":"HTTP"},`
`"initialDelaySeconds":50,"periodSeconds":10,`
`"successThreshold":1,"timeoutSeconds":1}`
| Liveness probe configuration
[More about liveness probes](https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/) | | deployment.livenessProbe.failureThreshold | int | `5` | Number of consecutive unsuccessful checks to be considered not alive | | deployment.livenessProbe.httpGet.path | string | `"/"` | The path to be used for the HTTP GET request | diff --git a/bouyguestelecom/spin/Chart.yaml b/bouyguestelecom/spin/Chart.yaml index dd83e50..cab3234 100644 --- a/bouyguestelecom/spin/Chart.yaml +++ b/bouyguestelecom/spin/Chart.yaml @@ -16,7 +16,7 @@ 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.1.5-alpha1 +version: 0.1.5 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/bouyguestelecom/spin/templates/_helpers.tpl b/bouyguestelecom/spin/templates/_helpers.tpl index 24c74bd..ab0671e 100644 --- a/bouyguestelecom/spin/templates/_helpers.tpl +++ b/bouyguestelecom/spin/templates/_helpers.tpl @@ -65,7 +65,7 @@ Detect which version of main image we should use {{- $githubTagResponse := printf "$(curl -s %s)" $githubTag | quote }} {{- $githubTagResponse -}} {{- else }} -{{- .Values.deployment.image.tag | quote -}} +{{- required "A value is required for .Values.deployment.image.tag" .Values.deployment.image.tag | quote -}} {{- end }} {{- end -}} diff --git a/bouyguestelecom/spin/values.yaml b/bouyguestelecom/spin/values.yaml index 295d5bd..7aa131f 100644 --- a/bouyguestelecom/spin/values.yaml +++ b/bouyguestelecom/spin/values.yaml @@ -24,7 +24,7 @@ deployment: # -- docker image pull policy pullPolicy: IfNotPresent # -- docker image tag - tag: "10" + tag: "latest" # -- Additional ENV containerEnv: {} # -- Add extra ports to container