Skip to content

Commit

Permalink
Merge pull request openshift#1646 from deads2k/gather-01-rendered
Browse files Browse the repository at this point in the history
gather rendered assets as part of install-gather
  • Loading branch information
openshift-merge-robot authored Apr 26, 2019
2 parents 2780e93 + 13ea52b commit c87b389
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions data/data/bootstrap/files/usr/local/bin/installer-gather.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,17 @@ do
sudo podman inspect "${container}" >& "${ARTIFACTS}/bootstrap/pods/${container}.inspect"
done

echo "Gathering rendered assets..."
mkdir -p "${ARTIFACTS}/rendered-assets"
cp -r /var/opt/openshift/ "${ARTIFACTS}/rendered-assets"
# remove sensitive information
# TODO leave tls.crt inside of secret yaml files
find "${ARTIFACTS}/rendered-assets" -name "*secret*" -print0 | xargs -0 rm
find "${ARTIFACTS}/rendered-assets" -name "*kubeconfig*" -print0 | xargs -0 rm
find "${ARTIFACTS}/rendered-assets" -name "*.key" -print0 | xargs -0 rm
find "${ARTIFACTS}/rendered-assets" -name ".kube" -print0 | xargs -0 rm -rf


# Collect cluster data
function queue() {
local TARGET="${ARTIFACTS}/${1}"
Expand Down

0 comments on commit c87b389

Please sign in to comment.