Skip to content

Commit f5e267e

Browse files
add default credentialsRef to bucket and key resources (#502)
1 parent df718d4 commit f5e267e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

templates/addons/etcd-backup-restore/linode-obj.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ metadata:
1111
cluster.x-k8s.io/cluster-name: ${CLUSTER_NAME}
1212
name: ${CLUSTER_NAME}-etcd-backup
1313
spec:
14+
credentialsRef:
15+
name: ${CLUSTER_NAME}-credentials
1416
region: ${OBJ_BUCKET_REGION:=${LINODE_REGION}}
1517
---
1618
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha2
@@ -25,6 +27,8 @@ metadata:
2527
cluster.x-k8s.io/cluster-name: ${CLUSTER_NAME}
2628
name: ${CLUSTER_NAME}-etcd-backup
2729
spec:
30+
credentialsRef:
31+
name: ${CLUSTER_NAME}-credentials
2832
bucketAccess:
2933
- bucketName: ${CLUSTER_NAME}-etcd-backup
3034
permissions: read_write

0 commit comments

Comments
 (0)