Open ultram4rine opened 2 months ago
Closes #421
Steps:
mv k8sgpt-operator k8sgpt-operator-orig mkdir k8sgpt-operator && cd k8sgpt-operator go mod init github.com/k8sgpt-ai/k8sgpt-operator kubebuilder init --domain k8sgpt.ai --plugins=go/v4,grafana.kubebuilder.io/v1-alpha cp -r ../k8sgpt-operator-orig/hack . kubebuilder create api --group core --version v1alpha1 --kind K8sGPT # Resource: yes, Controller: yes kubebuilder create api --group core --version v1alpha1 --kind Result # Resource: yes, Controller: no
Then copy file by file to new project layout.
As kubebuilder scaffolded with golangci config I've also added a GH job with it. Ways to fix this CI step:
kubebuilder
golangci
k8s.io/utils/pointer
grpc.WithInsecure
Also made all k8s imports in form like corev1.
corev1
Closes #421
π Description
Steps:
Then copy file by file to new project layout.
β Checks
βΉ Additional Information
As
kubebuilder
scaffolded withgolangci
config I've also added a GH job with it. Ways to fix this CI step:k8s.io/utils/pointer
andgrpc.WithInsecure
).Also made all k8s imports in form like
corev1
.