Skip to content
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

🐛 Remove root:compute deps in controller #2877

Merged
merged 1 commit into from
Mar 29, 2023

Conversation

qiujian16
Copy link
Contributor

  1. create imported-api APIExport during sync cmd if resources flag is set
  2. controller updated imported-api APIExport with updated APIResourceSchema

Summary

Related issue(s)

Fixes #2625

@qiujian16
Copy link
Contributor Author

/hold still working on fixing the e2e test..

@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Mar 8, 2023
@openshift-ci openshift-ci bot added the kind/api-change Categorizes issue or PR as related to adding, removing, or otherwise changing an API label Mar 10, 2023
@openshift-merge-robot openshift-merge-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Mar 10, 2023
@openshift-merge-robot openshift-merge-robot added needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. and removed needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. labels Mar 10, 2023
@openshift-merge-robot openshift-merge-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Mar 13, 2023
@qiujian16 qiujian16 force-pushed the rm-root-compute branch 5 times, most recently from d8c93af to b31c96a Compare March 13, 2023 14:08
pkg/apis/workload/v1alpha1/synctarget_types.go Outdated Show resolved Hide resolved
pkg/cliplugins/workload/plugin/sync.go Outdated Show resolved Hide resolved
for _, resource := range resourceToSync {
nameParts := strings.SplitN(resource, ".", 2)
resourceName := nameParts[0]
apiGroup := "core"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this a constant we can import?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you mean, should we use:
corev1.GenericControlPlaneGroupName ?

Even in the kubernetes fork, it doesn't seem to be used in such cases. Here is an example of those:

https://github.com/kcp-dev/kubernetes/blob/653a0f16cab7cd12271e7433fc8466686d524f84/staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/validation/validation.go#L75

pkg/cliplugins/workload/plugin/sync.go Outdated Show resolved Hide resolved
pkg/cliplugins/workload/plugin/sync.go Outdated Show resolved Hide resolved
@qiujian16 qiujian16 force-pushed the rm-root-compute branch 3 times, most recently from 85c6c3e to e54daad Compare March 14, 2023 06:41
@ncdc ncdc added the area/transparent-multi-cluster Related to scheduling of workloads into pclusters. label Mar 14, 2023
@qiujian16 qiujian16 force-pushed the rm-root-compute branch 2 times, most recently from 61964de to fa3c22a Compare March 15, 2023 06:48
@davidfestal
Copy link
Member

@qiujian16 there's still a test failing.

@qiujian16 qiujian16 force-pushed the rm-root-compute branch 3 times, most recently from efa78a8 to 9d3be02 Compare March 22, 2023 09:25
@davidfestal
Copy link
Member

/test e2e-sharded

@davidfestal
Copy link
Member

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Mar 29, 2023
@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label Mar 29, 2023
1. create imported-api APIExport during sync cmd if resources flag is set
2. controller updated imported-api APIExport with updated APIResourceSchema
3. remove auto-generated apibinding
4. add a validation on sync command to avoid setting imported-apis
in --api-export flag

Signed-off-by: Jian Qiu <[email protected]>
@davidfestal
Copy link
Member

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Mar 29, 2023
@davidfestal
Copy link
Member

/unhold

@openshift-ci openshift-ci bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Mar 29, 2023
@stevekuznetsov stevekuznetsov added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 29, 2023
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Mar 29, 2023

[APPROVALNOTIFIER] This PR is APPROVED

Approval requirements bypassed by manually added approval.

This pull-request has been approved by:

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-robot openshift-merge-robot merged commit 8507c1a into kcp-dev:main Mar 29, 2023
@qiujian16 qiujian16 deleted the rm-root-compute branch March 30, 2023 03:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/transparent-multi-cluster Related to scheduling of workloads into pclusters. kind/api-change Categorizes issue or PR as related to adding, removing, or otherwise changing an API lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: workload_apiexport_controller should not hard code root:compute workspace
6 participants