Skip to content

Commit

Permalink
Merge pull request #6 from tomtom-international/feat/imagepullsecret-…
Browse files Browse the repository at this point in the history
…manifest

feat: added imagepull secret
  • Loading branch information
SajadOrouji-TomTom authored Aug 16, 2023
2 parents f6ef065 + be5e506 commit 42efa1e
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/azure-devops-agents/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.6.0
version: 0.7.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
9 changes: 9 additions & 0 deletions charts/azure-devops-agents/templates/imagepullsecret.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{{- with .Values.imagePullSecrets }}
apiVersion: v1
kind: Secret
type: "kubernetes.io/dockerconfigjson"
data:
.dockerconfigjson: {{ .secret | quote }}
metadata:
name: {{ .name }}
{{- end }}
2 changes: 1 addition & 1 deletion charts/azure-devops-agents/templates/scaledjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ spec:
{{- end }}
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
- name: {{- .name }}
{{- end }}
{{- toYaml .Values.autoscaling | nindent 2 }}
scalingStrategy:
Expand Down
1 change: 0 additions & 1 deletion charts/azure-devops-agents/templates/secret.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{{- if .Values.secret.create -}}
---
apiVersion: v1
kind: Secret
type: "Opaque"
Expand Down
3 changes: 3 additions & 0 deletions charts/azure-devops-agents/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ image:
tag: "latest"

imagePullSecrets: []
# name: secret
# secret: "c2VjcmV0Cg=="

nameOverride: ""
fullnameOverride: ""

Expand Down

0 comments on commit 42efa1e

Please sign in to comment.