kcl-lang / kcl-operator

Kubernetes KCL Operator and Webhook Server
Apache License 2.0
16 stars 4 forks source link

How to init kcl operator code. #1

Closed ekkoful closed 1 year ago

ekkoful commented 1 year ago

Enhancement

There 2 way to generate operator. kubebuilder vs operator-sdk. I think we can use the operator-sdk tool. This is the doc. https://sdk.operatorframework.io/docs/building-operators/golang/quickstart/ https://sdk.operatorframework.io/docs/faqs/

  1. Kind: KCLRun
  2. Version: v1alpha1/...
  3. Group: ...

kubebuilder doc: https://book.kubebuilder.io/ @Peefy

Peefy commented 1 year ago

@ekkoful Great! The design is here https://github.com/KusionStack/kcl/issues/479. I hope we can participate in improving this content together.

Peefy commented 1 year ago

Enhancement

There 2 way to generate operator. kubebuilder vs operator-sdk. I think we can use the operator-sdk tool. This is the doc. https://sdk.operatorframework.io/docs/building-operators/golang/quickstart/ https://sdk.operatorframework.io/docs/faqs/

  1. Kind: KCLRun
  2. Version: v1alpha1/...
  3. Group: ...

kubebuilder doc: https://book.kubebuilder.io/ @Peefy

I agree with using the operator-sdk tool.

lucckas commented 1 year ago

https://github.com/kube-rs/kube

Peefy commented 1 year ago

https://github.com/kube-rs/kube

I have noticed it before. A great project about k8s eco. and operator.