Skip to content

Commit

Permalink
Remove --secret from the docs (#342)
Browse files Browse the repository at this point in the history
--secret flag is removed from the tenant create command, cleanup the
documentation.
  • Loading branch information
vadmeste committed Oct 16, 2020
1 parent 36b7477 commit 1c2d212
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ In below example, we ask MinIO Operator to create a Tenant yaml with 4 nodes, 16
We recommend [direct CSI driver](https://github.com/minio/operator/blob/master/docs/using-direct-csi.md) to create PVs.

```sh
kubectl minio tenant create --name tenant1 --secret tenant1-secret --servers 4 --volumes 16 --capacity 16Ti
kubectl minio tenant create --name tenant1 --servers 4 --volumes 16 --capacity 16Ti
```

Optionally, you can generate a yaml file with the `-o` flag in above command and modify the yaml file as per your specific requirements. Once you verify and optionally add any other relevant fields to the file, create the tenant

```sh
kubectl minio tenant create --name tenant1 --secret tenant1-secret --servers 4 --volumes 16 --capacity 16Ti -o > tenant.yaml
kubectl minio tenant create --name tenant1 --servers 4 --volumes 16 --capacity 16Ti -o > tenant.yaml
kubectl apply -f tenant.yaml
```

Expand Down
2 changes: 1 addition & 1 deletion kubectl-minio/cmd/tenant-create.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ import (
const (
createDesc = `
'create' command creates a new MinIO tenant`
createExample = ` kubectl minio tenant create --name tenant1 --secret tenant1-creds --servers 4 --volumes 16 --capacity 16Ti --namespace tenant1-ns`
createExample = ` kubectl minio tenant create --name tenant1 --servers 4 --volumes 16 --capacity 16Ti --namespace tenant1-ns`
tenantSecretSuffix = "-creds-secret"
consoleSecretSuffix = "-console-secret"
)
Expand Down

0 comments on commit 1c2d212

Please sign in to comment.