Skip to content

Commit 85dda78

Browse files
authored
Updated the content to coherent with the code snippet (#6199)
Signed-off-by: Chirayu Kapoor <[email protected]> Signed-off-by: Chirayu Kapoor <[email protected]>
1 parent f2ac68f commit 85dda78

File tree

1 file changed

+1
-3
lines changed
  • website/content/en/docs/building-operators/golang

1 file changed

+1
-3
lines changed

website/content/en/docs/building-operators/golang/tutorial.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,7 @@ properly follow the design goals set by [controller-runtime][controller-runtime]
102102

103103
### Define the API
104104

105-
To begin, we will represent our API by defining the `Memcached` type, which will have a `MemcachedSpec.Size` field to set the quantity of memcached instances (CRs) to be deployed, and a `MemcachedStatus.Nodes` field to store a CR's Pod names.
106-
107-
**Note** The Node field is just to illustrate an example of a Status field. In real cases, it would be recommended to use [Conditions][conditionals].
105+
To begin, we will represent our API by defining the `Memcached` type, which will have a `MemcachedSpec.Size` field to set the quantity of memcached instances (CRs) to be deployed, and a `MemcachedStatus.Conditions` field to store a CR's [Conditions][conditionals].
108106

109107
Define the API for the Memcached Custom Resource(CR) by modifying the Go type definitions at `api/v1alpha1/memcached_types.go` to have the following spec and status:
110108

0 commit comments

Comments
 (0)