Skip to content

Commit 3b36286

Browse files
feat: add extraResources (#371)
1 parent f8e7862 commit 3b36286

File tree

4 files changed

+51
-6
lines changed

4 files changed

+51
-6
lines changed

charts/cf-runtime/Chart.yaml

Lines changed: 4 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: 3.0.3
4+
version: 3.0.4
55
keywords:
66
- codefresh
77
- runner
@@ -14,9 +14,9 @@ maintainers:
1414
url: https://codefresh-io.github.io/
1515
annotations:
1616
artifacthub.io/changes: |
17-
- kind: fixed
18-
description: Fix README note for mandatory api token
17+
- kind: added
18+
description: Add extraResources list to deploy
1919
dependencies:
2020
- name: cf-common
2121
repository: https://chartmuseum.codefresh.io/cf-common
22-
version: 0.9.3
22+
version: 0.11.1

charts/cf-runtime/README.md

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

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

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

@@ -378,7 +378,7 @@ volumeProvisioner:
378378
379379
| Repository | Name | Version |
380380
|------------|------|---------|
381-
| https://chartmuseum.codefresh.io/cf-common | cf-common | 0.9.3 |
381+
| https://chartmuseum.codefresh.io/cf-common | cf-common | 0.11.1 |
382382
383383
## Values
384384
@@ -411,6 +411,7 @@ volumeProvisioner:
411411
| appProxy.tolerations | list | `[]` | Set tolerations |
412412
| appProxy.updateStrategy | object | `{"type":"RollingUpdate"}` | Upgrade strategy |
413413
| dockerRegistry | string | `""` | |
414+
| extraResources | list | `[]` | Array of extra objects to deploy with the release |
414415
| global | object | See below | Global parameters Global values are in generated_values.yaml. Run `codefresh runner init --generate-helm-values-file`! |
415416
| global.accountId | string | `""` | Account ID |
416417
| global.agentId | string | `""` | Agent ID |
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{{ $cfCommonTplSemver := printf "cf-common-%s" (index .Subcharts "cf-common").Chart.Version }}
2+
3+
{{- range .Values.extraResources }}
4+
---
5+
{{ include (printf "%s.tplrender" $cfCommonTplSemver) (dict "Values" . "context" $) }}
6+
{{- end }}

charts/cf-runtime/values.yaml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -683,3 +683,41 @@ monitor:
683683
tolerations: []
684684
# -- Set affinity
685685
affinity: {}
686+
687+
# -- Array of extra objects to deploy with the release
688+
extraResources: []
689+
# E.g.
690+
# extraResources:
691+
# - apiVersion: rbac.authorization.k8s.io/v1
692+
# kind: ClusterRole
693+
# metadata:
694+
# name: codefresh-role
695+
# rules:
696+
# - apiGroups: [ "*"]
697+
# resources: ["*"]
698+
# verbs: ["get", "list", "watch", "create", "update", "patch", "delete"]
699+
# - apiVersion: v1
700+
# kind: ServiceAccount
701+
# metadata:
702+
# name: codefresh-user
703+
# namespace: "{{ .Release.Namespace }}"
704+
# - apiVersion: rbac.authorization.k8s.io/v1
705+
# kind: ClusterRoleBinding
706+
# metadata:
707+
# name: codefresh-user
708+
# roleRef:
709+
# apiGroup: rbac.authorization.k8s.io
710+
# kind: ClusterRole
711+
# name: codefresh-role
712+
# subjects:
713+
# - kind: ServiceAccount
714+
# name: codefresh-user
715+
# namespace: "{{ .Release.Namespace }}"
716+
# - apiVersion: v1
717+
# kind: Secret
718+
# type: kubernetes.io/service-account-token
719+
# metadata:
720+
# name: codefresh-user-token
721+
# namespace: "{{ .Release.Namespace }}"
722+
# annotations:
723+
# kubernetes.io/service-account.name: "codefresh-user"

0 commit comments

Comments
 (0)