Skip to content

Commit 852f846

Browse files
authored
Merge pull request #3720 from sedefsavas/v1beta2_latest
v1beta2 APIs
2 parents 14f91d8 + 5f8e106 commit 852f846

File tree

464 files changed

+8804
-25615
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

464 files changed

+8804
-25615
lines changed

.golangci.yml

Lines changed: 10 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -85,33 +85,25 @@ linters-settings:
8585
alias: utilconversion
8686
- pkg: k8s.io/apimachinery/pkg/conversion
8787
alias: apiconversion
88-
- pkg: sigs.k8s.io/cluster-api-provider-aws/api/v1beta1
88+
- pkg: sigs.k8s.io/cluster-api-provider-aws/api/v1beta2
8989
alias: infrav1
90-
- pkg: sigs.k8s.io/cluster-api-provider-aws/exp/api/v1alpha3
91-
alias: expinfrav1alpha3
92-
- pkg: sigs.k8s.io/cluster-api-provider-aws/exp/api/v1alpha4
93-
alias: expinfrav1alpha4
90+
- pkg: sigs.k8s.io/cluster-api-provider-aws/api/v1beta1
91+
alias: infrav1beta1
9492
- pkg: sigs.k8s.io/cluster-api-provider-aws/exp/api/v1beta1
93+
alias: expinfrav1beta1
94+
- pkg: sigs.k8s.io/cluster-api-provider-aws/exp/api/v1beta2
9595
alias: expinfrav1
96-
- pkg: sigs.k8s.io/cluster-api-provider-aws/api/v1alpha4
97-
alias: infrav1alpha4
98-
- pkg: sigs.k8s.io/cluster-api-provider-aws/api/v1alpha3
99-
alias: infrav1alpha3
10096
- pkg: k8s.io/client-go/kubernetes/scheme
10197
alias: cgscheme
10298
- pkg: k8s.io/client-go/tools/record
10399
alias: cgrecord
104-
- pkg: sigs.k8s.io/cluster-api-provider-aws/bootstrap/eks/api/v1alpha3
105-
alias: eksbootstrapv1alpha3
106-
- pkg: sigs.k8s.io/cluster-api-provider-aws/bootstrap/eks/api/v1alpha4
107-
alias: eksbootstrapv1alpha4
108100
- pkg: sigs.k8s.io/cluster-api-provider-aws/bootstrap/eks/api/v1beta1
101+
alias: eksbootstrapv1beta1
102+
- pkg: sigs.k8s.io/cluster-api-provider-aws/bootstrap/eks/api/v1beta2
109103
alias: eksbootstrapv1
110-
- pkg: sigs.k8s.io/cluster-api-provider-aws/controlplane/eks/api/v1alpha3
111-
alias: ekscontrolplanev1alpha3
112-
- pkg: sigs.k8s.io/cluster-api-provider-aws/controlplane/eks/api/v1alpha4
113-
alias: ekscontrolplanev1alpha4
114104
- pkg: sigs.k8s.io/cluster-api-provider-aws/controlplane/eks/api/v1beta1
105+
alias: ekscontrolplanev1beta1
106+
- pkg: sigs.k8s.io/cluster-api-provider-aws/controlplane/eks/api/v1beta2
115107
alias: ekscontrolplanev1
116108
- pkg: "sigs.k8s.io/cluster-api-provider-aws/bootstrap/eks/controllers"
117109
alias: eksbootstrapcontrollers
@@ -125,10 +117,6 @@ linters-settings:
125117
alias: runtimeserializer
126118
- pkg: "k8s.io/apimachinery/pkg/runtime/serializer/yaml"
127119
alias: yamlserializer
128-
- pkg: "sigs.k8s.io/cluster-api/api/v1alpha3"
129-
alias: clusterv1alpha3
130-
- pkg: "sigs.k8s.io/cluster-api/api/v1alpha4"
131-
alias: clusterv1alpha4
132120
- pkg: "sigs.k8s.io/cluster-api/api/v1beta1"
133121
alias: clusterv1
134122
- pkg: "sigs.k8s.io/cluster-api/util/defaulting"
@@ -210,7 +198,7 @@ issues:
210198
- linters:
211199
- godot
212200
text: "Comment should end in a period"
213-
path: "(.*)/(v1alpha3|v1alpha4|v1alpha1)/(.*)types.go"
201+
path: "(.*)/(v1beta1|v1beta2)/(.*)types.go"
214202
- linters:
215203
- errcheck
216204
text: Error return value of .((os\.)?std(out|err)\..*|.*Close|.*Flush|os\.Remove(All)?|.*print(f|ln)?|os\.(Un)?Setenv). is not checked

