Skip to content

Instantly share code, notes, and snippets.

View matt-dres's full-sized avatar

Matt Dresser matt-dres

  • VMware
  • California
View GitHub Profile
@matt-dres
matt-dres / aks_tap_login.sh
Last active October 20, 2022 22:22
AKS TAP Login
#!/bin/bash
set -eo pipefail
source "${HOME}"/.credentials
if [[ -z "$1" ]] || [[ -z "$2" ]]; then
echo "Missing input parameters for AKS resource group or name"
exit 1
fi
@matt-dres
matt-dres / add_git_repo_support.sh
Created December 15, 2022 23:34
Add optional Git repo creation to `tap-values.yaml`
#!/bin/bash
set -euo pipefail
source ${HOME}/.git_repo_creds
# Parenthesis create an array that's split on spaces
OUTPUT=($(tanzu package installed list -n tap-install | grep -i "tap.tanzu.vmware.com"))
VERSION=${OUTPUT[2]}
@matt-dres
matt-dres / install_certs_mac.sh
Created December 15, 2022 23:50
Download & install selfsigned certs from TAP onto macOS
#!/bin/bash
set -euo pipefail
#####
# Simple bash script to retrieve the selfsigned cert from TAP and install it locally on macOS
#####
echo "--- Fetching TAP Ingress Certificate ---"
kubectl get secret -n cert-manager tap-ingress-selfsigned-root-ca -o yaml | yq '.data."ca.crt"' | base64 -d > ca.crt
@matt-dres
matt-dres / generate_from_local_demo.sh
Created December 21, 2022 20:19
Demo script showcasing local accelerator testing using `demo-magic`
#!/bin/bash
# Clone this repo to have access to the script in the next line: https://github.com/paxtonhare/demo-magic
. demo-magic/demo-magic.sh
source $(pwd)/.demo-env
clear
pei "cd application-accelerator-samples"