Skip to content

Commit 56ccca1

Browse files
feat: add external-secrets template (#380)
1 parent 46770f4 commit 56ccca1

File tree

5 files changed

+12
-8
lines changed

5 files changed

+12
-8
lines changed

charts/cf-runtime/Chart.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v2
22
description: A Helm chart for Codefresh Runner
33
name: cf-runtime
4-
version: 4.0.1
4+
version: 4.0.2
55
keywords:
66
- codefresh
77
- runner
@@ -14,9 +14,11 @@ maintainers:
1414
url: https://codefresh-io.github.io/
1515
annotations:
1616
artifacthub.io/changes: |
17-
- kind: changed
18-
description: Update cf-common lib chart
17+
- kind: added
18+
description: Add external secrets template
19+
- kind: fixed
20+
description: Fix condition if existing secrets are provided (API and Agent tokens)
1921
dependencies:
2022
- name: cf-common
2123
repository: https://chartmuseum.codefresh.io/cf-common
22-
version: 0.12.1
24+
version: 0.12.2

charts/cf-runtime/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## Codefresh Runner
22

3-
![Version: 4.0.1](https://img.shields.io/badge/Version-4.0.1-informational?style=flat-square)
3+
![Version: 4.0.2](https://img.shields.io/badge/Version-4.0.2-informational?style=flat-square)
44

55
Helm chart for deploying [Codefresh Runner](https://codefresh.io/docs/docs/installation/codefresh-runner/) to Kubernetes.
66

@@ -662,7 +662,7 @@ Go to [https://<YOUR_ONPREM_DOMAIN_HERE>/admin/runtime-environments/system](http
662662

663663
| Repository | Name | Version |
664664
|------------|------|---------|
665-
| https://chartmuseum.codefresh.io/cf-common | cf-common | 0.12.1 |
665+
| https://chartmuseum.codefresh.io/cf-common | cf-common | 0.12.2 |
666666

667667
## Values
668668

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
{{ $templateName := printf "cf-common-%s.external-secrets" (index .Subcharts "cf-common").Chart.Version }}
2+
{{- include $templateName . -}}

charts/cf-runtime/templates/runner/secret.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
{{- $_ := set $runnerContext "Values" (get .Values "runner") }}
33
{{- $_ := set $runnerContext.Values "global" (get .Values "global") }}
44

5-
{{- if and $runnerContext.Values.enabled (not $runnerContext.Values.global.existingAgentToken) .Values.runtime.agent }}
5+
{{- if and $runnerContext.Values.enabled (not (or $runnerContext.Values.global.existingAgentToken $runnerContext.Values.global.agentTokenSecretKeyRef)) .Values.runtime.agent }}
66
{{- include "runner.resources.secret" $runnerContext }}
77
{{- end }}

charts/cf-runtime/templates/runtime/secret-dind-certs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{{- if .Values.runtime.agent }}
2-
{{- if or (not .Values.global.existingDindCertsSecret ) (not .Values.global.dindCertsSecretRef) }}
2+
{{- if not (or .Values.global.existingDindCertsSecret .Values.global.dindCertsSecretRef) }}
33
apiVersion: v1
44
type: Opaque
55
kind: Secret

0 commit comments

Comments
 (0)