Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create tenant in interactive mode #1249

Merged
merged 1 commit into from
Aug 25, 2022

Conversation

reivaj05
Copy link
Contributor

Adds a new flag to create and configure a new tenant in interactive mode

Closes: https://github.com/miniohq/engineering/issues/859

Screen Shot 2022-08-22 at 16 54 50

cmd.MarkFlagRequired("servers")
cmd.MarkFlagRequired("volumes")
cmd.MarkFlagRequired("capacity")
cmd.MarkFlagRequired("namespace")
Copy link
Contributor Author

@reivaj05 reivaj05 Aug 22, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will be now validated in TenantOptions.Validate, that way the new interactive flag can be processed and we can keep having these flags as required

@cniackz
Copy link
Contributor

cniackz commented Aug 23, 2022

Amazing, didn't know about this feature, tested locally, and liked already:

$ ./kubectl-minio tenant create --interactive
Tenant name: cesar
Total of servers: 4
Total of volumes: 4
Namespace: cesar
Capacity: 1Gi
Disable TLS: y
Disable audit logs: y
Disable prometheus: y

Tenant 'cesar' created in 'cesar' Namespace

  Username: AL6SP8P8BMCL1E1JHCHA 
  Password: OL5M5AE50Z8BjdHXO8zrVtsOEzcG3PaeF1XbEpuX 
  Note: Copy the credentials to a secure location. MinIO will not display these again.

APPLICATION	SERVICE NAME 	NAMESPACE	SERVICE TYPE	SERVICE PORT 
MinIO      	minio        	cesar    	ClusterIP   	80          	
Console    	cesar-console	cesar    	ClusterIP   	9090  

Screen Shot 2022-08-23 at 1 58 29 PM

Copy link
Contributor

@cniackz cniackz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@reivaj05 reivaj05 requested a review from pjuarezd August 23, 2022 22:07
@dvaldivia dvaldivia merged commit ca8f611 into minio:master Aug 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants