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

add --kubernetes-deployment-selector option #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

danmaas
Copy link

@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.

None yet

1 participant