Skip to content

Commit

Permalink
Merge pull request #115 from gimlet-io/image-pull-secrets-schema-values
Browse files Browse the repository at this point in the history
Image pull secrets schema values
  • Loading branch information
laszlocph authored Feb 1, 2024
2 parents 933a10b + 373b6e9 commit dde74f2
Show file tree
Hide file tree
Showing 13 changed files with 36 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 @@ -15,4 +15,4 @@ type: library
# 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.5.0
version: 0.5.1
4 changes: 3 additions & 1 deletion charts/common/templates/_podSpec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
{{- define "common.podSpec.tpl" -}}
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 2 }}
{{- range . }}
- name: {{ . }}
{{- end }}
{{- end }}
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 2 }}
Expand Down
6 changes: 3 additions & 3 deletions charts/cron-job/Chart.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
dependencies:
- name: common
repository: file://../common
version: 0.5.0
digest: sha256:30d2b6050fd6d3ce739c4a1b549f16713ad778669467e767ddf1fc67bc1114d4
generated: "2023-12-18T16:50:56.069352+01:00"
version: 0.5.1
digest: sha256:ca23e74d63ca4339e8720d1af3709107d1d5831c5f9e78d9ae88107a2590c826
generated: "2024-02-01T13:22:33.441381+01:00"
2 changes: 1 addition & 1 deletion charts/cron-job/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ version: 0.64.0

dependencies:
- name: common
version: 0.5.0
version: 0.5.1
repository: file://../common
Binary file removed charts/cron-job/charts/common-0.5.0.tgz
Binary file not shown.
Binary file added charts/cron-job/charts/common-0.5.1.tgz
Binary file not shown.
6 changes: 3 additions & 3 deletions charts/onechart/Chart.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
dependencies:
- name: common
repository: file://../common
version: 0.5.0
digest: sha256:30d2b6050fd6d3ce739c4a1b549f16713ad778669467e767ddf1fc67bc1114d4
generated: "2023-12-18T13:46:34.090227+01:00"
version: 0.5.1
digest: sha256:ca23e74d63ca4339e8720d1af3709107d1d5831c5f9e78d9ae88107a2590c826
generated: "2024-02-01T13:22:32.899733+01:00"
2 changes: 1 addition & 1 deletion charts/onechart/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ version: 0.64.0

dependencies:
- name: common
version: 0.5.0
version: 0.5.1
repository: file://../common
Binary file removed charts/onechart/charts/common-0.5.0.tgz
Binary file not shown.
Binary file added charts/onechart/charts/common-0.5.1.tgz
Binary file not shown.
6 changes: 6 additions & 0 deletions charts/onechart/helm-ui.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,17 @@
"schemaIDs": [
"#/properties/image",
"#/properties/containerPort",
"#/properties/imagePullSecrets",
"#/properties/replicas"
],
"uiSchema": {
"#/properties/replicas": {
"ui:widget": "range"
},
"#/properties/imagePullSecrets": {
"additionalProperties": {
"type": "string"
}
}
},
"metaData": {
Expand Down
2 changes: 1 addition & 1 deletion charts/onechart/tests/deployment_image_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ tests:
- it: Should set an ImagePullSecret
set:
imagePullSecrets:
- name: regcred
- regcred
asserts:
- template: deployment.yaml
documentIndex: 0
Expand Down
17 changes: 17 additions & 0 deletions charts/onechart/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"repository": "nginx",
"tag": "latest"
},
"imagePullSecrets" : [],
"replicas": 1,
"nameOverride": "",
"fullnameOverride": "",
Expand Down Expand Up @@ -132,6 +133,22 @@
]
}
},
"imagePullSecrets" : {
"$id": "#/properties/imagePullSecrets",
"type": "array",
"title": "ImagePull Secrets",
"description": "The name of the Kubernetes secret to use to pull an image from a private container registry.",
"default": [],
"examples": [
"regcred"
],
"additionalItems": true,
"items": {
"$id": "#/properties/imagePullSecrets/items",
"type": "string",
"default": ""
}
},
"replicas": {
"$id": "#/properties/replicas",
"type": "integer",
Expand Down

0 comments on commit dde74f2

Please sign in to comment.