Skip to content

Commit fea3c70

Browse files
authored
fix: [PAYMCLOUD-750] fix typo and use one secret for repository pull (#153)
fix: fix typo and use one secret for repository pull
1 parent eb7735d commit fea3c70

File tree

5 files changed

+9
-6
lines changed

5 files changed

+9
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ Specify a name of the secret to pull the image from a private registry.
235235

236236
```yaml
237237
imagePullSecret:
238-
- name: NAME_OF_IMAGE_PULL_SECRET
238+
name: NAME_OF_IMAGE_PULL_SECRET
239239
```
240240

241241
### `configMapFromFile`: load file defined inside internal value configMap and mount in a pod as file

charts/microservice-chart/README.md

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

3-
![Version: 8.1.1](https://img.shields.io/badge/Version-8.1.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.0.0](https://img.shields.io/badge/AppVersion-0.0.0-informational?style=flat-square)
3+
![Version: 8.1.2](https://img.shields.io/badge/Version-8.1.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.0.0](https://img.shields.io/badge/AppVersion-0.0.0-informational?style=flat-square)
44

55
A Helm chart for PagoPA microservice
66

@@ -53,7 +53,7 @@ A Helm chart for PagoPA microservice
5353
| image.pullPolicy | string | `"Always"` | Pull policy to use |
5454
| image.repository | string | `""` | Docker reposity for the container |
5555
| image.tag | string | `"v0.0.0"` | Container TAG |
56-
| imagePullSecrets | list | `[]` | imagePullSecrets: use a Secret to pull an image from a private container image registry or repository |
56+
| imagePullSecrets | object | `{"name":""}` | imagePullSecrets: use a Secret to pull an image from a private container image registry or repository |
5757
| ingress | object | - | Ingress configuration |
5858
| ingress.annotations | map | `{}` | custom annotations for ingress |
5959
| ingress.create | bool | `false` | Create or not the ingress manifest |

charts/microservice-chart/templates/deployments.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,10 +261,12 @@ spec:
261261
{{- with .Values.sidecars }}
262262
{{- toYaml . | nindent 8 }}
263263
{{- end }}
264-
{{- if not (empty .Values.imagePullSerets) }}
264+
{{- if and .Values.imagePullSecrets (kindIs "map" .Values.imagePullSecrets) -}}
265+
{{- if .Values.imagePullSecrets.name }}
265266
imagePullSecrets:
266267
- name: {{ .Values.imagePullSecrets.name }}
267268
{{- end }}
269+
{{- end }}
268270
{{- if .Values.initContainers }}
269271
initContainers:
270272
{{- range .Values.initContainers }}

charts/microservice-chart/values.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ image:
5454
pullPolicy: Always
5555

5656
# -- imagePullSecrets: use a Secret to pull an image from a private container image registry or repository
57-
imagePullSecrets: []
57+
imagePullSecrets:
58+
name: ""
5859

5960
# -- Sidecars, each object has exactly the same schema as a Pod, except it does not have an apiVersion or kind
6061
sidecars: []

tests/v8-java-helm-complete-test-bar/helm/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ version: 1.0.0
66
appVersion: 1.0.0
77
dependencies:
88
- name: microservice-chart
9-
version: 8.1.1
9+
version: 8.1.2
1010
repository: file://../../../charts/microservice-chart

0 commit comments

Comments
 (0)