Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix broken Velero CA bundle #676

Merged
merged 1 commit into from
Oct 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 27 additions & 13 deletions roles/velero/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,32 @@ velero_cinder_snapshot_class_name: cinder-csi-snapshot
velero_s3_plugin_image_source: velero/velero-plugin-for-aws
velero_s3_plugin_image_version: v1.10.1

# The default backup storage location
# We disable checksums because older Ceph doesn't implement them properly
velero_default_backup_storage_location: >-
{{-
{
"name": "default",
"default": True,
"provider": "aws",
"bucket": velero_bucket_name,
"credential": {
"name": velero_s3_creds_secret_name,
"key": "s3-creds",
},
"config": {
"s3Url": velero_s3_url,
"s3ForcePathStyle": True,
"checksumAlgorithm": "",
},
} |
combine(
{"caCert": (velero_trust_bundle | b64encode)}
if velero_trust_bundle
else {}
)
}}

# Velero Helm chart config
velero_chart_name: velero
velero_chart_repo: https://vmware-tanzu.github.io/helm-charts
Expand All @@ -71,19 +97,7 @@ velero_release_defaults:
configuration:
features: EnableCSI
backupStorageLocation:
- name: default
default: true
provider: aws
bucket: "{{ velero_bucket_name }}"
credential:
name: "{{ velero_s3_creds_secret_name }}"
key: s3-creds
config:
s3Url: "{{ velero_s3_url }}"
s3ForcePathStyle: true
# Older Ceph doesn't implement checksums properly
checksumAlgorithm: ""
caCert: "{{ velero_trust_bundle }}"
- "{{ velero_default_backup_storage_location }}"
volumeSnapshotLocation: []
initContainers:
- name: velero-plugin-for-aws
Expand Down