Skip to content

Commit 4c6b62f

Browse files
authored
Merge pull request #4279 from k8s-infra-cherrypick-robot/cherry-pick-4262-to-release-2.1
[release-2.1] Zero csi driver aws credentials to fallback to use instance profile role
2 parents 3c04e89 + 1f0f639 commit 4c6b62f

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

test/e2e/data/infrastructure-aws/withoutclusterclass/kustomize_sources/addons/csi/data/aws-ebs-csi-external.yaml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ metadata:
44
name: aws-secret
55
namespace: kube-system
66
stringData:
7-
key_id: ${AWS_ACCESS_KEY_ID}
8-
access_key: ${AWS_SECRET_ACCESS_KEY}
7+
key_id: ""
8+
access_key: ""
99
---
1010
apiVersion: v1
1111
kind: ServiceAccount
@@ -381,6 +381,14 @@ spec:
381381
spec:
382382
affinity:
383383
nodeAffinity:
384+
requiredDuringSchedulingIgnoredDuringExecution:
385+
nodeSelectorTerms:
386+
- matchExpressions:
387+
- key: node-role.kubernetes.io/control-plane
388+
operator: Exists
389+
- matchExpressions:
390+
- key: node-role.kubernetes.io/master
391+
operator: Exists
384392
preferredDuringSchedulingIgnoredDuringExecution:
385393
- preference:
386394
matchExpressions:
@@ -590,6 +598,10 @@ spec:
590598
- effect: NoExecute
591599
operator: Exists
592600
tolerationSeconds: 300
601+
- key: node-role.kubernetes.io/master
602+
effect: NoSchedule
603+
- effect: NoSchedule
604+
key: node-role.kubernetes.io/control-plane
593605
volumes:
594606
- emptyDir: {}
595607
name: socket-dir

0 commit comments

Comments
 (0)