Skip to content

Commit a0dbcc4

Browse files
authored
feat(eks-cluster-mgmt): refactor rgds to leverage includeWhen (#613)
1 parent 471bbc6 commit a0dbcc4

File tree

6 files changed

+1313
-1198
lines changed

6 files changed

+1313
-1198
lines changed
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
clusters:
22
workload-cluster1: "012345678910" # AWS account for workload cluster 1
3-
workload-cluster2: "123456789101" # AWS account for workload cluster 2
3+
workload-cluster2: "123456789101" # AWS account for workload cluster 2
4+
workload-cluster3: "234567891012" # AWS account for workload cluster 3

examples/aws/eks-cluster-mgmt/charts/kro-clusters/templates/clusters.yaml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{{- range $name, $cluster := .Values.clusters }}
22
---
33
apiVersion: kro.run/v1alpha1
4-
kind: EksclusterWithVpc
4+
kind: EksCluster
55
metadata:
66
name: {{ $name }}
77
annotations:
@@ -23,11 +23,9 @@ spec:
2323
subHostedZone:
2424
{{- toYaml $cluster.subHostedZone | nindent 4 }}
2525
{{- end }}
26-
{{- if $cluster.cidr }}
27-
cidr:
28-
{{- toYaml $cluster.cidr | nindent 4 }}
29-
{{- else }}
30-
cidr: {}
26+
{{- if $cluster.vpc | quote}}
27+
vpc:
28+
{{- toYaml $cluster.vpc | nindent 4 }}
3129
{{- end }}
3230
{{- if $cluster.gitops }}
3331
gitops:

0 commit comments

Comments
 (0)