diff --git a/charts/cf-runtime/Chart.yaml b/charts/cf-runtime/Chart.yaml index 3e4eb3ae..2ca7cd92 100644 --- a/charts/cf-runtime/Chart.yaml +++ b/charts/cf-runtime/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v2 description: A Helm chart for Codefresh Runner name: cf-runtime -version: 6.3.38 +version: 6.3.39 keywords: - codefresh - runner @@ -17,8 +17,8 @@ annotations: artifacthub.io/containsSecurityUpdates: "false" # Supported kinds: `added`, `changed`, `deprecated`, `removed`, `fixed`, `security`: artifacthub.io/changes: | - - kind: changed - description: Downgrade dind image to 26.0.0-1.28.6 + - kind: added + description: Add option to specify extra tags for EBS volumes dependencies: - name: cf-common repository: oci://quay.io/codefresh/charts diff --git a/charts/cf-runtime/README.md b/charts/cf-runtime/README.md index f8fae2c3..d1ff64f2 100644 --- a/charts/cf-runtime/README.md +++ b/charts/cf-runtime/README.md @@ -1,6 +1,6 @@ ## Codefresh Runner -![Version: 6.3.38](https://img.shields.io/badge/Version-6.3.38-informational?style=flat-square) +![Version: 6.3.39](https://img.shields.io/badge/Version-6.3.39-informational?style=flat-square) Helm chart for deploying [Codefresh Runner](https://codefresh.io/docs/docs/installation/codefresh-runner/) to Kubernetes. @@ -1189,6 +1189,7 @@ Go to [https:///admin/runtime-environments/system](http | storage.ebs.accessKeyIdSecretKeyRef | object | `{}` | Existing secret containing AWS_ACCESS_KEY_ID. | | storage.ebs.availabilityZone | string | `"us-east-1a"` | Set EBS volumes availability zone (required) | | storage.ebs.encrypted | string | `"false"` | Enable encryption (optional) | +| storage.ebs.extraVolumeTags | object | `{}` | Set additional tags for EBS volumes (optional) | | storage.ebs.kmsKeyId | string | `""` | Set KMS encryption key ID (optional) | | storage.ebs.secretAccessKey | string | `""` | Set AWS_SECRET_ACCESS_KEY for volume-provisioner (optional) Ref: https://codefresh.io/docs/docs/installation/codefresh-runner/#dind-volume-provisioner-permissions | | storage.ebs.secretAccessKeySecretKeyRef | object | `{}` | Existing secret containing AWS_SECRET_ACCESS_KEY | @@ -1205,7 +1206,7 @@ Go to [https:///admin/runtime-environments/system](http | volumeProvisioner.dind-lv-monitor | object | See below | `dind-lv-monitor` DaemonSet parameters (local volumes cleaner) | | volumeProvisioner.enabled | bool | `true` | Enable volume-provisioner | | volumeProvisioner.env | object | `{}` | Add additional env vars | -| volumeProvisioner.image | object | `{"registry":"quay.io","repository":"codefresh/dind-volume-provisioner","tag":"1.34.3"}` | Set image | +| volumeProvisioner.image | object | `{"registry":"quay.io","repository":"codefresh/dind-volume-provisioner","tag":"featextra-ebs-tags"}` | Set image | | volumeProvisioner.nodeSelector | object | `{}` | Set node selector | | volumeProvisioner.podAnnotations | object | `{}` | Set pod annotations | | volumeProvisioner.podSecurityContext | object | See below | Set security context for the pod | diff --git a/charts/cf-runtime/templates/_components/volume-provisioner/_storageclass.yaml b/charts/cf-runtime/templates/_components/volume-provisioner/_storageclass.yaml index 62e910c8..582a9524 100644 --- a/charts/cf-runtime/templates/_components/volume-provisioner/_storageclass.yaml +++ b/charts/cf-runtime/templates/_components/volume-provisioner/_storageclass.yaml @@ -31,6 +31,13 @@ parameters: {{- with .Values.storage.ebs.throughput }} throughput: {{ . | quote }} {{- end }} + {{- with .Values.storage.ebs.extraVolumeTags }} + {{- $index := 1 }} + {{- range $key, $val := . }} + {{ printf "tagSpecification_%d" $index }}: {{ printf "%s=%s" $key $val | quote }} + {{- $index = add $index 1 }} + {{- end }} + {{- end }} {{- else if or (eq .Values.storage.backend "azuredisk") (eq .Values.storage.backend "azuredisk-csi")}} volumeBackend: {{ .Values.storage.backend }} kind: managed @@ -44,4 +51,4 @@ parameters: resourceGroup: {{ . | quote }} {{- end }} {{- end }} -{{- end -}} \ No newline at end of file +{{- end -}} diff --git a/charts/cf-runtime/values.yaml b/charts/cf-runtime/values.yaml index 5f839536..6895c345 100644 --- a/charts/cf-runtime/values.yaml +++ b/charts/cf-runtime/values.yaml @@ -174,7 +174,7 @@ volumeProvisioner: image: registry: quay.io repository: codefresh/dind-volume-provisioner - tag: 1.34.3 + tag: featextra-ebs-tags # -- Add additional env vars env: {} # E.g. @@ -303,6 +303,12 @@ storage: encrypted: "false" # -- Set KMS encryption key ID (optional) kmsKeyId: "" + # -- Set additional tags for EBS volumes (optional) + extraVolumeTags: {} + # E.g. + # extraVolumeTags: + # key1: value1 + # key2: value2 # -- Set AWS_ACCESS_KEY_ID for volume-provisioner (optional) # Ref: https://codefresh.io/docs/docs/installation/codefresh-runner/#dind-volume-provisioner-permissions