Skip to content

Commit fdb91f9

Browse files
authored
Merge pull request #4719 from nojnhuh/v2-boilerplate
Add ASOAPI boilerplate
2 parents e3a05f8 + 9be0ff5 commit fdb91f9

File tree

60 files changed

+2582
-2
lines changed

Some content is hidden

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

60 files changed

+2582
-2
lines changed
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
---
2+
apiVersion: apiextensions.k8s.io/v1
3+
kind: CustomResourceDefinition
4+
metadata:
5+
annotations:
6+
controller-gen.kubebuilder.io/version: v0.14.0
7+
name: azureasomanagedclusters.infrastructure.cluster.x-k8s.io
8+
spec:
9+
group: infrastructure.cluster.x-k8s.io
10+
names:
11+
kind: AzureASOManagedCluster
12+
listKind: AzureASOManagedClusterList
13+
plural: azureasomanagedclusters
14+
singular: azureasomanagedcluster
15+
scope: Namespaced
16+
versions:
17+
- name: v1alpha1
18+
schema:
19+
openAPIV3Schema:
20+
description: AzureASOManagedCluster is the Schema for the azureasomanagedclusters
21+
API.
22+
properties:
23+
apiVersion:
24+
description: |-
25+
APIVersion defines the versioned schema of this representation of an object.
26+
Servers should convert recognized schemas to the latest internal value, and
27+
may reject unrecognized values.
28+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
29+
type: string
30+
kind:
31+
description: |-
32+
Kind is a string value representing the REST resource this object represents.
33+
Servers may infer this from the endpoint the client submits requests to.
34+
Cannot be updated.
35+
In CamelCase.
36+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
37+
type: string
38+
metadata:
39+
type: object
40+
spec:
41+
description: AzureASOManagedClusterSpec defines the desired state of AzureASOManagedCluster.
42+
type: object
43+
status:
44+
description: AzureASOManagedClusterStatus defines the observed state of
45+
AzureASOManagedCluster.
46+
type: object
47+
type: object
48+
served: true
49+
storage: true
50+
subresources:
51+
status: {}
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
---
2+
apiVersion: apiextensions.k8s.io/v1
3+
kind: CustomResourceDefinition
4+
metadata:
5+
annotations:
6+
controller-gen.kubebuilder.io/version: v0.14.0
7+
name: azureasomanagedclustertemplates.infrastructure.cluster.x-k8s.io
8+
spec:
9+
group: infrastructure.cluster.x-k8s.io
10+
names:
11+
kind: AzureASOManagedClusterTemplate
12+
listKind: AzureASOManagedClusterTemplateList
13+
plural: azureasomanagedclustertemplates
14+
singular: azureasomanagedclustertemplate
15+
scope: Namespaced
16+
versions:
17+
- name: v1alpha1
18+
schema:
19+
openAPIV3Schema:
20+
description: AzureASOManagedClusterTemplate is the Schema for the azureasomanagedclustertemplates
21+
API.
22+
properties:
23+
apiVersion:
24+
description: |-
25+
APIVersion defines the versioned schema of this representation of an object.
26+
Servers should convert recognized schemas to the latest internal value, and
27+
may reject unrecognized values.
28+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
29+
type: string
30+
kind:
31+
description: |-
32+
Kind is a string value representing the REST resource this object represents.
33+
Servers may infer this from the endpoint the client submits requests to.
34+
Cannot be updated.
35+
In CamelCase.
36+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
37+
type: string
38+
metadata:
39+
type: object
40+
spec:
41+
description: AzureASOManagedClusterTemplateSpec defines the desired state
42+
of AzureASOManagedClusterTemplate.
43+
properties:
44+
template:
45+
description: AzureASOManagedClusterTemplateResource defines the templated
46+
resource.
47+
properties:
48+
spec:
49+
description: AzureASOManagedClusterTemplateResourceSpec defines
50+
the desired state of the templated resource.
51+
type: object
52+
type: object
53+
required:
54+
- template
55+
type: object
56+
type: object
57+
served: true
58+
storage: true
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
---
2+
apiVersion: apiextensions.k8s.io/v1
3+
kind: CustomResourceDefinition
4+
metadata:
5+
annotations:
6+
controller-gen.kubebuilder.io/version: v0.14.0
7+
name: azureasomanagedcontrolplanes.infrastructure.cluster.x-k8s.io
8+
spec:
9+
group: infrastructure.cluster.x-k8s.io
10+
names:
11+
kind: AzureASOManagedControlPlane
12+
listKind: AzureASOManagedControlPlaneList
13+
plural: azureasomanagedcontrolplanes
14+
singular: azureasomanagedcontrolplane
15+
scope: Namespaced
16+
versions:
17+
- name: v1alpha1
18+
schema:
19+
openAPIV3Schema:
20+
description: AzureASOManagedControlPlane is the Schema for the azureasomanagedcontrolplanes
21+
API.
22+
properties:
23+
apiVersion:
24+
description: |-
25+
APIVersion defines the versioned schema of this representation of an object.
26+
Servers should convert recognized schemas to the latest internal value, and
27+
may reject unrecognized values.
28+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
29+
type: string
30+
kind:
31+
description: |-
32+
Kind is a string value representing the REST resource this object represents.
33+
Servers may infer this from the endpoint the client submits requests to.
34+
Cannot be updated.
35+
In CamelCase.
36+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
37+
type: string
38+
metadata:
39+
type: object
40+
spec:
41+
description: AzureASOManagedControlPlaneSpec defines the desired state
42+
of AzureASOManagedControlPlane.
43+
type: object
44+
status:
45+
description: AzureASOManagedControlPlaneStatus defines the observed state
46+
of AzureASOManagedControlPlane.
47+
type: object
48+
type: object
49+
served: true
50+
storage: true
51+
subresources:
52+
status: {}
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
---
2+
apiVersion: apiextensions.k8s.io/v1
3+
kind: CustomResourceDefinition
4+
metadata:
5+
annotations:
6+
controller-gen.kubebuilder.io/version: v0.14.0
7+
name: azureasomanagedcontrolplanetemplates.infrastructure.cluster.x-k8s.io
8+
spec:
9+
group: infrastructure.cluster.x-k8s.io
10+
names:
11+
kind: AzureASOManagedControlPlaneTemplate
12+
listKind: AzureASOManagedControlPlaneTemplateList
13+
plural: azureasomanagedcontrolplanetemplates
14+
singular: azureasomanagedcontrolplanetemplate
15+
scope: Namespaced
16+
versions:
17+
- name: v1alpha1
18+
schema:
19+
openAPIV3Schema:
20+
description: AzureASOManagedControlPlaneTemplate is the Schema for the azureasomanagedcontrolplanetemplates
21+
API.
22+
properties:
23+
apiVersion:
24+
description: |-
25+
APIVersion defines the versioned schema of this representation of an object.
26+
Servers should convert recognized schemas to the latest internal value, and
27+
may reject unrecognized values.
28+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
29+
type: string
30+
kind:
31+
description: |-
32+
Kind is a string value representing the REST resource this object represents.
33+
Servers may infer this from the endpoint the client submits requests to.
34+
Cannot be updated.
35+
In CamelCase.
36+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
37+
type: string
38+
metadata:
39+
type: object
40+
spec:
41+
description: AzureASOManagedControlPlaneTemplateSpec defines the desired
42+
state of AzureASOManagedControlPlane.
43+
properties:
44+
template:
45+
description: AzureASOManagedControlPlaneResource defines the templated
46+
resource.
47+
properties:
48+
spec:
49+
description: AzureASOManagedControlPlaneTemplateResourceSpec defines
50+
the desired state of the templated resource.
51+
type: object
52+
type: object
53+
required:
54+
- template
55+
type: object
56+
type: object
57+
served: true
58+
storage: true
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
---
2+
apiVersion: apiextensions.k8s.io/v1
3+
kind: CustomResourceDefinition
4+
metadata:
5+
annotations:
6+
controller-gen.kubebuilder.io/version: v0.14.0
7+
name: azureasomanagedmachinepools.infrastructure.cluster.x-k8s.io
8+
spec:
9+
group: infrastructure.cluster.x-k8s.io
10+
names:
11+
kind: AzureASOManagedMachinePool
12+
listKind: AzureASOManagedMachinePoolList
13+
plural: azureasomanagedmachinepools
14+
singular: azureasomanagedmachinepool
15+
scope: Namespaced
16+
versions:
17+
- name: v1alpha1
18+
schema:
19+
openAPIV3Schema:
20+
description: AzureASOManagedMachinePool is the Schema for the azureasomanagedmachinepools
21+
API.
22+
properties:
23+
apiVersion:
24+
description: |-
25+
APIVersion defines the versioned schema of this representation of an object.
26+
Servers should convert recognized schemas to the latest internal value, and
27+
may reject unrecognized values.
28+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
29+
type: string
30+
kind:
31+
description: |-
32+
Kind is a string value representing the REST resource this object represents.
33+
Servers may infer this from the endpoint the client submits requests to.
34+
Cannot be updated.
35+
In CamelCase.
36+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
37+
type: string
38+
metadata:
39+
type: object
40+
spec:
41+
description: AzureASOManagedMachinePoolSpec defines the desired state
42+
of AzureASOManagedMachinePool.
43+
type: object
44+
status:
45+
description: AzureASOManagedMachinePoolStatus defines the observed state
46+
of AzureASOManagedMachinePool.
47+
type: object
48+
type: object
49+
served: true
50+
storage: true
51+
subresources:
52+
status: {}
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
---
2+
apiVersion: apiextensions.k8s.io/v1
3+
kind: CustomResourceDefinition
4+
metadata:
5+
annotations:
6+
controller-gen.kubebuilder.io/version: v0.14.0
7+
name: azureasomanagedmachinepooltemplates.infrastructure.cluster.x-k8s.io
8+
spec:
9+
group: infrastructure.cluster.x-k8s.io
10+
names:
11+
kind: AzureASOManagedMachinePoolTemplate
12+
listKind: AzureASOManagedMachinePoolTemplateList
13+
plural: azureasomanagedmachinepooltemplates
14+
singular: azureasomanagedmachinepooltemplate
15+
scope: Namespaced
16+
versions:
17+
- name: v1alpha1
18+
schema:
19+
openAPIV3Schema:
20+
description: AzureASOManagedMachinePoolTemplate is the Schema for the azureasomanagedmachinepooltemplates
21+
API.
22+
properties:
23+
apiVersion:
24+
description: |-
25+
APIVersion defines the versioned schema of this representation of an object.
26+
Servers should convert recognized schemas to the latest internal value, and
27+
may reject unrecognized values.
28+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
29+
type: string
30+
kind:
31+
description: |-
32+
Kind is a string value representing the REST resource this object represents.
33+
Servers may infer this from the endpoint the client submits requests to.
34+
Cannot be updated.
35+
In CamelCase.
36+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
37+
type: string
38+
metadata:
39+
type: object
40+
spec:
41+
description: AzureASOManagedMachinePoolTemplateSpec defines the desired
42+
state of AzureASOManagedMachinePoolTemplate.
43+
properties:
44+
template:
45+
description: AzureASOManagedControlPlaneResource defines the templated
46+
resource.
47+
properties:
48+
spec:
49+
description: AzureASOManagedControlPlaneTemplateResourceSpec defines
50+
the desired state of the templated resource.
51+
type: object
52+
type: object
53+
required:
54+
- template
55+
type: object
56+
type: object
57+
served: true
58+
storage: true

