Preflight Checklist
Problem Description
Currently Velero hook annotations use hardcoded path /vault/file for fsfreeze:
|
veleroAnnotations := map[string]string{ |
|
"pre.hook.backup.velero.io/container": "velero-fsfreeze", |
|
"pre.hook.backup.velero.io/command": "[\"/sbin/fsfreeze\", \"--freeze\", \"/vault/file/\"]", |
|
"post.hook.backup.velero.io/container": "velero-fsfreeze", |
|
"post.hook.backup.velero.io/command": "[\"/sbin/fsfreeze\", \"--unfreeze\", \"/vault/file/\"]", |
|
} |
It is not possible to override these annotations with the vaultAnnotations, so there is no way to customize path for fsfreeze.
Proposed Solution
Make veleroAnnotations a part of custom resource with current value as a default.
Alternatives Considered
Get path from provided Vault configuration.
Additional Information
No response
Preflight Checklist
Problem Description
Currently Velero hook annotations use hardcoded path
/vault/fileforfsfreeze:vault-operator/pkg/controller/vault/vault_controller.go
Lines 1417 to 1422 in 661263a
It is not possible to override these annotations with the
vaultAnnotations, so there is no way to customize path forfsfreeze.Proposed Solution
Make
veleroAnnotationsa part of custom resource with current value as a default.Alternatives Considered
Get path from provided Vault configuration.
Additional Information
No response