Skip to content

Commit

Permalink
Remove duplicates in CRD group
Browse files Browse the repository at this point in the history
Signed-off-by: Andrei Pavlov <[email protected]>
  • Loading branch information
Kshatrix committed May 29, 2024
1 parent 221ad98 commit 67b54ef
Show file tree
Hide file tree
Showing 10 changed files with 34 additions and 34 deletions.
4 changes: 2 additions & 2 deletions api/v1alpha1/groupversion_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ limitations under the License.

// Package v1alpha1 contains API Schema definitions for the hmc.mirantis.com v1alpha1 API group
// +kubebuilder:object:generate=true
// +groupName=hmc.mirantis.com.hmc.mirantis.com
// +groupName=hmc.mirantis.com
package v1alpha1

import (
Expand All @@ -26,7 +26,7 @@ import (

var (
// GroupVersion is group version used to register these objects
GroupVersion = schema.GroupVersion{Group: "hmc.mirantis.com.hmc.mirantis.com", Version: "v1alpha1"}
GroupVersion = schema.GroupVersion{Group: "hmc.mirantis.com", Version: "v1alpha1"}

// SchemeBuilder is used to add go types to the GroupVersionKind scheme
SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.14.0
name: awsproviders.hmc.mirantis.com.hmc.mirantis.com
name: awsproviders.hmc.mirantis.com
spec:
group: hmc.mirantis.com.hmc.mirantis.com
group: hmc.mirantis.com
names:
kind: AWSProvider
listKind: AWSProviderList
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.14.0
name: deployments.hmc.mirantis.com.hmc.mirantis.com
name: deployments.hmc.mirantis.com
spec:
group: hmc.mirantis.com.hmc.mirantis.com
group: hmc.mirantis.com
names:
kind: Deployment
listKind: DeploymentList
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.14.0
name: managements.hmc.mirantis.com.hmc.mirantis.com
name: managements.hmc.mirantis.com
spec:
group: hmc.mirantis.com.hmc.mirantis.com
group: hmc.mirantis.com
names:
kind: Management
listKind: ManagementList
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.14.0
name: templates.hmc.mirantis.com.hmc.mirantis.com
name: templates.hmc.mirantis.com
spec:
group: hmc.mirantis.com.hmc.mirantis.com
group: hmc.mirantis.com
names:
kind: Template
listKind: TemplateList
Expand Down
24 changes: 12 additions & 12 deletions config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
name: manager-role
rules:
- apiGroups:
- hmc.mirantis.com.hmc.mirantis.com
- hmc.mirantis.com
resources:
- awsprovider
verbs:
Expand All @@ -17,21 +17,21 @@ rules:
- update
- watch
- apiGroups:
- hmc.mirantis.com.hmc.mirantis.com
- hmc.mirantis.com
resources:
- awsprovider/finalizers
verbs:
- update
- apiGroups:
- hmc.mirantis.com.hmc.mirantis.com
- hmc.mirantis.com
resources:
- awsprovider/status
verbs:
- get
- patch
- update
- apiGroups:
- hmc.mirantis.com.hmc.mirantis.com
- hmc.mirantis.com
resources:
- deployments
verbs:
Expand All @@ -43,21 +43,21 @@ rules:
- update
- watch
- apiGroups:
- hmc.mirantis.com.hmc.mirantis.com
- hmc.mirantis.com
resources:
- deployments/finalizers
verbs:
- update
- apiGroups:
- hmc.mirantis.com.hmc.mirantis.com
- hmc.mirantis.com
resources:
- deployments/status
verbs:
- get
- patch
- update
- apiGroups:
- hmc.mirantis.com.hmc.mirantis.com
- hmc.mirantis.com
resources:
- managements
verbs:
Expand All @@ -69,21 +69,21 @@ rules:
- update
- watch
- apiGroups:
- hmc.mirantis.com.hmc.mirantis.com
- hmc.mirantis.com
resources:
- managements/finalizers
verbs:
- update
- apiGroups:
- hmc.mirantis.com.hmc.mirantis.com
- hmc.mirantis.com
resources:
- managements/status
verbs:
- get
- patch
- update
- apiGroups:
- hmc.mirantis.com.hmc.mirantis.com
- hmc.mirantis.com
resources:
- templates
verbs:
Expand All @@ -95,13 +95,13 @@ rules:
- update
- watch
- apiGroups:
- hmc.mirantis.com.hmc.mirantis.com
- hmc.mirantis.com
resources:
- templates/finalizers
verbs:
- update
- apiGroups:
- hmc.mirantis.com.hmc.mirantis.com
- hmc.mirantis.com
resources:
- templates/status
verbs:
Expand Down
6 changes: 3 additions & 3 deletions internal/controller/hmcdeployment_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ type DeploymentReconciler struct {
Scheme *runtime.Scheme
}

//+kubebuilder:rbac:groups=hmc.mirantis.com.hmc.mirantis.com,resources=deployments,verbs=get;list;watch;create;update;patch;delete
//+kubebuilder:rbac:groups=hmc.mirantis.com.hmc.mirantis.com,resources=deployments/status,verbs=get;update;patch
//+kubebuilder:rbac:groups=hmc.mirantis.com.hmc.mirantis.com,resources=deployments/finalizers,verbs=update
//+kubebuilder:rbac:groups=hmc.mirantis.com,resources=deployments,verbs=get;list;watch;create;update;patch;delete
//+kubebuilder:rbac:groups=hmc.mirantis.com,resources=deployments/status,verbs=get;update;patch
//+kubebuilder:rbac:groups=hmc.mirantis.com,resources=deployments/finalizers,verbs=update

// Reconcile is part of the main kubernetes reconciliation loop which aims to
// move the current state of the cluster closer to the desired state.
Expand Down
6 changes: 3 additions & 3 deletions internal/controller/hmcmanagement_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ type ManagementReconciler struct {
Scheme *runtime.Scheme
}

//+kubebuilder:rbac:groups=hmc.mirantis.com.hmc.mirantis.com,resources=managements,verbs=get;list;watch;create;update;patch;delete
//+kubebuilder:rbac:groups=hmc.mirantis.com.hmc.mirantis.com,resources=managements/status,verbs=get;update;patch
//+kubebuilder:rbac:groups=hmc.mirantis.com.hmc.mirantis.com,resources=managements/finalizers,verbs=update
//+kubebuilder:rbac:groups=hmc.mirantis.com,resources=managements,verbs=get;list;watch;create;update;patch;delete
//+kubebuilder:rbac:groups=hmc.mirantis.com,resources=managements/status,verbs=get;update;patch
//+kubebuilder:rbac:groups=hmc.mirantis.com,resources=managements/finalizers,verbs=update

// Reconcile is part of the main kubernetes reconciliation loop which aims to
// move the current state of the cluster closer to the desired state.
Expand Down
6 changes: 3 additions & 3 deletions internal/controller/hmcprovideraws_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ type AWSProviderReconciler struct {
Scheme *runtime.Scheme
}

//+kubebuilder:rbac:groups=hmc.mirantis.com.hmc.mirantis.com,resources=awsprovider,verbs=get;list;watch;create;update;patch;delete
//+kubebuilder:rbac:groups=hmc.mirantis.com.hmc.mirantis.com,resources=awsprovider/status,verbs=get;update;patch
//+kubebuilder:rbac:groups=hmc.mirantis.com.hmc.mirantis.com,resources=awsprovider/finalizers,verbs=update
//+kubebuilder:rbac:groups=hmc.mirantis.com,resources=awsprovider,verbs=get;list;watch;create;update;patch;delete
//+kubebuilder:rbac:groups=hmc.mirantis.com,resources=awsprovider/status,verbs=get;update;patch
//+kubebuilder:rbac:groups=hmc.mirantis.com,resources=awsprovider/finalizers,verbs=update

// Reconcile is part of the main kubernetes reconciliation loop which aims to
// move the current state of the cluster closer to the desired state.
Expand Down
6 changes: 3 additions & 3 deletions internal/controller/hmctemplate_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ type TemplateReconciler struct {
Scheme *runtime.Scheme
}

//+kubebuilder:rbac:groups=hmc.mirantis.com.hmc.mirantis.com,resources=templates,verbs=get;list;watch;create;update;patch;delete
//+kubebuilder:rbac:groups=hmc.mirantis.com.hmc.mirantis.com,resources=templates/status,verbs=get;update;patch
//+kubebuilder:rbac:groups=hmc.mirantis.com.hmc.mirantis.com,resources=templates/finalizers,verbs=update
//+kubebuilder:rbac:groups=hmc.mirantis.com,resources=templates,verbs=get;list;watch;create;update;patch;delete
//+kubebuilder:rbac:groups=hmc.mirantis.com,resources=templates/status,verbs=get;update;patch
//+kubebuilder:rbac:groups=hmc.mirantis.com,resources=templates/finalizers,verbs=update

// Reconcile is part of the main kubernetes reconciliation loop which aims to
// move the current state of the cluster closer to the desired state.
Expand Down

0 comments on commit 67b54ef

Please sign in to comment.