Skip to content

Commit 2086a67

Browse files
chore: Removing default imagePullPolicy to honor Kubernetes defaults (#287)
* Removing pullPolicy by default, so that default K8s behaviour is applied Signed-off-by: Leanne Ahern <[email protected]> * Bumping Chart.yaml based on change - patch Signed-off-by: Leanne Ahern <[email protected]> * Setting pullPolicy to empty string Signed-off-by: Leanne Ahern <[email protected]> * Updating schema and running pre-commits Signed-off-by: Leanne Ahern <[email protected]> * Updating schema to allow all docs options Signed-off-by: Leanne Ahern <[email protected]> * updating branch Signed-off-by: Leanne Ahern <[email protected]> --------- Signed-off-by: Leanne Ahern <[email protected]>
1 parent 7246f09 commit 2086a67

File tree

5 files changed

+12
-8
lines changed

5 files changed

+12
-8
lines changed

charts/backstage/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@ sources:
3838
# This is the chart version. This version number should be incremented each time you make changes
3939
# to the chart and its templates, including the app version.
4040
# Versions are expected to follow Semantic Versioning (https://semver.org/)
41-
version: 2.6.2
41+
version: 2.6.3

charts/backstage/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Backstage Helm Chart
33

44
[![Artifact Hub](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/backstage)](https://artifacthub.io/packages/search?repo=backstage)
5-
![Version: 2.6.2](https://img.shields.io/badge/Version-2.6.2-informational?style=flat-square)
5+
![Version: 2.6.3](https://img.shields.io/badge/Version-2.6.3-informational?style=flat-square)
66
![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
77

88
A Helm chart for deploying a Backstage application
@@ -131,7 +131,7 @@ Kubernetes: `>= 1.19.0-0`
131131
| backstage.extraVolumes | Backstage container additional volumes | list | `[]` |
132132
| backstage.hostAliases | Host Aliases for the pod <br /> Ref: https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/ | list | `[]` |
133133
| backstage.image.digest | Backstage image digest (digest takes precedence over image tag) | string | `""` |
134-
| backstage.image.pullPolicy | Specify a imagePullPolicy. Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' <br /> Ref: https://kubernetes.io/docs/concepts/containers/images/#image-pull-policy | string | `"Always"` |
134+
| backstage.image.pullPolicy | Specify a imagePullPolicy. Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' <br /> Ref: https://kubernetes.io/docs/concepts/containers/images/#image-pull-policy | string | `""` |
135135
| backstage.image.pullSecrets | Optionally specify an array of imagePullSecrets. Secrets must be manually created in the namespace. <br /> Ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/ <br /> E.g: `pullSecrets: [myRegistryKeySecretName]` | list | `[]` |
136136
| backstage.image.registry | Backstage image registry | string | `"ghcr.io"` |
137137
| backstage.image.repository | Backstage image repository | string | `"backstage/backstage"` |

charts/backstage/values.schema.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4091,11 +4091,13 @@
40914091
"type": "string"
40924092
},
40934093
"pullPolicy": {
4094-
"default": "Always",
4094+
"default": "",
40954095
"description": "Ref: https://kubernetes.io/docs/concepts/containers/images/#image-pull-policy",
40964096
"enum": [
40974097
"Always",
4098-
"IfNotPresent"
4098+
"IfNotPresent",
4099+
"Never",
4100+
""
40994101
],
41004102
"title": "Specify a imagePullPolicy.",
41014103
"type": "string"

charts/backstage/values.schema.tmpl.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,10 +255,12 @@
255255
"title": "Specify a imagePullPolicy.",
256256
"description": "Ref: https://kubernetes.io/docs/concepts/containers/images/#image-pull-policy",
257257
"type": "string",
258-
"default": "Always",
258+
"default": "",
259259
"enum": [
260260
"Always",
261-
"IfNotPresent"
261+
"IfNotPresent",
262+
"Never",
263+
""
262264
]
263265
},
264266
"pullSecrets": {

charts/backstage/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ backstage:
125125
# -- Specify a imagePullPolicy.
126126
# Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
127127
# <br /> Ref: https://kubernetes.io/docs/concepts/containers/images/#image-pull-policy
128-
pullPolicy: Always
128+
pullPolicy: ""
129129

130130
# -- Optionally specify an array of imagePullSecrets.
131131
# Secrets must be manually created in the namespace.

0 commit comments

Comments
 (0)