Skip to content

Commit b09432b

Browse files
authored
Merge pull request #5104 from pedjak/remove-patchStrategy-tag
📖 (docs) drop patchStrategy/protobuf tags from Conditions in Getting Started section
2 parents 3fd0419 + 2440a11 commit b09432b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docs/book/src/getting-started.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,10 @@ similar to how we do with any resource from the Kubernetes API.
9999
```go
100100
// MemcachedStatus defines the observed state of Memcached
101101
type MemcachedStatus struct {
102-
Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,1,rep,name=conditions"`
102+
// +listType=map
103+
// +listMapKey=type
104+
// +optional
105+
Conditions []metav1.Condition `json:"conditions,omitempty"`
103106
}
104107
```
105108

0 commit comments

Comments
 (0)