Skip to content

add --kubernetes-deployment-selector option#5

Open
danmaas wants to merge 1 commit intosideshowbandana:masterfrom
coreplane:djm-deployment-selector
Open

add --kubernetes-deployment-selector option#5
danmaas wants to merge 1 commit intosideshowbandana:masterfrom
coreplane:djm-deployment-selector

Conversation

@danmaas
Copy link
Copy Markdown

@danmaas danmaas commented Aug 20, 2018

The current code assumes that the Deployment you are controlling has an "app=..." label that exactly matches the Deployment resource name.

In my particular cluster, this is not the case, so we need another way for the list_namespaced_deployment() query to find the deployment.

This option allows you to override the "app=..." label query with an arbitrary label query.
e.g. in my case I use
--kubernetes-deployment-selector=app.kubernetes.io/component=my-deployment-to-control

…he deployment, in case its app label does not match its name
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.

1 participant