From 4a3f2412567a5a392c16dea02747fe0b7ec05815 Mon Sep 17 00:00:00 2001 From: Andreas Fritzler Date: Fri, 10 Sep 2021 14:05:02 +0200 Subject: [PATCH] Add support for latest tag in docker build --- .github/workflows/publish-docker.yml | 2 ++ charts/template-operator/Chart.yaml | 2 +- charts/template-operator/templates/deployment.yaml | 7 ++++--- charts/template-operator/values.yaml | 2 +- 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish-docker.yml b/.github/workflows/publish-docker.yml index a474485..58e307e 100644 --- a/.github/workflows/publish-docker.yml +++ b/.github/workflows/publish-docker.yml @@ -27,6 +27,8 @@ jobs: tags: | type=semver,pattern={{version}} type=sha + flavor: | + latest=auto - name: Set up QEMU uses: docker/setup-qemu-action@v1 with: diff --git a/charts/template-operator/Chart.yaml b/charts/template-operator/Chart.yaml index 20935b7..ee595fe 100644 --- a/charts/template-operator/Chart.yaml +++ b/charts/template-operator/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: template-operator description: A Helm chart for the template operator type: application -version: 0.1.6 +version: 0.1.7 appVersion: 0.1.0 engine: gotpl home: https://github.com/onmetal/template-operator diff --git a/charts/template-operator/templates/deployment.yaml b/charts/template-operator/templates/deployment.yaml index 8dbd46a..35542a5 100644 --- a/charts/template-operator/templates/deployment.yaml +++ b/charts/template-operator/templates/deployment.yaml @@ -20,6 +20,7 @@ spec: labels: {{- include "template-operator.selectorLabels" . | nindent 8 }} spec: + terminationGracePeriodSeconds: 10 {{- with .Values.imagePullSecrets }} imagePullSecrets: {{- toYaml . | nindent 8 }} @@ -38,13 +39,13 @@ spec: path: /readyz port: 8081 initialDelaySeconds: 15 - periodSeconds: 20 + periodSeconds: 60 readinessProbe: httpGet: path: /healthz port: 8081 - initialDelaySeconds: 5 - periodSeconds: 10 + initialDelaySeconds: 15 + periodSeconds: 60 resources: {{- toYaml .Values.resources | nindent 12 }} {{- with .Values.nodeSelector }} diff --git a/charts/template-operator/values.yaml b/charts/template-operator/values.yaml index b2434ee..14a3ce9 100644 --- a/charts/template-operator/values.yaml +++ b/charts/template-operator/values.yaml @@ -10,8 +10,8 @@ rbac: image: repository: ghcr.io/onmetal/template-operator - pullPolicy: IfNotPresent tag: latest + pullPolicy: Always imagePullSecrets: [] nameOverride: ""