-
Notifications
You must be signed in to change notification settings - Fork 19
chore: 1 - remove v1alpha1 CRP and MC validation #302
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -49,7 +49,6 @@ import ( | |
|
|
||
| clusterv1beta1 "github.com/kubefleet-dev/kubefleet/apis/cluster/v1beta1" | ||
| placementv1beta1 "github.com/kubefleet-dev/kubefleet/apis/placement/v1beta1" | ||
| fleetv1alpha1 "github.com/kubefleet-dev/kubefleet/apis/v1alpha1" | ||
| "github.com/kubefleet-dev/kubefleet/pkg/utils/condition" | ||
| "github.com/kubefleet-dev/kubefleet/pkg/utils/controller" | ||
| "github.com/kubefleet-dev/kubefleet/pkg/utils/informer" | ||
|
|
@@ -113,11 +112,6 @@ const ( | |
| ) | ||
|
|
||
| var ( | ||
| FleetRule = rbacv1.PolicyRule{ | ||
| Verbs: []string{"*"}, | ||
| APIGroups: []string{fleetv1alpha1.GroupVersion.Group}, | ||
| Resources: []string{"*"}, | ||
| } | ||
| FleetClusterRule = rbacv1.PolicyRule{ | ||
| Verbs: []string{"*"}, | ||
| APIGroups: []string{clusterv1beta1.GroupVersion.Group}, | ||
|
|
@@ -147,18 +141,6 @@ var ( | |
|
|
||
| // Those are the GVR/GVKs in use by Fleet source code. | ||
| var ( | ||
| ClusterResourcePlacementV1Alpha1GVK = schema.GroupVersionKind{ | ||
| Group: fleetv1alpha1.GroupVersion.Group, | ||
| Version: fleetv1alpha1.GroupVersion.Version, | ||
| Kind: "ClusterResourcePlacement", | ||
| } | ||
|
|
||
| ClusterResourcePlacementV1Alpha1GVR = schema.GroupVersionResource{ | ||
| Group: fleetv1alpha1.GroupVersion.Group, | ||
| Version: fleetv1alpha1.GroupVersion.Version, | ||
| Resource: fleetv1alpha1.ClusterResourcePlacementResource, | ||
| } | ||
|
|
||
| ClusterResourcePlacementGVR = schema.GroupVersionResource{ | ||
| Group: placementv1beta1.GroupVersion.Group, | ||
| Version: placementv1beta1.GroupVersion.Version, | ||
|
|
@@ -249,12 +231,6 @@ var ( | |
| Kind: "Event", | ||
| } | ||
|
|
||
| IMCV1Alpha1MetaGVK = metav1.GroupVersionKind{ | ||
| Group: fleetv1alpha1.GroupVersion.Group, | ||
| Version: fleetv1alpha1.GroupVersion.Version, | ||
| Kind: "InternalMemberCluster", | ||
| } | ||
|
|
||
| IngressClassGVR = schema.GroupVersionResource{ | ||
| Group: networkingv1.SchemeGroupVersion.Group, | ||
| Version: networkingv1.SchemeGroupVersion.Version, | ||
|
|
@@ -285,24 +261,6 @@ var ( | |
| Resource: "limitranges", | ||
| } | ||
|
|
||
| MCV1Alpha1MetaGVK = metav1.GroupVersionKind{ | ||
| Group: fleetv1alpha1.GroupVersion.Group, | ||
| Version: fleetv1alpha1.GroupVersion.Version, | ||
| Kind: "MemberCluster", | ||
| } | ||
|
|
||
| MCV1Alpha1GVK = schema.GroupVersionKind{ | ||
| Group: fleetv1alpha1.GroupVersion.Group, | ||
| Version: fleetv1alpha1.GroupVersion.Version, | ||
| Kind: fleetv1alpha1.MemberClusterKind, | ||
| } | ||
|
|
||
| MCV1Alpha1GVR = schema.GroupVersionResource{ | ||
| Group: fleetv1alpha1.GroupVersion.Group, | ||
| Version: fleetv1alpha1.GroupVersion.Version, | ||
| Resource: fleetv1alpha1.MemberClusterResource, | ||
| } | ||
|
|
||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What about workV1alpha1 resources below?
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. added a TODO comment. In fact I already have my next PR stacking on top of this one which is dedicated to removing v1alpha1work |
||
| MCMetaGVK = metav1.GroupVersionKind{ | ||
| Group: clusterv1beta1.GroupVersion.Group, | ||
| Version: clusterv1beta1.GroupVersion.Version, | ||
|
|
@@ -387,6 +345,7 @@ var ( | |
| Resource: "storageclasses", | ||
| } | ||
|
|
||
| // TODO (weiweng): remove workv1alpha1 in next PR | ||
| WorkV1Alpha1MetaGVK = metav1.GroupVersionKind{ | ||
| Group: workv1alpha1.GroupVersion.Group, | ||
| Version: workv1alpha1.GroupVersion.Version, | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume this can be removed too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you want to do it in another PR, pls add a TODO comment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added a TODO comment. In fact I already have my next PR stacking on top of this one which is dedicated to removing v1alpha1work
#303