Skip to content

Instantly share code, notes, and snippets.

View jgsqware's full-sized avatar

Julien Garcia Gonzalez jgsqware

View GitHub Profile
@jgsqware
jgsqware / cleaner.sh
Created May 15, 2019 12:21
Clean Tiller configmap
#!/usr/bin/env bash
set -eu
max_number_rev=10
namespaces=( "kube-system" )
for namespace in $namespaces
do
releases=$(kubectl --namespace=$namespace get cm -l OWNER=TILLER -o go-template --template='{{range .items}}{{ .metadata.labels.NAME }}{{"\n"}}{{ end }}' | sort -u)
#!/usr/bin/env bash
set -eu
# defaulting the context to a blank string just uses the currently configured context
context=${1:-""}
max_number_rev=10
declare -a namespaces=( "kube-system" )
# A popeye configuration file to check a
# Giant Swarm tenant cluster before upgrading.
#
# This configuration suppresses many useful checks for best practices that are also relevant
# in general, with the one goal: to highlight any details that could cause problems
# during an upgrade.
#
# Tested with popeye 0.9.0
#
# More about popeye: https://github.com/derailed/popeye