Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
falox authored Oct 10, 2020
1 parent d7d2eb9 commit f899be4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ dotnet new console
dotnet add package k8s.Operators --version 1.0.0-beta1
```

Assuming that you have already added a custom resource definition for `MyResource` in your Kubernetes cluster, define a C# class for the custom resource:
Assuming that you have already added a custom resource definition for `MyResource` in your Kubernetes cluster, define a class deriving from `CustomResource` for the custom resource:

```csharp
// Set the CRD attributes
Expand All @@ -46,7 +46,7 @@ public class MyResource : CustomResource<MyResource.MyResourceSpec, MyResource.M
}
```

Define a C# class for the controller logic:
Define a class deriving from `Controller` for the controller logic:

```csharp
public class MyResourceController : Controller<MyResource>
Expand Down Expand Up @@ -89,7 +89,7 @@ static async Task<int> Main(string[] args)
}
```

> Note: Since `operator` is a reserved keyword in C#, it has been escaped with `@operator`.
> Curiosity: Since `operator` is a reserved keyword in C#, it has been escaped with `@operator`.
Start the operator with:

Expand Down

0 comments on commit f899be4

Please sign in to comment.