UNCLASSIFIED - NO CUI

Skip to content
Snippets Groups Projects
values.yaml 2.24 KiB
Newer Older
{{- if .Values.addons.velero.enabled }}
{{- include "values-secret" (dict "root" $ "package" .Values.addons.velero "name" "velero" "defaults" (include "bigbang.defaults.velero" .)) }}
{{- end }}

{{- define "bigbang.defaults.velero" -}}

istio:
  enabled: {{ .Values.istio.enabled }}

{{- if .Values.istio.enabled }}
podAnnotations:
  {{ include "istioAnnotation" . }}
{{- end }}

monitoring:
  enabled: {{ .Values.monitoring.enabled }}

Micah Nagel's avatar
Micah Nagel committed
networkPolicies:
  enabled: {{ .Values.networkPolicies.enabled }}
Micah Nagel's avatar
Micah Nagel committed
  controlPlaneCidr: {{ .Values.networkPolicies.controlPlaneCidr }}
imagePullSecrets:
- name: private-registry
bhearn's avatar
bhearn committed
{{- 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:
{{- range .Values.addons.velero.plugins }}
{{- if eq . "aws" }}
  - name: velero-plugin-for-aws
Micah Nagel's avatar
Micah Nagel committed
    image: registry1.dso.mil/ironbank/opensource/velero/velero-plugin-for-aws:v1.3.0
    imagePullPolicy: {{ dig "image" "pullPolicy" "IfNotPresent" $.Values.addons.velero.values }}
    volumeMounts:
      - mountPath: /target
        name: plugins
Branden Cobb's avatar
Branden Cobb committed
    resources:
      requests:
        memory: 512Mi
        cpu: 100m
      limits:
        memory: 512Mi
        cpu: 100m
bhearn's avatar
bhearn committed
{{- end }}
{{- if eq . "azure" }}
  - name: velero-plugin-for-azure
Micah Nagel's avatar
Micah Nagel committed
    image: registry1.dso.mil/ironbank/opensource/velero/velero-plugin-for-microsoft-azure:v1.3.1
    imagePullPolicy: {{ dig "image" "pullPolicy" "IfNotPresent" $.Values.addons.velero.values }}
    volumeMounts:
      - mountPath: /target
        name: plugins
Branden Cobb's avatar
Branden Cobb committed
    resources:
      requests:
        memory: 512Mi
        cpu: 100m
      limits:
        memory: 512Mi
        cpu: 100m
{{- end }}
bhearn's avatar
bhearn committed
{{- if eq . "csi" }}
  - name: velero-plugin-for-csi
    image: registry1.dso.mil/ironbank/opensource/velero/velero-plugin-for-csi:v0.1.2
    imagePullPolicy: {{ dig "image" "pullPolicy" "IfNotPresent" $.Values.addons.velero.values }}
bhearn's avatar
bhearn committed
    volumeMounts:
      - mountPath: /target
        name: plugins
Branden Cobb's avatar
Branden Cobb committed
    resources:
      requests:
        memory: 512Mi
        cpu: 100m
      limits:
        memory: 512Mi
        cpu: 100m
bhearn's avatar
bhearn committed
configuration:
  features: EnableCSI
{{- end }}
{{- end }}

Micah Nagel's avatar
Micah Nagel committed
{{- end -}}