Skip to content

Commit 6714f6d

Browse files
committed
Fix rbac example
1 parent 2afad9e commit 6714f6d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cmd/controller-gen/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ func main() {
205205
Long: "Generate Kubernetes API extension resources and code.",
206206
Example: ` # Generate RBAC manifests and crds for all types under apis/,
207207
# outputting crds to /tmp/crds and everything else to stdout
208-
controller-gen rbac crd paths=./apis/... output:crd:dir=/tmp/crds output:stdout
208+
controller-gen rbac:roleName=<role name> crd paths=./apis/... output:crd:dir=/tmp/crds output:stdout
209209
210210
# Generate deepcopy implementations for a particular file
211211
controller-gen deepcopy paths=./apis/v1beta1/some_types.go

0 commit comments

Comments
 (0)