Skip to content

Commit 9026c52

Browse files
committed
Attempt#0 at fixing failures; add clusterIdentityName
Signed-off-by: Parthvi Vala <[email protected]>
1 parent e7d5a01 commit 9026c52

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

examples/clusterclasses/aws/eks/clusterclass-eks-example.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,13 @@ spec:
5555
description: "EKS cluster name"
5656
type: string
5757
default: ''
58+
- name: awsClusterIdentityName
59+
required: true
60+
schema:
61+
openAPIV3Schema:
62+
description: The AWSClusterStaticIdentity resource name referencing the credentials to create the Cluster.
63+
type: string
64+
default: cluster-identity
5865
patches:
5966
- name: awsManagedControlPlaneTemplate
6067
definitions:
@@ -78,6 +85,10 @@ spec:
7885
path: /spec/template/spec/sshKeyName
7986
valueFrom:
8087
variable: sshKeyName
88+
- op: add
89+
path: /spec/template/spec/identityRef/name
90+
valueFrom:
91+
variable: awsClusterIdentityName
8192
# Builtins
8293
- op: add
8394
path: "/spec/template/spec/version"
@@ -120,6 +131,9 @@ spec:
120131
spec:
121132
region: "replaced_by_patch"
122133
version: "v0.0.0" # To be replaced by patch
134+
identityRef:
135+
kind: AWSClusterStaticIdentity
136+
name: cluster-identity
123137
---
124138
apiVersion: infrastructure.cluster.x-k8s.io/v1beta2
125139
kind: AWSMachineTemplate

test/e2e/data/cluster-templates/aws-eks-topology.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ spec:
2020
value: ${AWS_SSH_KEY_NAME}
2121
- name: instanceType
2222
value: t3.xlarge
23+
- name: awsClusterIdentityName
24+
value: cluster-identity
2325
workers:
2426
machineDeployments:
2527
- class: default-worker

0 commit comments

Comments
 (0)