dotnet new templates for KubeOps operator sdk.
$ dotnet add package KubeOps.TemplatesTo use the operator SDK as easy as possible, this
Nuget Package
contains dotnet new templates.
These templates enable developers to create Kubernetes operators
with the simple dotnet new command in C#.
To install the template package, use the dotnet cli
(or you may use the exact version as provided in the link above):
dotnet new install KubeOps.Templates
As soon as the templates are installed, you may use them with the short names below:
Short Name: operator
Creates a standard Kubernetes operator with demo implementations for controllers, entities, and finalizers. This template is a good starting point for most operator projects.
dotnet new operator -n MyOperator
Short Name: operator-empty
Creates a minimal, empty Kubernetes operator project without web capabilities. Ideal for advanced users who want to start from scratch.
dotnet new operator-empty -n MyOperator
Short Name: operator-web
Creates a Kubernetes operator with web server capabilities and demo implementations, including webhooks. Use this template if you need web-based features like admission webhooks.
dotnet new operator-web -n MyOperator
Short Name: operator-web-empty
Creates a minimal Kubernetes operator project with web server capabilities, but no demo implementations. Use this template if you want web features but a clean slate.
dotnet new operator-web-empty -n MyOperator