Skip to content

Commit

Permalink
Merge pull request #7 from banzaicloud/feature/ecr_secret_support
Browse files Browse the repository at this point in the history
Default Secret Support
  • Loading branch information
ahma authored Jun 12, 2021
2 parents c994aef + 5ae68ba commit 745ce8f
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 4 deletions.
2 changes: 1 addition & 1 deletion deploy/charts/imagepullsecrets/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ maintainers:
sources:
- https://github.com/banzaicloud/backyards

version: 0.2.0
version: 0.2.1
appVersion: 0.2.0

9 changes: 6 additions & 3 deletions deploy/charts/imagepullsecrets/templates/default_imps_cr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,13 @@ spec:
namespacesWithPods:
{{ toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.defaultConfig.credentials }}
registry:
credentials:
{{- with .Values.defaultConfig.credentials }}
{{ toYaml . | nindent 8 }}
{{- end }}

{{- end }}
{{- if .Values.defaultSecret.enabled }}
- name: {{ include "imagepullsecret-controller.fullname" . }}-default
namespace: {{ .Release.Namespace }}
{{- end }}
{{- end }}
15 changes: 15 additions & 0 deletions deploy/charts/imagepullsecrets/templates/default_imps_secret.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{{- if .Values.defaultSecret.enabled }}
---
apiVersion: v1
kind: Secret
metadata:
name: {{ include "imagepullsecret-controller.fullname" . }}-default
namespace: {{ .Release.Namespace }}
labels:
{{- include "imagepullsecret-controller.labels" . | nindent 4 }}
type: {{ .Values.defaultSecret.type }}
stringData:
{{- with .Values.defaultSecret.stringData }}
{{ toYaml . | nindent 4 }}
{{- end }}
{{- end }}
6 changes: 6 additions & 0 deletions deploy/charts/imagepullsecrets/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,9 @@ defaultConfig:
namespaces: {}
namespacesWithPods: []
credentials: []

defaultSecret:
enabled: false
stringData: {}
type: ""

0 comments on commit 745ce8f

Please sign in to comment.