Makefile

Lines changed: 18 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -177,10 +177,8 @@ endif
177177
.PHONY: defaulters
178178
defaulters: $(DEFAULTER_GEN) ## Generate all Go types
179179
$(DEFAULTER_GEN) \
180-
--input-dirs=./api/v1alpha3 \
181-
--input-dirs=./api/v1alpha4 \
182-
--input-dirs=./api/v1beta1 \
183-
--input-dirs=./$(EXP_DIR)/api/v1beta1 \
180+
--input-dirs=./api/v1beta2 \
181+
--input-dirs=./$(EXP_DIR)/api/v1beta2 \
184182
--input-dirs=./cmd/clusterawsadm/api/bootstrap/v1beta1 \
185183
--input-dirs=./cmd/clusterawsadm/api/bootstrap/v1alpha1 \
186184
--extra-peer-dirs=sigs.k8s.io/cluster-api/api/v1beta1 \
@@ -202,6 +200,7 @@ generate-go: $(MOCKGEN)
202200

203201
.PHONY: generate-go-apis
204202
generate-go-apis: ## Alias for .build/generate-go-apis
203+
rm -rf .build/generate-go-apis
205204
$(MAKE) .build/generate-go-apis
206205

207206
.build: ## Create the .build folder
@@ -214,20 +213,15 @@ generate-go-apis: ## Alias for .build/generate-go-apis
214213
paths=./bootstrap/eks/api/... \
215214
paths=./controlplane/eks/api/... \
216215
paths=./iam/api/... \
217-
crd:crdVersions=v1 \
218-
output:crd:dir=config/crd/bases \
219-
output:webhook:dir=$(WEBHOOK_ROOT) \
220-
object:headerFile=./hack/boilerplate/boilerplate.generatego.txt \
221-
webhook
222-
223-
$(CONTROLLER_GEN) \
224216
paths=./controllers/... \
225217
paths=./$(EXP_DIR)/controllers/... \
226218
paths=./bootstrap/eks/controllers/... \
227219
paths=./controlplane/eks/controllers/... \
228-
output:rbac:dir=$(RBAC_ROOT) \
220+
output:crd:dir=config/crd/bases \
229221
object:headerFile=./hack/boilerplate/boilerplate.generatego.txt \
230-
rbac:roleName=manager-role
222+
crd:crdVersions=v1 \
223+
rbac:roleName=manager-role \
224+
webhook
231225

232226
$(CONTROLLER_GEN) \
233227
paths=./cmd/... \
@@ -236,44 +230,33 @@ generate-go-apis: ## Alias for .build/generate-go-apis
236230
$(MAKE) defaulters
237231

238232
$(CONVERSION_GEN) \
239-
--input-dirs=./api/v1alpha3 \
240-
--input-dirs=./api/v1alpha4 \
233+
--input-dirs=./api/v1beta1 \
241234
--input-dirs=./cmd/clusterawsadm/api/bootstrap/v1alpha1 \
242-
--extra-peer-dirs=sigs.k8s.io/cluster-api/api/v1alpha3 \
243-
--extra-peer-dirs=sigs.k8s.io/cluster-api/api/v1alpha4 \
235+
--extra-peer-dirs=sigs.k8s.io/cluster-api/api/v1beta1 \
244236
--build-tag=ignore_autogenerated_conversions \
245237
--output-file-base=zz_generated.conversion $(GEN_OUTPUT_BASE) \
246238
--go-header-file=./hack/boilerplate/boilerplate.generatego.txt
247239

