Skip to content

Commit c831c7b

Browse files
K8SPS-578 add backup storage secret examples (#1150)
* Add examples for GCP and Azure secrets * Rename files * Rename file in test
1 parent 59bcb00 commit c831c7b

File tree

4 files changed

+17
-1
lines changed

4 files changed

+17
-1
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
apiVersion: v1
2+
kind: Secret
3+
metadata:
4+
name: ps-cluster1-azure-credentials
5+
type: Opaque
6+
data:
7+
AZURE_STORAGE_ACCOUNT_NAME: UkVQTEFDRS1XSVRILUFaVVJFLVNUT1JBR0UtQUNDT1VOVC1OQU1F
8+
AZURE_STORAGE_ACCOUNT_KEY: UkVQTEFDRS1XSVRILUFaVVJFLVNUT1JBR0UtQUNDT1VOVC1LRVk=
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
apiVersion: v1
2+
kind: Secret
3+
metadata:
4+
name: ps-cluster1-gcp-credentials
5+
type: Opaque
6+
data:
7+
ACCESS_KEY_ID: Z2NwLWFjY2Vzcy1rZXkK
8+
SECRET_ACCESS_KEY: Z2NwLXNlY3JldC1rZXkK
File renamed without changes.

pkg/controller/psrestore/helpers_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ func readDefaultS3Secret(t *testing.T, name, namespace string) *corev1.Secret {
5656
t.Helper()
5757

5858
secret := new(corev1.Secret)
59-
readDefaultFile(t, "backup/backup-s3.yaml", secret)
59+
readDefaultFile(t, "backup/backup-secret-s3.yaml", secret)
6060

6161
secret.Name = name
6262
secret.Namespace = namespace

0 commit comments

Comments
 (0)