@@ -57,78 +57,115 @@ spec:
57
57
openAPIV3Schema :
58
58
type : string
59
59
default : t3.large
60
+ - name : secureSecretsBackend
61
+ required : false
62
+ schema :
63
+ openAPIV3Schema :
64
+ type : string
65
+ default : secrets-manager
66
+ - name : healthCheckProtocol
67
+ required : false
68
+ schema :
69
+ openAPIV3Schema :
70
+ type : string
71
+ default : SSL
60
72
patches :
61
- - name : region
73
+ - name : awsClusterTemplateGeneral
62
74
definitions :
63
- - selector :
64
- apiVersion : infrastructure.cluster.x-k8s.io/v1beta1
65
- kind : AWSClusterTemplate
66
- matchResources :
67
- infrastructureCluster : true
68
- jsonPatches :
69
- - op : add
70
- path : /spec/template/spec/region
71
- valueFrom :
72
- variable : region
73
- - name : sshKeyName
75
+ - selector :
76
+ apiVersion : infrastructure.cluster.x-k8s.io/v1beta1
77
+ kind : AWSClusterTemplate
78
+ matchResources :
79
+ infrastructureCluster : true
80
+ jsonPatches :
81
+ - op : add
82
+ path : " /spec/template/spec/region"
83
+ valueFrom :
84
+ variable : region
85
+ - op : add
86
+ path : " /spec/template/spec/sshKeyName"
87
+ valueFrom :
88
+ variable : sshKeyName
89
+ - name : awsMachineTemplateControlPlane
74
90
definitions :
75
- - selector :
76
- apiVersion : infrastructure.cluster.x-k8s.io/v1beta1
77
- kind : AWSClusterTemplate
78
- matchResources :
79
- infrastructureCluster : true
80
- jsonPatches :
81
- - op : add
82
- path : /spec/template/spec/sshKeyName
83
- valueFrom :
84
- variable : sshKeyName
85
- - selector :
86
- apiVersion : infrastructure.cluster.x-k8s.io/v1beta1
87
- kind : AWSMachineTemplate
88
- matchResources :
89
- controlPlane : true
90
- machineDeploymentClass :
91
- names :
92
- - default-worker
93
- jsonPatches :
94
- - op : add
95
- path : /spec/template/spec/sshKeyName
96
- valueFrom :
97
- variable : sshKeyName
98
- - name : controlPlaneMachineType
91
+ - selector :
92
+ apiVersion : infrastructure.cluster.x-k8s.io/v1beta1
93
+ kind : AWSMachineTemplate
94
+ matchResources :
95
+ controlPlane : true
96
+ jsonPatches :
97
+ - op : replace
98
+ path : " /spec/template/spec/instanceType"
99
+ valueFrom :
100
+ variable : controlPlaneMachineType
101
+ - op : add
102
+ path : " /spec/template/spec/sshKeyName"
103
+ valueFrom :
104
+ variable : sshKeyName
105
+ - name : awsMachineTemplateWorker
99
106
definitions :
100
- - selector :
101
- apiVersion : infrastructure.cluster.x-k8s.io/v1beta1
102
- kind : AWSMachineTemplate
103
- matchResources :
104
- controlPlane : true
105
- jsonPatches :
106
- - op : replace
107
- path : /spec/template/spec/instanceType
108
- valueFrom :
109
- variable : controlPlaneMachineType
110
- - name : workerMachineType
107
+ - selector :
108
+ apiVersion : infrastructure.cluster.x-k8s.io/v1beta1
109
+ kind : AWSMachineTemplate
110
+ matchResources :
111
+ machineDeploymentClass :
112
+ names :
113
+ - default-worker
114
+ jsonPatches :
115
+ - op : replace
116
+ path : " /spec/template/spec/instanceType"
117
+ valueFrom :
118
+ variable : workerMachineType
119
+ - op : add
120
+ path : " /spec/template/spec/sshKeyName"
121
+ valueFrom :
122
+ variable : sshKeyName
123
+ - name : secureSecretsBackend
124
+ enabledIf : ' {{if .secureSecretsBackend }}true{{end}}'
111
125
definitions :
112
- - selector :
113
- apiVersion : infrastructure.cluster.x-k8s.io/v1beta1
114
- kind : AWSMachineTemplate
115
- matchResources :
116
- machineDeploymentClass :
117
- names :
118
- - default-worker
119
- jsonPatches :
120
- - op : replace
121
- path : /spec/template/spec/instanceType
122
- valueFrom :
123
- variable : workerMachineType
126
+ - selector :
127
+ apiVersion : infrastructure.cluster.x-k8s.io/v1beta1
128
+ kind : AWSMachineTemplate
129
+ matchResources :
130
+ controlPlane : true
131
+ jsonPatches :
132
+ - op : add
133
+ path : " /spec/template/spec/cloudInit/secureSecretsBackend"
134
+ valueFrom :
135
+ variable : secureSecretsBackend
136
+ - selector :
137
+ apiVersion : infrastructure.cluster.x-k8s.io/v1beta1
138
+ kind : AWSMachineTemplate
139
+ matchResources :
140
+ machineDeploymentClass :
141
+ names :
142
+ - default-worker
143
+ jsonPatches :
144
+ - op : add
145
+ path : " /spec/template/spec/cloudInit/secureSecretsBackend"
146
+ valueFrom :
147
+ variable : secureSecretsBackend
148
+ - name : healthCheckProtocol
149
+ enabledIf : ' {{if .healthCheckProtocol }}true{{end}}'
150
+ definitions :
151
+ - selector :
152
+ apiVersion : infrastructure.cluster.x-k8s.io/v1beta1
153
+ kind : AWSClusterTemplate
154
+ matchResources :
155
+ infrastructureCluster : true
156
+ jsonPatches :
157
+ - op : add
158
+ path : " /spec/template/spec/controlPlaneLoadBalancer/healthCheckProtocol"
159
+ valueFrom :
160
+ variable : healthCheckProtocol
124
161
---
125
162
apiVersion : infrastructure.cluster.x-k8s.io/v1beta1
126
163
kind : AWSClusterTemplate
127
164
metadata :
128
165
name : quick-start
129
166
spec :
130
167
template :
131
- spec : { }
168
+ spec : {}
132
169
---
133
170
kind : KubeadmControlPlaneTemplate
134
171
apiVersion : controlplane.cluster.x-k8s.io/v1beta1
@@ -166,6 +203,7 @@ spec:
166
203
# instanceType is a required field (OpenAPI schema).
167
204
instanceType : REPLACEME
168
205
iamInstanceProfile : " control-plane.cluster-api-provider-aws.sigs.k8s.io"
206
+ cloudInit : {}
169
207
---
170
208
apiVersion : infrastructure.cluster.x-k8s.io/v1beta1
171
209
kind : AWSMachineTemplate
@@ -177,11 +215,12 @@ spec:
177
215
# instanceType is a required field (OpenAPI schema).
178
216
instanceType : REPLACEME
179
217
iamInstanceProfile : " nodes.cluster-api-provider-aws.sigs.k8s.io"
218
+ cloudInit : {}
180
219
---
181
220
apiVersion : bootstrap.cluster.x-k8s.io/v1beta1
182
221
kind : KubeadmConfigTemplate
183
222
metadata :
184
- name : " quick-start-worker-bootstraptemplate"
223
+ name : quick-start-worker-bootstraptemplate
185
224
spec :
186
225
template :
187
226
spec :
0 commit comments