Flexible way to add the secret

Signed-off-by: Carlisia <carlisia@vmware.com>
This commit is contained in:
Carlisia
2020-03-10 14:04:04 -07:00
parent 539c6e13b5
commit 73d0f7ca29
4 changed files with 14 additions and 15 deletions

View File

@@ -0,0 +1,3 @@
[default]
aws_access_key_id = minio
aws_secret_access_key = minio123

View File

@@ -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"

View File

@@ -1,12 +0,0 @@
---
apiVersion: v1
data:
cloud: W2RlZmF1bHRdCmF3c19hY2Nlc3Nfa2V5X2lkPW1pbmlvCmF3c19zZWNyZXRfYWNjZXNzX2tleT1taW5pbzEyMwo=
kind: Secret
metadata:
creationTimestamp: null
labels:
component: velero
name: cloud-credentials
namespace: velero
type: Opaque