FATA failed to create API: unable to run post-scaffold tasks of "base.go.kubebuilder.io/v4": exec:"make": executable file not found in $PATH
//版本自己改,这里需要一个文件,是不是忘记get了go get sigs.k8s.io/controller-runtime@v0.10.0
FATA failed to create API: unable to inject the resource to "base.go.kubebuilder.io/v4": API resource already exists
命令加上 --force 强制执行
The CustomResourceDefinition "applications.apps.domain" is invalid:* spec.versions[0].schema.openAPIV3Schema.properties[spec].properties[template].properties[spec].properties[imagePullSecrets].items.properties[name].default: Required value: this property is in x-kubernetes-list-map-keys, so it must have a default or be a required property
* spec.versions[0].schema.openAPIV3Schema.properties[spec].properties[template].properties[spec].properties[hostAliases].items.properties[ip].default: Required value: this property is in x-kubernetes-list-map-keys, so it must have a default or be a required property
make:***[Makefile:131:install] 错误 1
在使用这个corev1.PodTemplateSpec的时候有几个字段有问题,虽然《Kubernetes-Operator开发进阶》上面是这么用的
应该是过时了,不能这么用了
type ApplicationSpec struct{
Replicas int32`json:"replicas,omitempty"`
Template corev1.PodTemplateSpec `json:"template,omitempty"`}