ci: collect secrets and cms in the logs
The CI runs will now collect all the secrets and configmaps available. Signed-off-by: Sébastien Han <seb@redhat.com>
This commit is contained in:
1 parent
583791c45c
commit
79dbb35302
1 file changed
+1
-1
@@ -27,7 +27,7 @@ for NAMESPACE in "${NAMESPACES[@]}"; do
|
||||
mkdir "${NS_DIR}"
|
||||
|
||||
# describe every one of the k8s resources in the namespace which rook commonly uses
|
||||
for KIND in 'pod' 'deployment' 'job' 'daemonset'; do
|
||||
for KIND in 'pod' 'deployment' 'job' 'daemonset' 'secret' 'cm'; do
|
||||
kubectl -n "$NAMESPACE" get "$KIND" -o wide > "${NS_DIR}"/"$KIND"-list.txt
|
||||
for resource in $(kubectl -n "$NAMESPACE" get "$KIND" -o jsonpath='{.items[*].metadata.name}'); do
|
||||
kubectl -n "$NAMESPACE" describe "$KIND" "$resource" > "${NS_DIR}"/"$KIND"-describe--"$resource".txt
|
||||
|
||||
Reference in new issue
Block a user