Skip to content

Commit c66768e

Browse files
vinceprik8s-ci-robot
authored andcommitted
Switch apiGroup to cluster.x-k8s.io (#919)
Signed-off-by: Vince Prignano <[email protected]>
1 parent 25376aa commit c66768e

16 files changed

+50
-49
lines changed

PROJECT

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version: "1"
2-
domain: cluster.sigs.k8s.io
2+
domain: cluster.x-k8s.io
33
repo: sigs.k8s.io/cluster-api-provider-aws

cmd/manager/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ func main() {
7171
// Get a config to talk to the api-server.
7272
cfg := config.GetConfigOrDie()
7373
mgr, err := manager.New(cfg, manager.Options{
74-
SyncPeriod: &syncPeriod,
75-
Namespace: *watchNamespace,
74+
SyncPeriod: &syncPeriod,
75+
Namespace: *watchNamespace,
7676
MetricsBindAddress: *metricsAddress,
7777
})
7878
if err != nil {

config/crds/infrastructure.cluster.sigs.k8s.io_awsclusterproviderspecs.yaml renamed to config/crds/infrastructure.cluster.x-k8s.io_awsclusterproviderspecs.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ apiVersion: apiextensions.k8s.io/v1beta1
44
kind: CustomResourceDefinition
55
metadata:
66
creationTimestamp: null
7-
name: awsclusterproviderspecs.infrastructure.cluster.sigs.k8s.io
7+
name: awsclusterproviderspecs.infrastructure.cluster.x-k8s.io
88
spec:
9-
group: infrastructure.cluster.sigs.k8s.io
9+
group: infrastructure.cluster.x-k8s.io
1010
names:
1111
kind: AWSClusterProviderSpec
1212
plural: awsclusterproviderspecs

config/crds/infrastructure.cluster.sigs.k8s.io_awsclusterproviderstatuses.yaml renamed to config/crds/infrastructure.cluster.x-k8s.io_awsclusterproviderstatuses.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ apiVersion: apiextensions.k8s.io/v1beta1
44
kind: CustomResourceDefinition
55
metadata:
66
creationTimestamp: null
7-
name: awsclusterproviderstatuses.infrastructure.cluster.sigs.k8s.io
7+
name: awsclusterproviderstatuses.infrastructure.cluster.x-k8s.io
88
spec:
9-
group: infrastructure.cluster.sigs.k8s.io
9+
group: infrastructure.cluster.x-k8s.io
1010
names:
1111
kind: AWSClusterProviderStatus
1212
plural: awsclusterproviderstatuses

config/crds/infrastructure.cluster.sigs.k8s.io_awsmachines.yaml renamed to config/crds/infrastructure.cluster.x-k8s.io_awsmachines.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ apiVersion: apiextensions.k8s.io/v1beta1
44
kind: CustomResourceDefinition
55
metadata:
66
creationTimestamp: null
7-
name: awsmachines.infrastructure.cluster.sigs.k8s.io
7+
name: awsmachines.infrastructure.cluster.x-k8s.io
88
spec:
9-
group: infrastructure.cluster.sigs.k8s.io
9+
group: infrastructure.cluster.x-k8s.io
1010
names:
1111
kind: AWSMachine
1212
plural: awsmachines

config/crds/infrastructure.cluster.sigs.k8s.io_awsmachinetemplates.yaml renamed to config/crds/infrastructure.cluster.x-k8s.io_awsmachinetemplates.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ apiVersion: apiextensions.k8s.io/v1beta1
44
kind: CustomResourceDefinition
55
metadata:
66
creationTimestamp: null
7-
name: awsmachinetemplates.infrastructure.cluster.sigs.k8s.io
7+
name: awsmachinetemplates.infrastructure.cluster.x-k8s.io
88
spec:
9-
group: infrastructure.cluster.sigs.k8s.io
9+
group: infrastructure.cluster.x-k8s.io
1010
names:
1111
kind: AWSMachineTemplate
1212
plural: awsmachinetemplates

config/crds/kustomization.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@
44
# YAML string, with resources separated by document
55
# markers ("---").
66
resources:
7-
- infrastructure.cluster.sigs.k8s.io_awsmachines.yaml
8-
- infrastructure.cluster.sigs.k8s.io_awsclusterproviderspecs.yaml
9-
- infrastructure.cluster.sigs.k8s.io_awsclusterproviderstatuses.yaml
7+
- infrastructure.cluster.x-k8s.io_awsmachines.yaml
8+
- infrastructure.cluster.x-k8s.io_awsmachinetemplates.yaml
9+
- infrastructure.cluster.x-k8s.io_awsclusterproviderspecs.yaml
10+
- infrastructure.cluster.x-k8s.io_awsclusterproviderstatuses.yaml
1011
- awsprovider_v1alpha1_awsclusterproviderspec.yaml
1112
- awsprovider_v1alpha1_awsclusterproviderstatus.yaml
1213
- awsprovider_v1alpha1_awsmachineproviderspec.yaml

config/rbac/role.yaml

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ metadata:
77
name: manager-role
88
rules:
99
- apiGroups:
10-
- awsprovider.k8s.io
10+
- infrastructure.cluster.x-k8s.io
1111
resources:
12-
- awsclusterproviderconfigs
13-
- awsclusterproviderstatuses
12+
- awsmachines
13+
- awsmachines/status
1414
verbs:
1515
- create
1616
- delete
@@ -20,54 +20,54 @@ rules:
2020
- update
2121
- watch
2222
- apiGroups:
23-
- cluster.sigs.k8s.io
23+
- ""
2424
resources:
25-
- clusters
26-
- clusters/status
27-
- machines
28-
- machines/status
25+
- secrets
2926
verbs:
3027
- create
31-
- delete
3228
- get
3329
- list
34-
- patch
35-
- update
3630
- watch
3731
- apiGroups:
38-
- infrastructure.cluster.sigs.k8s.io
32+
- ""
3933
resources:
40-
- awsmachines
41-
- awsmachines/status
34+
- configmaps
4235
verbs:
4336
- create
4437
- delete
4538
- get
46-
- list
47-
- patch
48-
- update
49-
- watch
5039
- apiGroups:
5140
- ""
5241
resources:
53-
- secrets
42+
- events
5443
verbs:
5544
- create
45+
- delete
5646
- get
5747
- list
48+
- patch
49+
- update
5850
- watch
5951
- apiGroups:
60-
- ""
52+
- awsprovider.k8s.io
6153
resources:
62-
- configmaps
54+
- awsclusterproviderconfigs
55+
- awsclusterproviderstatuses
6356
verbs:
6457
- create
6558
- delete
6659
- get
60+
- list
61+
- patch
62+
- update
63+
- watch
6764
- apiGroups:
68-
- ""
65+
- cluster.x-k8s.io
6966
resources:
70-
- events
67+
- clusters
68+
- clusters/status
69+
- machines
70+
- machines/status
7171
verbs:
7272
- create
7373
- delete

config/samples/infrastructure_v1alpha2_awsmachine.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apiVersion: infrastructure.cluster.sigs.k8s.io/v1alpha2
1+
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha2
22
kind: AWSMachine
33
metadata:
44
labels:

config/samples/infrastructure_v1alpha2_awsmachinetemplate.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apiVersion: infrastructure.cluster.sigs.k8s.io/v1alpha2
1+
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha2
22
kind: AWSMachineTemplate
33
metadata:
44
labels:

config/samples/infrastructure_v1alpha2_machine.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apiVersion: infrastructure.cluster.sigs.k8s.io/v1alpha2
1+
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha2
22
kind: Machine
33
metadata:
44
labels:

pkg/apis/awsprovider/v1alpha1/types.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ import (
2626
)
2727

2828
const (
29-
AnnotationClusterInfrastructureReady = "aws.cluster.sigs.k8s.io/infrastructure-ready"
30-
AnnotationControlPlaneReady = "aws.cluster.sigs.k8s.io/control-plane-ready"
29+
AnnotationClusterInfrastructureReady = "aws.cluster.x-k8s.io/infrastructure-ready"
30+
AnnotationControlPlaneReady = "aws.cluster.x-k8s.io/control-plane-ready"
3131
ValueReady = "true"
3232
)
3333

pkg/apis/infrastructure/v1alpha2/doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ limitations under the License.
1919
// +k8s:deepcopy-gen=package,register
2020
// +k8s:conversion-gen=sigs.k8s.io/cluster-api-provider-aws/pkg/apis/infrastructure
2121
// +k8s:defaulter-gen=TypeMeta
22-
// +groupName=infrastructure.cluster.sigs.k8s.io
22+
// +groupName=infrastructure.cluster.x-k8s.io
2323
package v1alpha2

pkg/apis/infrastructure/v1alpha2/register.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ limitations under the License.
1919
// +k8s:deepcopy-gen=package,register
2020
// +k8s:conversion-gen=sigs.k8s.io/cluster-api-provider-aws/pkg/apis/infrastructure
2121
// +k8s:defaulter-gen=TypeMeta
22-
// +groupName=infrastructure.cluster.sigs.k8s.io
22+
// +groupName=infrastructure.cluster.x-k8s.io
2323
package v1alpha2
2424

2525
import (
@@ -33,7 +33,7 @@ import (
3333

3434
var (
3535
// SchemeGroupVersion is group version used to register these objects
36-
SchemeGroupVersion = schema.GroupVersion{Group: "infrastructure.cluster.sigs.k8s.io", Version: "v1alpha2"}
36+
SchemeGroupVersion = schema.GroupVersion{Group: "infrastructure.cluster.x-k8s.io", Version: "v1alpha2"}
3737

3838
// SchemeBuilder is used to add go types to the GroupVersionKind scheme
3939
SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion}

pkg/apis/infrastructure/v1alpha2/types.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ import (
2323
)
2424

2525
const (
26-
AnnotationClusterInfrastructureReady = "aws.infrastructure.cluster.sigs.k8s.io/infrastructure-ready"
27-
AnnotationControlPlaneReady = "aws.infrastructure.cluster.sigs.k8s.io/control-plane-ready"
26+
AnnotationClusterInfrastructureReady = "aws.infrastructure.cluster.x-k8s.io/infrastructure-ready"
27+
AnnotationControlPlaneReady = "aws.infrastructure.cluster.x-k8s.io/control-plane-ready"
2828
ValueReady = "true"
2929
)
3030

pkg/controller/controller.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ import (
2424
// +kubebuilder:rbac:groups=core,resources=configmaps,verbs=create;get;delete
2525
// +kubebuilder:rbac:groups=core,resources=events,verbs=get;list;watch;create;update;patch;delete
2626
// +kubebuilder:rbac:groups=awsprovider.k8s.io,resources=awsclusterproviderconfigs;awsclusterproviderstatuses,verbs=get;list;watch;create;update;patch;delete
27-
// +kubebuilder:rbac:groups=cluster.sigs.k8s.io,resources=machines;machines/status;clusters;clusters/status,verbs=get;list;watch;create;update;patch;delete
28-
// +kubebuilder:rbac:groups=infrastructure.cluster.sigs.k8s.io,resources=awsmachines;awsmachines/status,verbs=get;list;watch;create;update;patch;delete
27+
// +kubebuilder:rbac:groups=cluster.x-k8s.io,resources=machines;machines/status;clusters;clusters/status,verbs=get;list;watch;create;update;patch;delete
28+
// +kubebuilder:rbac:groups=infrastructure.cluster.x-k8s.io,resources=awsmachines;awsmachines/status,verbs=get;list;watch;create;update;patch;delete
2929

3030
// AddToManagerFuncs is a list of functions to add all Controllers to the Manager
3131
var AddToManagerFuncs []func(manager.Manager) error

0 commit comments

Comments
 (0)