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

[BUG] pool coordinator resource key path is wrong for extended custom resources #1728

Closed
qsfang opened this issue Oct 10, 2023 · 1 comment · Fixed by #1729
Closed

[BUG] pool coordinator resource key path is wrong for extended custom resources #1728

qsfang opened this issue Oct 10, 2023 · 1 comment · Fixed by #1729
Labels
kind/bug kind/bug

Comments

@qsfang
Copy link
Contributor

qsfang commented Oct 10, 2023

What happened:

  1. kubect edit cm yurt-hub-cfg -n kube-system, add pool_scope_resources
    pool_scope_resources: |
    [{
    "Group":"networking.alibaba.com",
    "Version":"v1",
    "Resource":"ipinstances"
    }]
  2. sign in edge node
  3. restart yurthub static pod
  4. use edge pool-coordinator kubeconfig, kubectl get ipinstance, get nothing

What you expected to happen:
cmd kubectl get ipinstance get expected result, as ipinstance crd resource is synced from cloud apiserver to edge pool coordinator

How to reproduce it (as minimally and precisely as possible):

  1. kubect edit cm yurt-hub-cfg -n kube-system, add pool_scope_resources
    pool_scope_resources: |
    [{
    "Group":"networking.alibaba.com",
    "Version":"v1",
    "Resource":"ipinstances"
    }]
  2. create rolebinding, and grant yurt-hub system:nodes with cluster-admin role, just for testing
  3. sign in edge node
  4. use edge pool-coordinator kubeconfig, kubectl create customresourcedefinition of ipinstances.networking.alibaba.com manually
  5. restart yurthub static pod
  6. use edge pool-coordinator kubeconfig, kubectl get ipinstance, get nothing

Anything else we need to know?:

Environment:

  • OpenYurt version:
  • Kubernetes version (use kubectl version):
  • OS (e.g: cat /etc/os-release):
  • Kernel (e.g. uname -a):
  • Install tools:
  • Others:

others

/kind bug

@rambohe-ch
Copy link
Member

@qsfang It looks like that yurt-coordinator has some problems to support crd resource syncing. would you like to debug this problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug kind/bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants