examples icon indicating copy to clipboard operation
examples copied to clipboard

Provide operator example using latest operator-sdk 1.xx version,

Open SanjeevKGupta opened this issue 2 years ago • 4 comments

Is your feature request related to a problem? Please describe.

Current edge-cluster operator example provides example using operator-sdk version 0.17 (June 29, 2020) https://github.com/operator-framework/operator-sdk/releases?page=5 on open-horizon Operator Edge Service https://github.com/open-horizon/examples/blob/master/edge/services/nginx-operator/CreateService.md doc.

Latest release of opeartor-sdk its 1.22. There have been 53 releases of operator-sdk since the last release of 0.17.2

Information is that examples are based on 0.19.4 but still quite old.

  • 1.xx is very different from 0.xx . A newer example will be helpful .
  • Also add working example where operator deployed image is in authenticated repo in addition to docker hub.

Describe the solution you'd like.

No response

Describe alternatives you've considered

No response

Additional context.

No response

SanjeevKGupta avatar Jun 30 '22 15:06 SanjeevKGupta

This anax issue will be related: https://github.com/open-horizon/anax/issues/3363

johnwalicki avatar Jul 01 '22 13:07 johnwalicki

Additional reading about writing an operator:

  • https://github.com/SanjeevKGupta/example/tree/master/operator
  • https://www.magalix.com/blog/creating-custom-kubernetes-operators
  • https://www.techtarget.com/searchitoperations/tutorial/How-to-build-a-Kubernetes-operator
  • https://developers.redhat.com/articles/2021/09/07/build-kubernetes-operator-six-steps
  • https://kubernetes.io/docs/concepts/extend-kubernetes/operator/#example
  • https://sdk.operatorframework.io/docs/building-operators/ansible/tutorial/
  • https://sdk.operatorframework.io/docs/building-operators/golang/tutorial/

johnwalicki avatar Jul 01 '22 18:07 johnwalicki

@johnwalicki what's the latest on this?

SanjeevKGupta avatar Nov 03 '22 13:11 SanjeevKGupta

We will rebase this example when the https://github.com/open-horizon/anax/issues/3445 PR is merged. Good progress.

johnwalicki avatar Nov 03 '22 13:11 johnwalicki