From 3b2d2c052eb843cd7f1509960681d501c81f8eab Mon Sep 17 00:00:00 2001 From: callum-tait-pbx <52924845+callum-tait-pbx@users.noreply.github.com> Date: Sun, 18 Apr 2021 05:58:54 +0100 Subject: [PATCH] chore: adding Helm app version back (#412) * chore: adding Helm app version back * chore: removing redundant values entry * chore: bumping to newer version * chore: bumping app version to latest Co-authored-by: Yusuke Kuoka --- CONTRIBUTING.md | 8 ++++++++ README.md | 6 ++++-- charts/actions-runner-controller/Chart.yaml | 5 ++++- .../actions-runner-controller/templates/deployment.yaml | 2 +- .../templates/githubwebhook.deployment.yaml | 2 +- charts/actions-runner-controller/values.yaml | 1 - 6 files changed, 18 insertions(+), 6 deletions(-) create mode 100644 CONTRIBUTING.md diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 00000000..8fb9fc1f --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,8 @@ +# Contributing + +### Helm Verison Bumps + +**Chart Version :** When bumping the chart version follow semantic versioning https://semver.org/
+**App Version :** When bumping the app version you will also need to bump the chart verison too. Again, follow semantic verisoning when bumping the chart. + +To determine if you need tp bump the MAJOR, MINOR or PATCH versions you will need to review the changes between the previous app version and the new app verison and / or ask for a maintainer to advise. diff --git a/README.md b/README.md index 68b2e027..9fb6ceb0 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ ToC: - [Using EKS IAM role for service accounts](#using-eks-iam-role-for-service-accounts) - [Software installed in the runner image](#software-installed-in-the-runner-image) - [Common errors](#common-errors) -- [Developing](#developing) +- [Contributing](#contributing) ## Motivation @@ -748,7 +748,9 @@ Your base64'ed PAT token has a new line at the end, it needs to be created witho * `echo -n $TOKEN | base64` * Create the secret as described in the docs using the shell and documeneted flags -# Developing +# Contributing + +For more details about any requirements or process, please check out [Getting Started with Contributing](CONTRIBUTING.md). **The Controller**
If you'd like to modify the controller to fork or contribute, I'd suggest using the following snippet for running diff --git a/charts/actions-runner-controller/Chart.yaml b/charts/actions-runner-controller/Chart.yaml index 161e7682..4d3760a6 100644 --- a/charts/actions-runner-controller/Chart.yaml +++ b/charts/actions-runner-controller/Chart.yaml @@ -15,7 +15,10 @@ 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.10.5 +version: 0.11.0 + +# Used as the default manager tag value when no tag property is provided in the values.yaml +appVersion: 0.18.2 home: https://github.com/summerwind/actions-runner-controller diff --git a/charts/actions-runner-controller/templates/deployment.yaml b/charts/actions-runner-controller/templates/deployment.yaml index 9ad817ee..6da5daa3 100644 --- a/charts/actions-runner-controller/templates/deployment.yaml +++ b/charts/actions-runner-controller/templates/deployment.yaml @@ -65,7 +65,7 @@ spec: - name: {{ $key }} value: {{ $val | quote }} {{- end }} - image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" + image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default (cat "v" .Chart.AppVersion | replace " " "") }}" name: manager imagePullPolicy: {{ .Values.image.pullPolicy }} ports: diff --git a/charts/actions-runner-controller/templates/githubwebhook.deployment.yaml b/charts/actions-runner-controller/templates/githubwebhook.deployment.yaml index ce22d662..10672888 100644 --- a/charts/actions-runner-controller/templates/githubwebhook.deployment.yaml +++ b/charts/actions-runner-controller/templates/githubwebhook.deployment.yaml @@ -47,7 +47,7 @@ spec: - name: {{ $key }} value: {{ $val | quote }} {{- end }} - image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" + image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default (cat "v" .Chart.AppVersion | replace " " "") }}" name: github-webhook-server imagePullPolicy: {{ .Values.image.pullPolicy }} ports: diff --git a/charts/actions-runner-controller/values.yaml b/charts/actions-runner-controller/values.yaml index a73fe19b..bd427d05 100644 --- a/charts/actions-runner-controller/values.yaml +++ b/charts/actions-runner-controller/values.yaml @@ -22,7 +22,6 @@ authSecret: image: repository: summerwind/actions-runner-controller - tag: "v0.17.0" dindSidecarRepositoryAndTag: "docker:dind" pullPolicy: IfNotPresent