248240
$(CONVERSION_GEN) \
249-
--input-dirs=./bootstrap/eks/api/v1alpha3 \
250-
--input-dirs=./bootstrap/eks/api/v1alpha4 \
251-
--extra-peer-dirs=sigs.k8s.io/cluster-api-provider-aws/api/v1alpha3 \
252-
--extra-peer-dirs=sigs.k8s.io/cluster-api-provider-aws/api/v1alpha4 \
253-
--extra-peer-dirs=sigs.k8s.io/cluster-api/api/v1alpha3 \
254-
--extra-peer-dirs=sigs.k8s.io/cluster-api/api/v1alpha4 \
241+
--input-dirs=./$(EXP_DIR)/api/v1beta1 \
242+
--extra-peer-dirs=sigs.k8s.io/cluster-api-provider-aws/api/v1beta1 \
243+
--extra-peer-dirs=sigs.k8s.io/cluster-api/api/v1beta1 \
255244
--build-tag=ignore_autogenerated_conversions \
256245
--output-file-base=zz_generated.conversion $(GEN_OUTPUT_BASE) \
257246
--go-header-file=./hack/boilerplate/boilerplate.generatego.txt
258247

259248
$(CONVERSION_GEN) \
260-
--input-dirs=./controlplane/eks/api/v1alpha3 \
261-
--input-dirs=./controlplane/eks/api/v1alpha4 \
262-
--extra-peer-dirs=sigs.k8s.io/cluster-api-provider-aws/api/v1alpha3 \
263-
--extra-peer-dirs=sigs.k8s.io/cluster-api-provider-aws/api/v1alpha4 \
264-
--extra-peer-dirs=sigs.k8s.io/cluster-api/api/v1alpha3 \
265-
--extra-peer-dirs=sigs.k8s.io/cluster-api/api/v1alpha4 \
249+
--input-dirs=./bootstrap/eks/api/v1beta1 \
250+
--extra-peer-dirs=sigs.k8s.io/cluster-api-provider-aws/api/v1beta1 \
251+
--extra-peer-dirs=sigs.k8s.io/cluster-api/api/v1beta1 \
266252
--build-tag=ignore_autogenerated_conversions \
267253
--output-file-base=zz_generated.conversion $(GEN_OUTPUT_BASE) \
268254
--go-header-file=./hack/boilerplate/boilerplate.generatego.txt
269255

270256
$(CONVERSION_GEN) \
271-
--input-dirs=./$(EXP_DIR)/api/v1alpha3 \
272-
--input-dirs=./$(EXP_DIR)/api/v1alpha4 \
273-
--extra-peer-dirs=sigs.k8s.io/cluster-api-provider-aws/api/v1alpha3 \
274-
--extra-peer-dirs=sigs.k8s.io/cluster-api-provider-aws/api/v1alpha4 \
275-
--extra-peer-dirs=sigs.k8s.io/cluster-api/api/v1alpha3 \
276-
--extra-peer-dirs=sigs.k8s.io/cluster-api/api/v1alpha4 \
257+
--input-dirs=./controlplane/eks/api/v1beta1 \
258+
--extra-peer-dirs=sigs.k8s.io/cluster-api-provider-aws/api/v1beta1 \
259+
--extra-peer-dirs=sigs.k8s.io/cluster-api/api/v1beta1 \
277260
--build-tag=ignore_autogenerated_conversions \
278261
--output-file-base=zz_generated.conversion $(GEN_OUTPUT_BASE) \
279262
--go-header-file=./hack/boilerplate/boilerplate.generatego.txt
@@ -694,4 +677,3 @@ clean-temporary: ## Remove all temporary files and folders
694677
rm -rf test/e2e/capi-kubeadm-control-plane-controller-manager
695678
rm -rf test/e2e/logs
696679
rm -rf test/e2e/resources
697-

