Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get sysdicloud-values secret #238

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions support_bundle/get_support_bundle.sh
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,12 @@ main() {
echo "Fetching the sysdigcloud-config ConfigMap"
kubectl ${KUBE_OPTS} get configmap sysdigcloud-config -o yaml | grep -v password | grep -v apiVersion > ${LOG_DIR}/config.yaml || true

# Collect the sysdigcloud-values secret, and write to the log directory if the backend version is 6.5 or higher
if [[ "$BACKEND_VERSION" =~ ^(6.5) ]]; then
BuenClima marked this conversation as resolved.
Show resolved Hide resolved
echo "Fetching the sysdigcloud-values Secret"
kubectl -n sysdigcloud get secret sysdigcloud-values -o jsonpath='{.data.values\.yaml}' | base64 -d > ${LOG_DIR}/values.yaml || true
fi

# Generate the bundle name, create a tarball, and remove the temp log directory
BUNDLE_NAME=$(date +%s)_sysdig_cloud_support_bundle.tgz
echo "Creating the ${BUNDLE_NAME} archive now"
Expand Down