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
#!/bin/bash | |
# get helm secrets from Kubernetes cluster | |
SECRET=$(kubectl get secret $1 -o jsonpath='{ .data.release }' ) | |
# decode the secrets | |
DECODED_SECRET=$(echo $SECRET | base64 -d | base64 -d | gunzip -c ) | |
# parse the decoded secrets, pulling out the templates and removing whitespace | |
DATA=$(echo $DECODED_SECRET | jq '.chart.templates[]' | tr -d '[:space:]' ) |
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
#!/usr/bin/python | |
import requests | |
import sys | |
import json | |
import pprint | |
from time import sleep | |
#This is the user ID going on vacation | |
vacationing_user = 'PR2D0IM' |