config/crd/kustomization.yaml

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
# This kustomization.yaml is not intended to be run by itself,
22
# since it depends on service name and namespace that are out of this kustomize package.
33
# It should be run by config/
4-
commonLabels:
5-
cluster.x-k8s.io/v1beta1: v1beta1
64

75
resources:
86
- bases/infrastructure.cluster.x-k8s.io_azuremachines.yaml
@@ -18,6 +16,12 @@ resources:
1816
- bases/infrastructure.cluster.x-k8s.io_azuremanagedclustertemplates.yaml
1917
- bases/infrastructure.cluster.x-k8s.io_azuremanagedcontrolplanetemplates.yaml
2018
- bases/infrastructure.cluster.x-k8s.io_azuremanagedmachinepooltemplates.yaml
19+
- bases/infrastructure.cluster.x-k8s.io_azureasomanagedclusters.yaml
20+
- bases/infrastructure.cluster.x-k8s.io_azureasomanagedclustertemplates.yaml
21+
- bases/infrastructure.cluster.x-k8s.io_azureasomanagedcontrolplanes.yaml
22+
- bases/infrastructure.cluster.x-k8s.io_azureasomanagedcontrolplanetemplates.yaml
23+
- bases/infrastructure.cluster.x-k8s.io_azureasomanagedmachinepools.yaml
24+
- bases/infrastructure.cluster.x-k8s.io_azureasomanagedmachinepooltemplates.yaml
2125
# +kubebuilder:scaffold:crdkustomizeresource
2226

