Skip to content

Commit df06f4b

Browse files
authored
Fix marker for kubebuilder (#5672)
CRD scope either `Namespaced` or `Cluster`, right marker should be `//+kubebuilder:resource:scope=Namespaced` , Not `//+kubebuilder:resource:scope=Namespace` . Signed-off-by: ymping <[email protected]>
1 parent d255503 commit df06f4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

website/content/en/docs/building-operators/golang/crds-scope.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ type Memcached struct {
4747
Status MemcachedStatus `json:"status,omitempty"`
4848
}
4949
```
50-
To set the scope to namespaced, the marker would be set to `//+kubebuilder:resource:scope=Namespace` instead.
50+
To set the scope to namespaced, the marker would be set to `//+kubebuilder:resource:scope=Namespaced` instead.
5151

5252

5353
## Set scope in CRD YAML file

0 commit comments

Comments
 (0)