Advanced-Kubernetes-Operator icon indicating copy to clipboard operation
Advanced-Kubernetes-Operator copied to clipboard

纸质书,2023年1月初出版

Results 13 Advanced-Kubernetes-Operator issues
Sort by recently updated
recently updated
newest added

UpdateFunc部分应该是Service对象,不是Application吧 ```go Owns(&corev1.Service{}, builder.WithPredicates(predicate.Funcs{ ... UpdateFunc: func(event event.UpdateEvent) bool { if event.ObjectNew.GetResourceVersion() == event.ObjectOld.GetResourceVersion() { return false } if reflect.DeepEqual(event.ObjectNew.(*v1.Application).Spec, event.ObjectOld.(*v1.Application).Spec) { return false } return true }, })). ```...

``` dappsv1 "github.com/daniel-hutao/application-operator/api/v1" ``` this links is error, when run "make run", it will be run "go get github.com/daniel-hutao/application-operator/api/v1" How do I understand the api of this ”dappsv1“

我的代码: ```go // CoffeeSpec defines the desired state of Coffee type CoffeeSpec struct { // INSERT ADDITIONAL SPEC FIELDS - desired state of cluster // Important: Run "make" to regenerate...

我的集群是1.23.0版本 使用作者的Dockerfile发现了一些问题: FROM busybox COPY ./in-cluster /in-cluster USER 65532:65532 ENTRYPOINT /in-cluster 执行kubectl run in-cluster -i --image=docker.io/in-cluster:v0.0.1 --restart=Never --overrides='{"spec": {"imagePullSecrets": [{"name": "image-pull-secret"}]}}'会报错: **pod default/in-cluster terminated (Error)** 单从image的size上来说,busybox更小。不过busybox默认的libc实现是uClibc,而我们通常运行环境使用的libc实现都是glibc,因此我们要么选择静态编译程序,要么使用busybox:glibc镜像作为base image。 所以我把Dockerfile改为: FROM busybox:glibc...

测试了很久,主要是版本问题,导致各种问题不断。现在把一个比较好的版本放这里,ubuntu和linux下开发的同学可以参考我readme仓库里面的版本信息。 https://github.com/KevenNock/application-operator

/data/gomod/pkg/mod/sigs.k8s.io/[email protected]/pkg/log/deleg.go:79:12: undefined: logr.WithCallDepth /data/gomod/pkg/mod/sigs.k8s.io/[email protected]/pkg/log/deleg.go:163:2: cannot use res (type *DelegatingLogger) as type logr.Logger in return argument /data/gomod/pkg/mod/sigs.k8s.io/[email protected]/pkg/log/deleg.go:179:2: cannot use res (type *DelegatingLogger) as type logr.Logger in return argument ![image](https://user-images.githubusercontent.com/22750570/218023438-1356d81a-e508-41a3-9fa2-be4f7c1523c4.png)

P69 中“**我们可以直接打开staging/k8s.io/client-go**"正确目录应为”**staging/src/k8s.io/client-go**“

报错如下: ```shell $ kubectl apply -f config/samples/apps_v2_application.yaml Error from server: error when retrieving current configuration of: Resource: "apps.tanlay.com/v2, Resource=applications", GroupVersionKind: "apps.tanlay.com/v2, Kind=Application" Name: "nginx-sample", Namespace: "default" from server for: "config/samples/apps_v2_application.yaml":...

### 开发Operator开头希望添加环境信息 - [x] golang语言版本 - [x] 本次开发的电脑,Mac M1还是Mac amd64或直接Linux下 - [x] kubebuilder版本,不能直接上来就最新版本(kubebuilder本身对kubernetes版本和golang版本有依赖) - [x] kubernetes版本

advice