Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Filter workloads by container name in fluxctl #2766

Merged
merged 3 commits into from
Jan 27, 2020

Conversation

ogerbron
Copy link
Contributor

@ogerbron ogerbron commented Jan 20, 2020

This PR adds an optional argument to fluxctl list-workloads. It gives the ability to filter workloads with a specific container. This is especially useful when using micro services with different processes, rather than parsing fluxctl output with shell scripting.

For example:

fluxctl list-workloads --container my-container
WORKLOAD                                                   CONTAINER  IMAGE                                   RELEASE  POLICY
default:deployment/micro-service-process-1   my-container  docker/my-container:master  ready    automated
default:deployment/micro-service-process-2   my-container  docker/my-container:master  ready    automated
default:deployment/micro-service-process-3   my-container  docker/my-container:master  ready    automated

I am quite new to Go programming, so do not hesitate to correct me or give me hints on how I can be a better contributor :).

@2opremio
Copy link
Contributor

Can you please update the fluxctl documentation?

@ogerbron ogerbron force-pushed the Filter-by-container-name branch 2 times, most recently from ccfd501 to 69150ac Compare January 27, 2020 15:17
@ogerbron ogerbron force-pushed the Filter-by-container-name branch from 69150ac to 7398458 Compare January 27, 2020 15:24
@2opremio 2opremio merged commit 824c791 into fluxcd:master Jan 27, 2020
@2opremio 2opremio added this to the 1.18.0 milestone Jan 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants