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

Fix: Cert issuer validation for apps #237

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 18 additions & 5 deletions tsuru/admin/pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -463,11 +463,24 @@ func (c *PoolConstraintSet) Info() *cmd.Info {

Examples:

[[tsuru pool-constraint-set dev_pool team "*" # allows every team to use the pool "dev_pool" ]]
[[tsuru pool-constraint-set "dev_*" router prod_router --blacklist # disallows "prod_router" to be used on every pool with "dev_" prefix ]]
[[tsuru pool-constraint-set prod_pool team team2 team3 --append # adds "team2" and "team3" to the list of teams allowed to use pool "prod_pool"]]
[[tsuru pool-constraint-set prod_pool service service1 service2 --append # adds "service1" and "service2" to the list of services allowed to be used on pool "prod_pool"]]
[[tsuru pool-constraint-set prod_pool service service1 --blacklist # disallows "service1" to be used on pool "prod_pool"]]`,
tsuru pool-constraint-set dev_pool team "*"
# Allows every team to use the pool "dev_pool".

tsuru pool-constraint-set "dev_*" router prod_router --blacklist
# Disallows "prod_router" to be used on pools with "dev_" prefix.

tsuru pool-constraint-set dev_pool cert-issuer letsencrypt digicert
# Constraint every app in the the pool "dev_pool" to use certificate issuer from letsencrypt or digicert.

tsuru pool-constraint-set "dev_*" router prod_router --blacklist
# Disallows "prod_router" to be used on pools with "dev_" prefix.

tsuru pool-constraint-set prod_pool service service1 service2 --append
# Adds "service1" and "service2" to the list of services allowed to use pool "prod_pool".

tsuru pool-constraint-set prod_pool service service1 service2 --blacklist --append
# Adds "service1" and "service2" to the list of services disallowed to use pool "prod_pool".`,

MinArgs: 2,
}
}
Expand Down
Loading