Skip to content

Commit

Permalink
unable to locate ObjectStore plugin named velero.io/azure issue:3333 …
Browse files Browse the repository at this point in the history
…/ helm install

Signed-off-by: Oliver Michels <[email protected]>
  • Loading branch information
Oliver Michels committed Jun 15, 2022
1 parent f142cf8 commit 0ba1833
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 3 deletions.
35 changes: 32 additions & 3 deletions charts/velero/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -185,10 +185,39 @@ spec:
dnsPolicy: {{ .Values.dnsPolicy }}
{{- if .Values.initContainers }}
initContainers:
{{- if eq (typeOf .Values.initContainers) "string" }}
{{- tpl .Values.initContainers . | nindent 8 }}
{{- if eq $provider "aws" }}
- name: velero-plugin-for-aws
image: velero/velero-plugin-for-aws:v1.4.1
imagePullPolicy: IfNotPresent
volumeMounts:
- mountPath: /target
name: plugins
{{- else if eq $provider "gcp"}}
- name: velero-velero-plugin-for-gcp
image: velero/velero-plugin-for-microsoft-azure:v1.5.0
imagePullPolicy: IfNotPresent
volumeMounts:
- mountPath: /target
name: plugins
{{- else if eq $provider "azure" }}
- name: velero-velero-plugin-for-microsoft-azure
image: velero/velero-plugin-for-microsoft-azure:v1.4.0
imagePullPolicy: IfNotPresent
volumeMounts:
- mountPath: /target
name: plugins
{{- else if eq $provider "alibabacloud" }}
- name: velero-velero-plugin-for-alibabacloud
image: velero/velero-plugin-for-alibabacloud:latest
imagePullPolicy: IfNotPresent
volumeMounts:
- mountPath: /target
name: plugins
{{- end }}
{{- if eq (typeOf .Values.initContainers.extraSpec) "string" }}
{{- tpl .Values.initContainers.extraSpec . | nindent 8 }}
{{- else }}
{{- toYaml .Values.initContainers | nindent 8 }}
{{- toYaml .Values.initContainers.extraSpec | nindent 8 }}
{{- end }}
{{- end }}
volumes:
Expand Down
7 changes: 7 additions & 0 deletions charts/velero/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ dnsPolicy: ClusterFirst
# Init containers to add to the Velero deployment's pod spec. At least one plugin provider image is required.
# If the value is a string then it is evaluated as a template.
initContainers:
extraSpec: {}
# - name: velero-plugin-for-csi
# image: velero/velero-plugin-for-csi:v0.2.0
# imagePullPolicy: IfNotPresent
Expand All @@ -64,6 +65,12 @@ initContainers:
# volumeMounts:
# - mountPath: /target
# name: plugins
# - name: velero-velero-plugin-for-microsoft-azure
# image: velero/velero-plugin-for-microsoft-azure:v1.4.0
# imagePullPolicy: IfNotPresent
# volumeMounts:
# - mountPath: /target
# name: plugins

# SecurityContext to use for the Velero deployment. Optional.
# Set fsGroup for `AWS IAM Roles for Service Accounts`
Expand Down

0 comments on commit 0ba1833

Please sign in to comment.