Skip to content

Commit

Permalink
common: update to 0.2.0
Browse files Browse the repository at this point in the history
* Changed 'repository' to 'repositorySetting' in 'image'
* Changed 'name' to 'repository' in 'image'
  • Loading branch information
qjoly committed Jul 2, 2023
1 parent 693a826 commit 62f6a65
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 11 deletions.
2 changes: 1 addition & 1 deletion charts/common/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ maintainers:
- name: QJOLY
email: [email protected]
name: common
version: v0.1.0
version: v0.2.0
appVersion: "0"
kubeVersion: ">= 1.18"
home: https://github.com/RubxKube/common-charts
Expand Down
10 changes: 3 additions & 7 deletions charts/common/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,14 @@ spec:
labels:
app: {{ .Release.Name }}
spec:
{{- if .Values.image.repository.isPrivate }}
{{- if .Values.image.repositorySettings.isPrivate }}
imagePullSecrets:
- name: "{{ .Values.image.repository.secretName }}"
- name: "{{ .Values.image.repositorySettings.secretName }}"
{{- end }}
containers:
- name: {{ .Release.Name }}
imagePullPolicy: {{ .Values.image.pullPolicy }}
{{- if .Values.image.repository.name }}
image: "{{ .Values.image.repository.name }}/{{ .Values.image.name }}:{{ .Values.image.tag }}"
{{- else }}
image: "{{ .Values.image.name }}:{{ .Values.image.tag }}"
{{- end }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
ports:
- containerPort: {{ .Values.app.containerPort }}
resources:
Expand Down
5 changes: 2 additions & 3 deletions charts/common/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,10 @@ deployment:

# container
image:
repository:
name: null
repositorySettings:
isPrivate: false
secretName: null
name: nginx
repository: nginx
tag: latest
pullPolicy: Always

Expand Down

0 comments on commit 62f6a65

Please sign in to comment.