-
Notifications
You must be signed in to change notification settings - Fork 380
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
Update ClusterClaim to v1alpha2 #3755
Conversation
Codecov Report
@@ Coverage Diff @@
## main #3755 +/- ##
==========================================
+ Coverage 49.03% 55.78% +6.74%
==========================================
Files 261 417 +156
Lines 39245 60810 +21565
==========================================
+ Hits 19245 33921 +14676
- Misses 18128 24112 +5984
- Partials 1872 2777 +905
Flags with carried forward coverage won't be shown. Click here to find out more.
|
edca648
to
fbe85da
Compare
f9ef0ed
to
e6295af
Compare
@luolanzone this can be reviewed, thanks! |
e6295af
to
10abcb4
Compare
multicluster/apis/multicluster/v1alpha1/clusterclaim_conversion.go
Outdated
Show resolved
Hide resolved
multicluster/apis/multicluster/v1alpha2/clusterclaim_webhook.go
Outdated
Show resolved
Hide resolved
multicluster/config/crd/bases/multicluster.crd.antrea.io_clusterclaims.yaml
Outdated
Show resolved
Hide resolved
multicluster/config/samples/multicluster_v1alpha1_clusterclaim.yaml
Outdated
Show resolved
Hide resolved
10abcb4
to
aa8de7b
Compare
@bangqipropel Please don't forget to add your sign-off info, and there are new conflicts, please resolve them. thanks. |
8916036
to
953f36c
Compare
multicluster/config/crd/patches/cainjection_in_clusterclaims.yaml
Outdated
Show resolved
Hide resolved
/test-multicluster-dataplane-e2e |
c414b2b
to
d2ad946
Compare
@luolanzone this can be reviewed again, thanks! |
@@ -29,13 +29,12 @@ const ( | |||
|
|||
// +genclient | |||
//+kubebuilder:object:root=true | |||
// +kubebuilder:storageversion |
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.
Do we need this if v1alpha1 is removed?
func (r *ClusterClaimReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) { | ||
_ = log.FromContext(ctx) | ||
|
||
// your logic here | ||
// TODO(user): your logic here |
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.
Could you remove this file as well? it has no reconcile logic and is not used.
multicluster/apis/multicluster/v1alpha2/zz_generated.deepcopy.go
Outdated
Show resolved
Hide resolved
Please update your PR summary and commit messages.
|
/test-multicluster-dataplane-e2e |
@jianjuns can this be reviewed? thanks! |
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.
LGTM
@tnqn can this be reviewed? thanks! |
@bangqipropel Could you please resolve conflicts? and update the PR summary to link it with issue #3328. Thanks. |
62be426
to
3a74e03
Compare
/test-multicluster-dataplane-e2e |
@luolanzone it is good now, thanks! |
@tnqn can this be reviewed? thanks! |
multicluster/pkg/client/informers/externalversions/multicluster/v1alpha1/interface.go
Show resolved
Hide resolved
multicluster/pkg/client/listers/multicluster/v1alpha1/expansion_generated.go
Show resolved
Hide resolved
will take a look tomorrow. |
117a518
to
108bf2f
Compare
/test-multicluster-dataplane-e2e |
/test-multicluster-e2e |
Hi @bangqipropel , forget to tell you that the comment trigger of MC e2e is changed to |
@bangqipropel , e2e failed, could you check here http://10.176.27.169:8080/job/antrea-multicluster-e2e-for-pull-request/30/console and fix the error? |
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.
LGTM overall
|
||
var _ webhook.Validator = &ClusterClaim{} | ||
|
||
// ValidateCreate implements webhook.Validator so a webhook will be registered for the type | ||
func (r *ClusterClaim) ValidateCreate() error { | ||
clusterclaimlog.Info("validate create", "name", r.Name) | ||
if r.Name != WellKnownClusterClaimClusterSet && r.Name != WellKnownClusterClaimID { |
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.
But webhooks
is not set in multicluster/PROJECT
, will this be called?
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.
➜ multicluster git:(CRD_v1alpha2) ✗ kubectl apply -f config/samples/clusterset_init/multicluster_membercluster_template.yaml
clusterclaim.multicluster.crd.antrea.io/clusterset.k8s.io unchanged
clusterset.multicluster.crd.antrea.io/test-clusterset unchanged
Error from server (The name id.k8s.ioerror is not valid, only 'id.k8s.io' and 'clusterset.k8s.io' are valid name for ClusterClaim): error when creating "config/samples/clusterset_init/multicluster_member
@tnqn I think this is called?
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 think the change in multicluster/PROJECT
is confusing: It removes webhooks
when bumping up to v1alpha2 which looks like it doesn't need webhooks any more. But I guess the deleted options were just using default values so it doesn't matter whether they exist. However, there are still some apis in that file setting webhooks to true explicitly, which is more confusing. What does it imply when it's set explictly and when it's not set?
multicluster/apis/multicluster/v1alpha2/clusterclaim_webhook.go
Outdated
Show resolved
Hide resolved
@bangqipropel Could you address quan's comment and resolve conflicts? I would suggest to merge this as early as possible. Thanks. |
108bf2f
to
3f1e675
Compare
/test-multicluster-e2e |
1. ClusterClaim upgraded to v1alpha2, with removing the Name of it 2. metadata.name in ClusterClaim can only be `id.k8s.io` or `clusterset.k8s.io` 3. Deprecate ClusterClaim version v1alpha1 Signed-off-by: zbangqi <[email protected]>
3f1e675
to
c00d4fe
Compare
/test-multicluster-e2e |
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.
LGTM
/skip-all |
Update ClusterClaim to v1alpha2
clusterset.k8s.io