UNCLASSIFIED - NO CUI

Skip to content
Snippets Groups Projects
Verified Commit 752a5c6b authored by Micah Nagel's avatar Micah Nagel :moneybag:
Browse files

refactor plugin values

parent 76060e11
No related branches found
No related tags found
1 merge request!2460Simplify/add Velero plugin values
Pipeline #1320136 passed
......@@ -53,64 +53,19 @@ image:
pullPolicy: {{ .Values.imagePullPolicy }}
{{- if eq (len .Values.addons.velero.plugins) 0 }}{{- fail "At least one plugin in '.Values.addons.velero.plugins' required. Supported values: aws, azure, csi" }}{{- end }}
initContainers:
plugins:
{{- range .Values.addons.velero.plugins }}
{{- if eq . "aws" }}
- name: velero-plugin-for-aws
image: registry1.dso.mil/ironbank/opensource/velero/velero-plugin-for-aws:v1.6.0
imagePullPolicy: {{ dig "image" "pullPolicy" "IfNotPresent" $.Values.addons.velero.values }}
volumeMounts:
- mountPath: /target
name: plugins
resources:
requests:
memory: 512Mi
cpu: 100m
limits:
memory: 512Mi
cpu: 100m
securityContext:
capabilities:
drop:
- ALL
aws:
enabled: true
{{- end }}
{{- if eq . "azure" }}
- name: velero-plugin-for-azure
image: registry1.dso.mil/ironbank/opensource/velero/velero-plugin-for-microsoft-azure:v1.6.0
imagePullPolicy: {{ dig "image" "pullPolicy" "IfNotPresent" $.Values.addons.velero.values }}
volumeMounts:
- mountPath: /target
name: plugins
resources:
requests:
memory: 512Mi
cpu: 100m
limits:
memory: 512Mi
cpu: 100m
securityContext:
capabilities:
drop:
- ALL
azure:
enabled: true
{{- end }}
{{- if eq . "csi" }}
- name: velero-plugin-for-csi
image: registry1.dso.mil/ironbank/opensource/velero/velero-plugin-for-csi:v0.4.0
imagePullPolicy: {{ dig "image" "pullPolicy" "IfNotPresent" $.Values.addons.velero.values }}
volumeMounts:
- mountPath: /target
name: plugins
resources:
requests:
memory: 512Mi
cpu: 100m
limits:
memory: 512Mi
cpu: 100m
securityContext:
capabilities:
drop:
- ALL
csi:
enabled: true
configuration:
features: EnableCSI
{{- end }}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment