UNCLASSIFIED - NO CUI

Skip to content
Snippets Groups Projects
Commit 87dae291 authored by RENOVATE_BOT's avatar RENOVATE_BOT Committed by Chris Schaefer
Browse files

SKIP UPDATE CHECK Update Ironbank to v17.1.0

parent 4eabdc4b
No related branches found
No related tags found
1 merge request!188SKIP UPDATE CHECK Update Ironbank to v17.1.0
...@@ -2,6 +2,17 @@ ...@@ -2,6 +2,17 @@
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [0.66.0-bb.0] - 2024-07-17
## Changed
- Upgrade gitlab runner from 17.0.0 to 17.1.0:
- Make lifecycle options configurable in the deployment [upstream !473](https://gitlab.com/gitlab-org/charts/gitlab-runner/-/merge_requests/473)
- Add dedicated ServiceAccount configuration [upstream !415](https://gitlab.com/gitlab-org/charts/gitlab-runner/-/merge_requests/415/commits)
- Updated registry1.dso.mil/ironbank/gitlab/gitlab-runner/gitlab-runner 17.0.0 -> 17.1.0
- Updated registry1.dso.mil/ironbank/gitlab/gitlab-runner/gitlab-runner-helper 17.0.0 -> 17.1.0
## [0.65.0-bb.3] - 2024-07-01 ## [0.65.0-bb.3] - 2024-07-01
### Fixed ### Fixed
......
# gitlab-runner # gitlab-runner
![Version: 0.65.0-bb.3](https://img.shields.io/badge/Version-0.65.0--bb.3-informational?style=flat-square) ![AppVersion: 17.0.0](https://img.shields.io/badge/AppVersion-17.0.0-informational?style=flat-square) ![Version: 0.66.0-bb.0](https://img.shields.io/badge/Version-0.66.0--bb.0-informational?style=flat-square) ![AppVersion: 17.1.0](https://img.shields.io/badge/AppVersion-17.1.0-informational?style=flat-square)
GitLab Runner GitLab Runner
...@@ -38,7 +38,7 @@ helm install gitlab-runner chart/ ...@@ -38,7 +38,7 @@ helm install gitlab-runner chart/
|-----|------|---------|-------------| |-----|------|---------|-------------|
| image.registry | string | `"registry1.dso.mil"` | | | image.registry | string | `"registry1.dso.mil"` | |
| image.image | string | `"ironbank/gitlab/gitlab-runner/gitlab-runner"` | | | image.image | string | `"ironbank/gitlab/gitlab-runner/gitlab-runner"` | |
| image.tag | string | `"v17.0.0"` | | | image.tag | string | `"v17.1.0"` | |
| useTini | bool | `true` | | | useTini | bool | `true` | |
| imagePullPolicy | string | `"IfNotPresent"` | | | imagePullPolicy | string | `"IfNotPresent"` | |
| gitlabUrl | string | `"http://gitlab-webservice-default.gitlab.svc.cluster.local:8181"` | | | gitlabUrl | string | `"http://gitlab-webservice-default.gitlab.svc.cluster.local:8181"` | |
...@@ -54,6 +54,10 @@ helm install gitlab-runner chart/ ...@@ -54,6 +54,10 @@ helm install gitlab-runner chart/
| rbac.clusterWideAccess | bool | `false` | | | rbac.clusterWideAccess | bool | `false` | |
| rbac.podSecurityPolicy.enabled | bool | `false` | | | rbac.podSecurityPolicy.enabled | bool | `false` | |
| rbac.podSecurityPolicy.resourceNames[0] | string | `"gitlab-runner"` | | | rbac.podSecurityPolicy.resourceNames[0] | string | `"gitlab-runner"` | |
| rbac.imagePullSecrets | list | `[]` | |
| serviceAccount.name | string | `""` | |
| serviceAccount.annotations | object | `{}` | |
| serviceAccount.imagePullSecrets | list | `[]` | |
| metrics.enabled | bool | `false` | | | metrics.enabled | bool | `false` | |
| metrics.portName | string | `"tcp-metrics"` | | | metrics.portName | string | `"tcp-metrics"` | |
| metrics.port | int | `9252` | | | metrics.port | int | `9252` | |
...@@ -65,7 +69,7 @@ helm install gitlab-runner chart/ ...@@ -65,7 +69,7 @@ helm install gitlab-runner chart/
| runners.job.tag | string | `"9.4"` | | | runners.job.tag | string | `"9.4"` | |
| runners.helper.registry | string | `"registry1.dso.mil"` | | | runners.helper.registry | string | `"registry1.dso.mil"` | |
| runners.helper.repository | string | `"ironbank/gitlab/gitlab-runner/gitlab-runner-helper"` | | | runners.helper.repository | string | `"ironbank/gitlab/gitlab-runner/gitlab-runner-helper"` | |
| runners.helper.tag | string | `"v17.0.0"` | | | runners.helper.tag | string | `"v17.1.0"` | |
| runners.config | string | `"[[runners]]\n clone_url = \"http://gitlab-webservice-default.gitlab.svc.cluster.local:8181\"\n cache_dir = \"/tmp/gitlab-runner/cache\"\n [runners.kubernetes]\n pull_policy = \"always\"\n namespace = \"{{.Release.Namespace}}\"\n image = \"{{ printf \"%s/%s:%s\" .Values.runners.job.registry .Values.runners.job.repository .Values.runners.job.tag }}\"\n helper_image = \"{{ printf \"%s/%s:%s\" .Values.runners.helper.registry .Values.runners.helper.repository .Values.runners.helper.tag }}\"\n image_pull_secrets = [\"private-registry\"]\n [runners.kubernetes.pod_security_context]\n run_as_non_root = true\n run_as_user = 1001\n [runners.kubernetes.helper_container_security_context]\n run_as_non_root = true\n run_as_user = 1001\n [runners.kubernetes.pod_labels]\n \"job_id\" = \"${CI_JOB_ID}\"\n \"job_name\" = \"${CI_JOB_NAME}\"\n \"pipeline_id\" = \"${CI_PIPELINE_ID}\"\n \"app\" = \"gitlab-runner\"\n"` | | | runners.config | string | `"[[runners]]\n clone_url = \"http://gitlab-webservice-default.gitlab.svc.cluster.local:8181\"\n cache_dir = \"/tmp/gitlab-runner/cache\"\n [runners.kubernetes]\n pull_policy = \"always\"\n namespace = \"{{.Release.Namespace}}\"\n image = \"{{ printf \"%s/%s:%s\" .Values.runners.job.registry .Values.runners.job.repository .Values.runners.job.tag }}\"\n helper_image = \"{{ printf \"%s/%s:%s\" .Values.runners.helper.registry .Values.runners.helper.repository .Values.runners.helper.tag }}\"\n image_pull_secrets = [\"private-registry\"]\n [runners.kubernetes.pod_security_context]\n run_as_non_root = true\n run_as_user = 1001\n [runners.kubernetes.helper_container_security_context]\n run_as_non_root = true\n run_as_user = 1001\n [runners.kubernetes.pod_labels]\n \"job_id\" = \"${CI_JOB_ID}\"\n \"job_name\" = \"${CI_JOB_NAME}\"\n \"pipeline_id\" = \"${CI_PIPELINE_ID}\"\n \"app\" = \"gitlab-runner\"\n"` | |
| runners.configPath | string | `""` | | | runners.configPath | string | `""` | |
| runners.locked | bool | `true` | | | runners.locked | bool | `true` | |
...@@ -100,6 +104,7 @@ helm install gitlab-runner chart/ ...@@ -100,6 +104,7 @@ helm install gitlab-runner chart/
| hostAliases | list | `[]` | | | hostAliases | list | `[]` | |
| deploymentAnnotations | object | `{}` | | | deploymentAnnotations | object | `{}` | |
| deploymentLabels | object | `{}` | | | deploymentLabels | object | `{}` | |
| deploymentLifecycle | object | `{}` | |
| podAnnotations | object | `{}` | | | podAnnotations | object | `{}` | |
| podLabels | object | `{}` | | | podLabels | object | `{}` | |
| priorityClassName | string | `""` | | | priorityClassName | string | `""` | |
......
apiVersion: v2 apiVersion: v2
name: gitlab-runner name: gitlab-runner
version: 0.65.0-bb.3 version: 0.66.0-bb.0
appVersion: 17.0.0 appVersion: 17.1.0
description: GitLab Runner description: GitLab Runner
keywords: keywords:
- git - git
...@@ -21,12 +21,12 @@ dependencies: ...@@ -21,12 +21,12 @@ dependencies:
repository: oci://registry1.dso.mil/bigbang repository: oci://registry1.dso.mil/bigbang
annotations: annotations:
bigbang.dev/applicationVersions: | bigbang.dev/applicationVersions: |
- Gitlab Runner: v17.0.0 - Gitlab Runner: v17.1.0
helm.sh/images: | helm.sh/images: |
- name: gitlab-runner - name: gitlab-runner
image: registry1.dso.mil/ironbank/gitlab/gitlab-runner/gitlab-runner:v17.0.0 image: registry1.dso.mil/ironbank/gitlab/gitlab-runner/gitlab-runner:v17.1.0
- name: gitlab-runner-helper - name: gitlab-runner-helper
image: registry1.dso.mil/ironbank/gitlab/gitlab-runner/gitlab-runner-helper:v17.0.0 image: registry1.dso.mil/ironbank/gitlab/gitlab-runner/gitlab-runner-helper:v17.1.0
- name: ubi9 - name: ubi9
image: registry1.dso.mil/ironbank/redhat/ubi/ubi9:9.4 image: registry1.dso.mil/ironbank/redhat/ubi/ubi9:9.4
...@@ -5,7 +5,7 @@ metadata: ...@@ -5,7 +5,7 @@ metadata:
upstream: upstream:
type: git type: git
git: git:
commit: e3df4d644b3c152ac35c2005ae8559e14af1aaf0 commit: f70d01fd3871c77202a3066bef69492d818eff5e
repo: https://gitlab.com/gitlab-org/charts/gitlab-runner repo: https://gitlab.com/gitlab-org/charts/gitlab-runner
directory: / directory: /
ref: v0.65.0 ref: v0.66.0
...@@ -34,3 +34,32 @@ Runner namespace {{ $runnerNamespace }} was found in runners.config template. ...@@ -34,3 +34,32 @@ Runner namespace {{ $runnerNamespace }} was found in runners.config template.
############################################################################################# #############################################################################################
{{- end }} {{- end }}
{{- end }} {{- end }}
{{- if and .Values.rbac.create (kindIs "invalid" .Values.serviceAccount.create) }}
#############################################################################################
## WARNING: You enabled `rbac` without specifying if a service account should be created. ##
## Please set `serviceAccount.create` to either `true` or `false`. ##
## For backwards compatibility a service account will be created. ##
#############################################################################################
{{- end }}
{{- if .Values.rbac.serviceAccountName }}
#############################################################################################
## WARNING: You have set the deprecated field `rbac.serviceAccountName`. ##
## Please use `serviceAccount.name` instead. ##
#############################################################################################
{{- end }}
{{- if .Values.rbac.serviceAccountAnnotations }}
#############################################################################################
## WARNING: You have set the deprecated field `rbac.serviceAccountAnnotations`. ##
## Please use `serviceAccount.annotations` instead. ##
#############################################################################################
{{- end }}
{{- if .Values.rbac.imagePullSecrets }}
#############################################################################################
## WARNING: You have set the deprecated field `rbac.imagePullSecrets`. ##
## Please use `serviceAccount.imagePullSecrets` instead. ##
#############################################################################################
{{- end }}
\ No newline at end of file
...@@ -30,17 +30,6 @@ Create chart name and version as used by the chart label. ...@@ -30,17 +30,6 @@ Create chart name and version as used by the chart label.
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}} {{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}}
{{- end -}} {{- end -}}
{{/*
Define the name of the service account
*/}}
{{- define "gitlab-runner.serviceAccount" -}}
{{- if .Values.rbac.create -}}
{{- default (include "gitlab-runner.fullname" .) .Values.rbac.generatedServiceAccountName | quote -}}
{{- else -}}
{{- .Values.rbac.serviceAccountName | quote -}}
{{- end -}}
{{- end -}}
{{/* {{/*
Define the name of the secret containing the tokens Define the name of the secret containing the tokens
*/}} */}}
...@@ -68,6 +57,20 @@ Template for outputing the gitlabUrl ...@@ -68,6 +57,20 @@ Template for outputing the gitlabUrl
{{- .Values.gitlabUrl | quote -}} {{- .Values.gitlabUrl | quote -}}
{{- end -}} {{- end -}}
{{/*
Define the name of the service account
*/}}
# TODO: Remove references to .Values.rbac
{{- define "gitlab-runner.serviceAccountName" -}}
{{- if or .Values.serviceAccount.create .Values.serviceAccount.name -}}
{{- .Values.serviceAccount.name | default (include "gitlab-runner.fullname" .) | quote -}}
{{- else if .Values.rbac.create -}}
{{- default (include "gitlab-runner.fullname" .) .Values.rbac.generatedServiceAccountName | quote -}}
{{- else -}}
"{{- .Values.rbac.serviceAccountName -}}"
{{- end -}}
{{- end -}}
{{/* {{/*
Define the image, using .Chart.AppVersion and GitLab Runner image as a default value Define the image, using .Chart.AppVersion and GitLab Runner image as a default value
*/}} */}}
......
...@@ -60,7 +60,7 @@ spec: ...@@ -60,7 +60,7 @@ spec:
{{- if .Values.priorityClassName }} {{- if .Values.priorityClassName }}
priorityClassName: {{ .Values.priorityClassName | quote }} priorityClassName: {{ .Values.priorityClassName | quote }}
{{- end }} {{- end }}
serviceAccountName: {{ include "gitlab-runner.serviceAccount" . }} serviceAccountName: {{ include "gitlab-runner.serviceAccountName" . }}
containers: containers:
- name: {{ include "gitlab-runner.fullname" . }} - name: {{ include "gitlab-runner.fullname" . }}
image: {{ include "gitlab-runner.image" . }} image: {{ include "gitlab-runner.image" . }}
...@@ -72,6 +72,9 @@ spec: ...@@ -72,6 +72,9 @@ spec:
{{- else }} {{- else }}
command: ["/usr/bin/dumb-init", "--", "/bin/bash", "/configmaps/entrypoint"] command: ["/usr/bin/dumb-init", "--", "/bin/bash", "/configmaps/entrypoint"]
{{- end }} {{- end }}
{{- if .Values.deploymentLifecycle }}
lifecycle: {{ toYaml .Values.deploymentLifecycle | nindent 10 }}
{{- end }}
env: env:
{{- include "gitlab-runner.runner-env-vars" . | indent 8 }} {{- include "gitlab-runner.runner-env-vars" . | indent 8 }}
livenessProbe: livenessProbe:
......
...@@ -17,6 +17,6 @@ roleRef: ...@@ -17,6 +17,6 @@ roleRef:
name: {{ include "gitlab-runner.fullname" . }} name: {{ include "gitlab-runner.fullname" . }}
subjects: subjects:
- kind: ServiceAccount - kind: ServiceAccount
name: {{ include "gitlab-runner.serviceAccount" . }} name: {{ include "gitlab-runner.serviceAccountName" . }}
namespace: "{{ .Release.Namespace }}" namespace: "{{ .Release.Namespace }}"
{{- end -}} {{- end -}}
{{- if .Values.rbac.create -}} {{- /* TODO: Remove references to `.Values.rbac` */ -}}
{{- if or .Values.serviceAccount.create (and .Values.rbac.create (kindIs "invalid" .Values.serviceAccount.create)) -}}
apiVersion: v1 apiVersion: v1
kind: ServiceAccount kind: ServiceAccount
metadata: metadata:
{{- if .Values.rbac.serviceAccountAnnotations }} {{- if or .Values.serviceAccount.annotations .Values.rbac.serviceAccountAnnotations }}
annotations: annotations:
{{- range $key, $value := .Values.rbac.serviceAccountAnnotations }} {{- range $key, $value := merge .Values.serviceAccount.annotations .Values.rbac.serviceAccountAnnotations }}
{{ $key }}: {{ tpl ($value) $ | quote }} {{ $key }}: {{ tpl ($value) $ | quote }}
{{- end }} {{- end }}
{{- end}} {{- end}}
name: {{ include "gitlab-runner.serviceAccount" . }} name: {{ include "gitlab-runner.serviceAccountName" . }}
namespace: {{ .Release.Namespace | quote }} namespace: {{ .Release.Namespace | quote }}
labels: labels:
app: {{ include "gitlab-runner.fullname" . }} app: {{ include "gitlab-runner.fullname" . }}
chart: {{ include "gitlab-runner.chart" . }} chart: {{ include "gitlab-runner.chart" . }}
release: "{{ .Release.Name }}" release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}" heritage: "{{ .Release.Service }}"
{{- if .Values.rbac.imagePullSecrets }} {{- if or .Values.serviceAccount.imagePullSecrets .Values.rbac.imagePullSecrets }}
imagePullSecrets: imagePullSecrets:
{{- range .Values.rbac.imagePullSecrets }} {{- range concat .Values.serviceAccount.imagePullSecrets .Values.rbac.imagePullSecrets }}
- name: {{ . | quote }} - name: {{ . | quote }}
{{- end }} {{- end }}
{{- end }} {{- end }}
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
image: image:
registry: registry1.dso.mil registry: registry1.dso.mil
image: ironbank/gitlab/gitlab-runner/gitlab-runner image: ironbank/gitlab/gitlab-runner/gitlab-runner
tag: v17.0.0 tag: v17.1.0
## When using GitLab Runner Helm Chart with gitlab-runner-ubi-images (https://gitlab.com/gitlab-org/ci-cd/gitlab-runner-ubi-images/container_registry) ## When using GitLab Runner Helm Chart with gitlab-runner-ubi-images (https://gitlab.com/gitlab-org/ci-cd/gitlab-runner-ubi-images/container_registry)
## the installation fails because dumb-init is not packaged in the image. However, the tini is present. ## the installation fails because dumb-init is not packaged in the image. However, the tini is present.
...@@ -149,9 +149,13 @@ sessionServer: ...@@ -149,9 +149,13 @@ sessionServer:
## For RBAC support: ## For RBAC support:
rbac: rbac:
## Specifies whether a Role and RoleBinding should be created
## If this value is set to `true`, `serviceAccount.create` should also be set to either `true` or `false`
##
create: true create: true
## Define the generated serviceAccountName when create is set to true ## Define the generated serviceAccountName when create is set to true
## It defaults to "gitlab-runner.fullname" if not provided ## It defaults to "gitlab-runner.fullname" if not provided
## DEPRECATED: Please use `serviceAccount.name` instead
generatedServiceAccountName: "" generatedServiceAccountName: ""
## Define list of rules to be added to the rbac role permissions. ## Define list of rules to be added to the rbac role permissions.
...@@ -179,6 +183,7 @@ rbac: ...@@ -179,6 +183,7 @@ rbac:
clusterWideAccess: false clusterWideAccess: false
## Use the following Kubernetes Service Account name if RBAC is disabled in this Helm chart (see rbac.create) ## Use the following Kubernetes Service Account name if RBAC is disabled in this Helm chart (see rbac.create)
## DEPRECATED: Please use `serviceAccount.name` instead
## ##
# serviceAccountName: default # serviceAccountName: default
...@@ -189,7 +194,9 @@ rbac: ...@@ -189,7 +194,9 @@ rbac:
## ##
## ref: https://docs.aws.amazon.com/eks/latest/userguide/associate-service-account-role.html ## ref: https://docs.aws.amazon.com/eks/latest/userguide/associate-service-account-role.html
## ##
# serviceAccountAnnotations: {} ## DEPRECATED: Please use `serviceAccount.annotations` instead
##
# serviceAccountAnnotations: { }
## Use podSecurity Policy ## Use podSecurity Policy
## ref: https://kubernetes.io/docs/concepts/policy/pod-security-policy/ ## ref: https://kubernetes.io/docs/concepts/policy/pod-security-policy/
...@@ -202,7 +209,34 @@ rbac: ...@@ -202,7 +209,34 @@ rbac:
## ##
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/#add-imagepullsecrets-to-a-service-account ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/#add-imagepullsecrets-to-a-service-account
## ##
# imagePullSecrets: [] ## DEPRECATED: Please use `serviceAccount.imagePullSecrets` instead
##
imagePullSecrets: []
## Configure ServiceAccount
##
serviceAccount:
## Specifies whether a ServiceAccount should be created
##
## TODO: Set default to `false`
# create: false
## The name of the ServiceAccount to use.
## If not set and create is `true`, a name is generated using the `gitlab-runner.fullname`` template
##
name: ""
## Additional custom annotations for the ServiceAccount, useful for annotations such as eks.amazonaws.com/role-arn.
## Values may refer other values as the _tpl_ function is implicitly applied. Mind the quotes when using this, e.g.
## serviceAccountAnnotations:
## eks.amazonaws.com/role-arn: "arn:aws:iam::{{ .Values.global.accountId }}:role/{{ .Values.global.iamRoleName }}"
##
## ref: https://docs.aws.amazon.com/eks/latest/userguide/specify-service-account-role.html
##
annotations: { }
## Specify one or more imagePullSecrets used for pulling the runner image
##
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/#add-imagepullsecrets-to-a-service-account
##
imagePullSecrets: [ ]
## Configure integrated Prometheus metrics exporter ## Configure integrated Prometheus metrics exporter
## ##
...@@ -335,7 +369,7 @@ runners: ...@@ -335,7 +369,7 @@ runners:
helper: helper:
registry: registry1.dso.mil registry: registry1.dso.mil
repository: ironbank/gitlab/gitlab-runner/gitlab-runner-helper repository: ironbank/gitlab/gitlab-runner/gitlab-runner-helper
tag: "v17.0.0" tag: "v17.1.0"
# runner configuration, where the multi line strings is evaluated as # runner configuration, where the multi line strings is evaluated as
# template so you can specify helm values inside of it. # template so you can specify helm values inside of it.
...@@ -711,6 +745,14 @@ deploymentLabels: {} ...@@ -711,6 +745,14 @@ deploymentLabels: {}
# Example: # Example:
# owner.team: <my_cool_team> # owner.team: <my_cool_team>
## Lifecycle options to be added to deployment
##
deploymentLifecycle: {}
# Example
# preStop:
# exec:
# command: ["/bin/sh", "-c", "echo 'shutting down'"]
## Set hostname for runner pods ## Set hostname for runner pods
#hostname: my-gitlab-runner #hostname: my-gitlab-runner
......
File moved
registry1.dso.mil/ironbank/gitlab/gitlab-runner/gitlab-runner-helper:v17.0.0 registry1.dso.mil/ironbank/gitlab/gitlab-runner/gitlab-runner-helper:v17.1.0
registry1.dso.mil/ironbank/redhat/ubi/ubi9:9.4 registry1.dso.mil/ironbank/redhat/ubi/ubi9:9.4
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment