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] kubectl-kruise v1.1.2 can't operate rollouts.kruise.io/v1alpha1 #97

Open
runkecheng opened this issue Aug 7, 2024 · 3 comments
Open

Comments

@runkecheng
Copy link

❯ kubectl-kruise rollout approve rollout/http-server-test
error: no kind "Rollout" is registered for version "rollouts.kruise.io/v1alpha1" in scheme "pkg/runtime/scheme.go:100"

❯ kubectl-kruise version
Client Version: version.Info{Major:"1", Minor:"1", GitVersion:"v1.1.2", GitCommit:"519472cf18392bdf3cc8d0b510a0e2d855e72b52", GitTreeState:"clean", BuildDate:"2024-02-04T15:13:44Z", GoVersion:"go1.18.10", Compiler:"gc", Platform:"darwin/arm64"}
Kustomize Version: v4.5.4
Server Version: version.Info{Major:"1", Minor:"24+", GitVersion:"v1.24.6-aliyun.1", GitCommit:"3de3c43202bdfdf6826fb879bf0f82d09d6a5ade", GitTreeState:"clean", BuildDate:"2023-11-20T09:17:25Z", GoVersion:"go1.18.6", Compiler:"gc", Platform:"linux/amd64"}

❯ kubectl api-resources | grep roll
batchreleases                                              rollouts.kruise.io/v1alpha1             true         BatchRelease
rollouthistories                                           rollouts.kruise.io/v1alpha1             true         RolloutHistory
rollouts                                                   rollouts.kruise.io/v1alpha1             true         Rollout
trafficroutings                                            rollouts.kruise.io/v1alpha1             true         TrafficRouting
@hantmac
Copy link
Member

hantmac commented Aug 12, 2024

@runkecheng Hi, what's your kruise-rollout version ?

@runkecheng
Copy link
Author

@runkecheng Hi, what's your kruise-rollout version ?

I was able to find out the image tag is v0.5.0 through the old rs, and I tried to compile it with the latest master branch and the problem was solved.

@haomingz
Copy link

I have the same problem. The version of Kruis Rollout that I am using is v0.4.0.

❯ kubectl-kruise rollout approve rollout/test-server
error: no kind "Rollout" is registered for version "rollouts.kruise.io/v1alpha1" in scheme "pkg/runtime/scheme.go:100"

❯ kubectl-kruise version --output=yaml
clientVersion:
  buildDate: "2024-02-04T15:13:44Z"
  compiler: gc
  gitCommit: 519472cf18392bdf3cc8d0b510a0e2d855e72b52
  gitTreeState: clean
  gitVersion: v1.1.2
  goVersion: go1.18.10
  major: "1"
  minor: "1"
  platform: linux/amd64
kustomizeVersion: v4.5.4
serverVersion:
  buildDate: "2023-11-27T07:33:52Z"
  compiler: gc
  gitCommit: 9afa36f3a0bc3c166f9d601f0e2d5d22e4fd8944
  gitTreeState: clean
  gitVersion: v1.26.3-aliyun.1
  goVersion: go1.19.7
  major: "1"
  minor: 26+
  platform: linux/amd64

❯ kubectl get deployments.apps -n kruise-system -o wide
NAME                                READY   UP-TO-DATE   AVAILABLE   AGE    CONTAINERS       IMAGES                                                               SELECTOR
ack-kruise                          2/2     2            2           374d   manager          registry-cn-beijing-vpc.ack.aliyuncs.com/acs/kruise-manager:v1.4.1   control-plane=controller-manager
kruise-rollout-controller-manager   2/2     2            2           374d   kruise-rollout   registry-cn-beijing-vpc.ack.aliyuncs.com/acs/kruise-rollout:v0.4.0   control-plane=kruise-rollout-controller-manager

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

No branches or pull requests

3 participants