-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use a different variable to collect CRS
This patch fixes in the first place the usage of the "resources" variable. The purpose of this variable is to define a set of k8s related services that should be collected for each namespace; for this reason it's defined in common.sh and exported, so it can be used in any script that is sourced by "gather_run". Instead of using the same "$resources" variable that is used a lot in the collection-scripts, this change customizes the variable name used to collect CR(s) and apiservices, and it avoids collisions with other 'get_resources' happening in other namespaces. In addition, this patch fixes the way CRD(s) are collected: they are global and shouldn't be collected "per namespace", hence they're now colelcted within the "crd/" folder created in the root must-gather directory. Signed-off-by: Francesco Pantano <[email protected]>
- Loading branch information
Showing
3 changed files
with
21 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters