Skip to content

Commit

Permalink
Wrap uses of .Values.extensions.imageRepository with conditional
Browse files Browse the repository at this point in the history
Signed-off-by: Kyle Squizzato <[email protected]>
  • Loading branch information
squizzi committed Nov 7, 2024
1 parent 49b03d8 commit 01ed0f4
Show file tree
Hide file tree
Showing 9 changed files with 38 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ spec:
version: "0.0.8"
values: |
image:
{{- if .Values.extensions.imageRepository }}
repository: {{ .Values.extensions.imageRepository }}
{{- end }}
tag: v1.30.3
args:
- --v=2
Expand All @@ -62,6 +64,7 @@ spec:
chartname: aws-ebs-csi-driver/aws-ebs-csi-driver
version: 2.33.0
values: |
{{- if .Values.extensions.imageRepository }}
image:
repository: {{ .Values.extensions.imageRepository }}
sidecars:
Expand All @@ -86,6 +89,7 @@ spec:
volumemodifier:
image:
repository: {{ .Values.extensions.imageRepository }}
{{- end }}
# TODO
defaultStorageClass:
enabled: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ spec:
nodeSelector:
node-role.kubernetes.io/control-plane: "true"
image:
{{- if .Values.extensions.imageRepository }}
repository: {{ .Values.extensions.imageRepository }}
{{- end }}
tag: v1.30.3
args:
- --v=2
Expand All @@ -61,6 +63,7 @@ spec:
chartname: aws-ebs-csi-driver/aws-ebs-csi-driver
version: 2.33.0
values: |
{{- if .Values.extensions.imageRepository }}
image:
repository: {{ .Values.extensions.imageRepository }}
sidecars:
Expand All @@ -85,6 +88,7 @@ spec:
volumemodifier:
image:
repository: {{ .Values.extensions.imageRepository }}
{{- end }}
defaultStorageClass:
enabled: true
node:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,17 +48,23 @@ spec:
cloudConfigSecretName: azure-cloud-provider
nodeSelector:
node-role.kubernetes.io/control-plane: null
{{- if .Values.extensions.imageRepository }}
imageRepository: {{ .Values.extensions.imageRepository }}
{{- end }}
{{- if .Values.extensions.imageRepository }}
cloudNodeManager:
imageRepository: {{ .Values.extensions.imageRepository }}
{{- end }}
- name: azuredisk-csi-driver
namespace: kube-system
chartname: azuredisk-csi-driver/azuredisk-csi-driver
version: 1.30.3
order: 2
values: |
{{- if .Values.extensions.imageRepository }}
image:
baseRepo: {{ .Values.extensions.imageRepository }}
{{- end }}
controller:
cloudConfigSecretName: azure-cloud-provider
node:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,17 +50,23 @@ spec:
cloudConfigSecretName: azure-cloud-provider
nodeSelector:
node-role.kubernetes.io/control-plane: "true"
{{- if .Values.extensions.imageRepository }}
imageRepository: {{ .Values.extensions.imageRepository }}
{{- end }}
{{- if .Values.extensions.imageRepository }}
cloudNodeManager:
imageRepository: {{ .Values.extensions.imageRepository }}
{{- end }}
- name: azuredisk-csi-driver
namespace: kube-system
chartname: azuredisk-csi-driver/azuredisk-csi-driver
version: 1.30.3
order: 2
values: |
{{- if .Values.extensions.imageRepository }}
image:
baseRepo: {{ .Values.extensions.imageRepository }}
{{- end }}
controller:
cloudConfigSecretName: azure-cloud-provider
node:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ spec:
enabled: false
daemonset:
affinity: null
{{- if .Values.extensions.imageRepository }}
image: {{ .Values.extensions.imageRepository }}/cloud-provider-vsphere
{{- end }}
tolerations:
- effect: NoSchedule
key: node.cloudprovider.kubernetes.io/uninitialized
Expand Down Expand Up @@ -81,11 +83,16 @@ spec:
enabled: true
images:
driver:
{{- if .Values.extensions.imageRepository }}
repo: {{ .Values.extensions.imageRepository }}/csi-vsphere/driver
{{- end }}
tag: v3.1.2
syncer:
{{- if .Values.extensions.imageRepository }}
repo: {{ .Values.extensions.imageRepository }}/csi-vsphere/syncer
{{- end }}
tag: v3.1.2
{{- if .Values.extensions.imageRepository }}
nodeDriverRegistrar:
repo: {{ .Values.extensions.imageRepository }}/sig-storage/csi-node-driver-registrar
csiAttacher:
Expand All @@ -98,3 +105,4 @@ spec:
repo: {{ .Values.extensions.imageRepository }}/sig-storage/csi-snapshotter
livenessProbe:
repo: {{ .Values.extensions.imageRepository }}/csi-vsphere/livenessprobe
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,10 @@ spec:
order: 1
namespace: kube-system
values: |
{{- if .Values.extensions.imageRepository }}
image:
repository: {{ .Values.extensions.imageRepository }}/kube-vip
{{- end }}
config:
address: {{ .Values.controlPlaneEndpointIP }}
env:
Expand Down Expand Up @@ -76,7 +78,9 @@ spec:
config:
enabled: false
daemonset:
{{- if .Values.extensions.imageRepository }}
image: {{ .Values.extensions.imageRepository }}/cloud-provider-vsphere
{{- end }}
tolerations:
- effect: NoSchedule
key: node.cloudprovider.kubernetes.io/uninitialized
Expand Down Expand Up @@ -107,11 +111,16 @@ spec:
enabled: true
images:
driver:
{{- if .Values.extensions.imageRepository }}
repo: {{ .Values.extensions.imageRepository }}/csi-vsphere/driver
{{- end }}
tag: v3.1.2
syncer:
{{- if .Values.extensions.imageRepository }}
repo: {{ .Values.extensions.imageRepository }}/csi-vsphere/syncer
{{- end }}
tag: v3.1.2
{{- if .Values.extensions.imageRepository }}
nodeDriverRegistrar:
repo: {{ .Values.extensions.imageRepository }}/sig-storage/csi-node-driver-registrar
csiAttacher:
Expand All @@ -124,6 +133,7 @@ spec:
repo: {{ .Values.extensions.imageRepository }}/sig-storage/csi-snapshotter
livenessProbe:
repo: {{ .Values.extensions.imageRepository }}/csi-vsphere/livenessprobe
{{- end }}
machineTemplate:
infrastructureRef:
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
Expand Down
3 changes: 0 additions & 3 deletions templates/service/ingress-nginx-4-11-0/values.yaml

This file was deleted.

3 changes: 0 additions & 3 deletions templates/service/ingress-nginx-4-11-3/values.yaml

This file was deleted.

3 changes: 0 additions & 3 deletions templates/service/kyverno/values.yaml

This file was deleted.

0 comments on commit 01ed0f4

Please sign in to comment.