openkruise / kruise-tools

Tools to use with the Kruise libraries
Apache License 2.0
43 stars 24 forks source link

[bug] kubectl-kruise v1.1.2 can't operate `rollouts.kruise.io/v1alpha1` #97

Open runkecheng opened 1 month ago

runkecheng commented 1 month ago
❯ 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 commented 1 month ago

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

runkecheng commented 3 weeks ago

@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.