Skip to content

Commit

Permalink
Merge pull request #133 from nrwl/imagePullSecrets-agents
Browse files Browse the repository at this point in the history
Use literal YAML for imagePullSecrets
  • Loading branch information
pmariglia authored Sep 12, 2024
2 parents e174539 + bb8d0f5 commit 00703fd
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 12 deletions.
2 changes: 1 addition & 1 deletion charts/nx-agents/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: nx-agents
description: Nx Cloud Agents Helm Chart
type: application
version: 1.2.3
version: 1.2.4
maintainers:
- name: nx
url: "https://nx.app/"
Expand Down
4 changes: 2 additions & 2 deletions charts/nx-agents/ci/basic-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ serviceAccounts:
controller:
annotations: {}
imagePullSecrets:
- "regcreds"
- name: controller
runner:
annotations: {}
imagePullSecrets:
- "regcreds"
- name: runner

controller:
deployment:
Expand Down
10 changes: 3 additions & 7 deletions charts/nx-agents/templates/serviceaccounts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ apiVersion: v1
kind: ServiceAccount
{{- if .Values.serviceAccounts.runner.imagePullSecrets }}
imagePullSecrets:
{{- range .Values.serviceAccounts.runner.imagePullSecrets }}
- name: {{ . }}
{{- end }}
{{- toYaml .Values.serviceAccounts.runner.imagePullSecrets | nindent 2 }}
{{- end }}
metadata:
labels:
Expand All @@ -19,11 +17,9 @@ metadata:
---
apiVersion: v1
kind: ServiceAccount
{{- if .Values.serviceAccounts.runner.imagePullSecrets }}
{{- if .Values.serviceAccounts.controller.imagePullSecrets }}
imagePullSecrets:
{{- range .Values.serviceAccounts.runner.imagePullSecrets }}
- name: {{ . }}
{{- end }}
{{- toYaml .Values.serviceAccounts.controller.imagePullSecrets | nindent 2 }}
{{- end }}
metadata:
labels:
Expand Down
4 changes: 2 additions & 2 deletions charts/nx-agents/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ serviceAccounts:
controller:
name: nx-cloud-workflow-controller
annotations: {}
imagePullSecrets: {}
imagePullSecrets: []
runner:
name: nx-cloud-workflow-runner
annotations: {}
imagePullSecrets: {}
imagePullSecrets: []

# The controller is the main component of the workflow system. It is responsible for managing the state of workflows, starting
# new runs in your cluster, and managing the agents that run your workflows. It should be internally accessible from both
Expand Down

0 comments on commit 00703fd

Please sign in to comment.