Description
Describe the rationale for the suggested feature.
Currently the copy collector works by specifying only a single, hard-coded, known namespace, to copy files off of pods found by a given selector.
As part of our application, we have a feature that allows a user to deploy a namespace and deployments into the namespace (the application interacts directly with helm
to deploy), and the user can define what that namespace can be (in a way, they define a portion of the namespace, where we give it a predefined suffix; i.e. kinetic-tenant-<SLUG_DEFINED_BY_USER>
.
We'd like to be able to copy files off of pods we know that exist as part of these "deployments" and add them into the support bundle we collect from the user when something is going wrong with the platform.
If we could tell the copy collector to target the namespace of kinetic-tenant-*
with the selector (or just * or "all namespaces"), we could "dynamically" grab all of the files from all pods, regardless of what the user may have specified as their "slug".
Describe the feature
This allows for collecting files off of running pods when we may not know what namespaces are currently deployed (via the support bundle definitions).
Describe alternatives you've considered
We could likely write our own custom collector / image that goes and finds all namespaces that match kinetic-tenant-*
and manually run the kubectl cp...
commands from within that pod to zip up the files and put them into the support bundle.
Additional context
See https://community.replicated.com/t/run-copy-collector-against-wildcard-namespaces/1213.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status