PROJECT

Lines changed: 20 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -2,84 +2,59 @@ version: "2"
22
domain: cluster.x-k8s.io
33
repo: sigs.k8s.io/cluster-api-provider-aws
44
resources:
5-
# v1alpha3 types
6-
- group: infrastructure
7-
version: v1alpha3
8-
kind: AWSMachine
9-
- group: infrastructure
10-
version: v1alpha3
11-
kind: AWSCluster
12-
- group: infrastructure
13-
version: v1alpha3
14-
kind: AWSMachineTemplate
15-
- group: infrastructure
16-
version: v1alpha3
17-
kind: AWSClusterStaticIdentity
18-
- group: infrastructure
19-
version: v1alpha3
20-
kind: AWSClusterRoleIdentity
21-
- group: infrastructure
22-
version: v1alpha3
23-
kind: AWSClusterControllerIdentity
24-
- group: infrastructure
25-
version: v1alpha3
26-
kind: AWSManagedControlPlanes
27-
- group: infrastructure
28-
version: v1alpha3
29-
kind: AWSManagedCluster
30-
# v1alpha4 types
5+
# v1beta1 types
316
- group: infrastructure
32-
version: v1alpha4
7+
version: v1beta1
338
kind: AWSMachine
349
- group: infrastructure
35-
version: v1alpha4
10+
version: v1beta1
3611
kind: AWSCluster
3712
- group: infrastructure
38-
version: v1alpha4
13+
version: v1beta1
3914
kind: AWSMachineTemplate
4015
- group: infrastructure
41-
version: v1alpha4
16+
version: v1beta1
4217
kind: AWSClusterStaticIdentity
4318
- group: infrastructure
44-
version: v1alpha4
19+
version: v1beta1
4520
kind: AWSClusterRoleIdentity
4621
- group: infrastructure
47-
version: v1alpha4
22+
version: v1beta1
4823
kind: AWSClusterControllerIdentity
4924
- group: infrastructure
50-
version: v1alpha4
25+
version: v1beta1
5126
kind: AWSClusterTemplate
5227
- group: infrastructure
53-
version: v1alpha4
28+
version: v1beta1
5429
kind: AWSManagedControlPlanes
5530
- group: infrastructure
56-
version: v1alpha4
31+
version: v1beta1
5732
kind: AWSManagedCluster
58-
# v1beta1 types
33+
# v1beta2 types
5934
- group: infrastructure
60-
version: v1beta1
35+
version: v1beta2
6136
kind: AWSMachine
6237
- group: infrastructure
63-
version: v1beta1
38+
version: v1beta2
6439
kind: AWSCluster
6540
- group: infrastructure
66-
version: v1beta1
41+
version: v1beta2
6742
kind: AWSMachineTemplate
6843
- group: infrastructure
69-
version: v1beta1
44+
version: v1beta2
7045
kind: AWSClusterStaticIdentity
7146
- group: infrastructure
72-
version: v1beta1
47+
version: v1beta2
7348
kind: AWSClusterRoleIdentity
7449
- group: infrastructure
75-
version: v1beta1
50+
version: v1beta2
7651
kind: AWSClusterControllerIdentity
7752
- group: infrastructure
78-
version: v1beta1
53+
version: v1beta2
7954
kind: AWSClusterTemplate
8055
- group: infrastructure
81-
version: v1beta1
56+
version: v1beta2
8257
kind: AWSManagedControlPlanes
8358
- group: infrastructure
84-
version: v1beta1
59+
version: v1beta2
8560
kind: AWSManagedCluster

0 commit comments

Comments
 (0)