Comments (8)
同样遇到这个问题
from advanced-kubernetes-operator.
我是这样解决的 go.mod文件 k8s.io/api v0.26.0 改成 k8s.io/api v0.26.1 然后修改Makefile 里的ENVTEST_K8S_VERSION = 1.26.0 改成 ENVTEST_K8S_VERSION = 1.25.0 就能正常make install 了
机器是MacBookpro14'(2021) M1 chip,使用插件--plugins=go/v4-alpha
kubectl version --short :
Client Version: v1.25.0
Kustomize Version: v4.5.7
Server Version: v1.25.0
from advanced-kubernetes-operator.
@Shuimo03 可以参考一下我的解决方案
from advanced-kubernetes-operator.
@Sucran 好咧,多谢大佬,最近没看了,到时候试试看
from advanced-kubernetes-operator.
kubebuilder 版本用的3.8 可以,现在v3.9.0版本和kubernetes 1.25.0版本结合有报错
from advanced-kubernetes-operator.
解决方法2,修改go.mod,加入replace k8s.io/api v0.26.0 => k8s.io/api v0.25.0定义,然后执行go mod tidy
from advanced-kubernetes-operator.
参考https://github.com/kubernetes-sigs/kubebuilder/issues/3303.升级k8s.io/api即可 。 目前发现升级太高会引起其他问题,暂时升级为go get k8s.io/[email protected] ,go mod tidy.
from advanced-kubernetes-operator.
kubernetes-sigs/kubebuilder#3303 (comment)
升级版本
from advanced-kubernetes-operator.
Related Issues (14)
- 【勘误-P31】“如果读者的开发环境是amd64的Mac”中amd64应为arm64
- 【备注-P32】kubebuilder 3.2.0和go 1.18不兼容 HOT 1
- 【勘误-P60】”4. 编译代码“ HOT 1
- 【建议】第二章 Operator开发章节开头建议添加本次开发环境信息 HOT 1
- 第七章 application资源的yaml怎么写 HOT 1
- 7.6.2节 多版本部署,v2版本创建yaml报错, v1创建正常
- P69 client-go客户端目录描述有误
- 7.4.5 过滤调谐事件Owns-Service部分代码写错了吧,UpdateFunc部分应该是Service对象,不是Application吧 HOT 1
- 2.5.7 执行make run失败
- ubuntu22.10下,完整实现第七章代码,可以编译正常运行
- 4.2.1 in-cluster-configuration Dockerfile problem
- 书中的所有代码都在这里了吧
- what's meaning of "adppsv1 links" in controller
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from advanced-kubernetes-operator.