Skip to content

Commit

Permalink
Fix marker for kubebuilder (#5672)
Browse files Browse the repository at this point in the history
CRD scope either `Namespaced` or `Cluster`, right marker should be
`//+kubebuilder:resource:scope=Namespaced` , Not
`//+kubebuilder:resource:scope=Namespace` .

Signed-off-by: ymping <ympiing@gmail.com>
  • Loading branch information
ymping authored Apr 21, 2022
1 parent d255503 commit df06f4b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ type Memcached struct {
Status MemcachedStatus `json:"status,omitempty"`
}
```
To set the scope to namespaced, the marker would be set to `//+kubebuilder:resource:scope=Namespace` instead.
To set the scope to namespaced, the marker would be set to `//+kubebuilder:resource:scope=Namespaced` instead.


## Set scope in CRD YAML file
Expand Down

0 comments on commit df06f4b

Please sign in to comment.