mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-01-03 11:45:20 +00:00
Flexible way to add the secret
Signed-off-by: Carlisia <carlisia@vmware.com>
This commit is contained in:
3
design/CLI/PoC/overlays/plugins/cloud
Normal file
3
design/CLI/PoC/overlays/plugins/cloud
Normal file
@@ -0,0 +1,3 @@
|
||||
[default]
|
||||
aws_access_key_id = minio
|
||||
aws_secret_access_key = minio123
|
||||
@@ -4,11 +4,19 @@ kind: Kustomization
|
||||
bases:
|
||||
- ../../base
|
||||
|
||||
resources:
|
||||
- secret.yaml
|
||||
patchesStrategicMerge:
|
||||
- aws-plugin.yaml # this patches the Velero deployment
|
||||
- gcp-plugin.yaml # this patches the Velero deployment
|
||||
- azure-plugin.yaml # this patches the Velero deployment
|
||||
|
||||
generatorOptions:
|
||||
disableNameSuffixHash: true
|
||||
labels:
|
||||
component: velero
|
||||
|
||||
secretGenerator:
|
||||
- name: cloud-credentials
|
||||
files:
|
||||
- "cloud"
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
data:
|
||||
cloud: W2RlZmF1bHRdCmF3c19hY2Nlc3Nfa2V5X2lkPW1pbmlvCmF3c19zZWNyZXRfYWNjZXNzX2tleT1taW5pbzEyMwo=
|
||||
kind: Secret
|
||||
metadata:
|
||||
creationTimestamp: null
|
||||
labels:
|
||||
component: velero
|
||||
name: cloud-credentials
|
||||
namespace: velero
|
||||
type: Opaque
|
||||
Reference in New Issue
Block a user