2327

@@ -50,6 +54,26 @@ patchesStrategicMerge:
5054
# - patches/cainjection_in_azuremanagedcontrolplanes.yaml
5155
# +kubebuilder:scaffold:crdkustomizecainjectionpatch
5256

57+
- patches/capicontract_in_azuremachines.yaml
58+
- patches/capicontract_in_azureclusters.yaml
59+
- patches/capicontract_in_azureclustertemplates.yaml
60+
- patches/capicontract_in_azuremachinetemplates.yaml
61+
- patches/capicontract_in_azureclusteridentities.yaml
62+
- patches/capicontract_in_azuremachinepools.yaml
63+
- patches/capicontract_in_azuremanagedmachinepools.yaml
64+
- patches/capicontract_in_azuremanagedclusters.yaml
65+
- patches/capicontract_in_azuremanagedcontrolplanes.yaml
66+
- patches/capicontract_in_azuremachinepoolmachines.yaml
67+
- patches/capicontract_in_azuremanagedclustertemplates.yaml
68+
- patches/capicontract_in_azuremanagedcontrolplanetemplates.yaml
69+
- patches/capicontract_in_azuremanagedmachinepooltemplates.yaml
70+
- patches/capicontract_in_azureasomanagedclusters.yaml
71+
- patches/capicontract_in_azureasomanagedclustertemplates.yaml
72+
- patches/capicontract_in_azureasomanagedcontrolplanes.yaml
73+
- patches/capicontract_in_azureasomanagedcontrolplanetemplates.yaml
74+
- patches/capicontract_in_azureasomanagedmachinepools.yaml
75+
- patches/capicontract_in_azureasomanagedmachinepooltemplates.yaml
76+
5377
# the following config is for teaching kustomize how to do kustomization for CRDs.
5478
configurations:
5579
- kustomizeconfig.yaml
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
apiVersion: apiextensions.k8s.io/v1
2+
kind: CustomResourceDefinition
3+
metadata:
4+
name: azureasomanagedclusters.infrastructure.cluster.x-k8s.io
5+
labels:
6+
cluster.x-k8s.io/v1beta1: v1alpha1
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
apiVersion: apiextensions.k8s.io/v1
2+
kind: CustomResourceDefinition
3+
metadata:
4+
name: azureasomanagedclustertemplates.infrastructure.cluster.x-k8s.io
5+
labels:
6+
cluster.x-k8s.io/v1beta1: v1alpha1

0 commit comments

Comments
 (0)