Skip to content

Instantly share code, notes, and snippets.

Avatar

Zachary Loeber zloeber

View GitHub Profile
View gist:e90da169dec0ec0c96fffd457ef5b33a
#!/bin/bash
SC_NAME=${SC_NAME:-"Service Connection Name"}
KEYVAULTNAME=${KEYVAULTNAME:-"keyvault"}
AZ_SUBSCRIPTION=${AZ_SUBSCRIPTION:-"Azure Subscription"}
AZ_SUBSCRIPTION_ID=${AZ_SUBSCRIPTION_ID:-"Azure Subscription ID"}
ADO_ORG=${ADO_ORG:-"https://dev.azure.com/myorgname"}
ADO_PROJECT=${ADO_PROJECT:-"MyProject"}
SECRET_TEMPLATE=${SECRET_TEMPLATE:-"./secret-var-group.tpl"}
echo "STAGE: ${STAGE}"
View gist:1a983fe6747666abaa30d389f66ae99b
{
"authorized": true,
"description": "${description}",
"name": "${name}",
"type": "AzureKeyVault",
"variableGroupProjectReferences": [
{
"projectReference": {
"id": "${project_id}",
"name": "${project_name}"
View gist:445233e082f0b4252563e5fc368baffc
{
"authorized": true,
"description": "SuperSecret Variable Group (SuperSecretVault)",
"name": "SuperSecret",
"type": "AzureKeyVault",
"variableGroupProjectReferences": [
{
"projectReference": {
"id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"name": "MyADOProject"
View gist:a24ddd928e11f444815c11a5f9b25d63
AZ_SUBSCRIPTION=<subscription name>
AZ_SUBSCRIPTION_ID=<subscription id>
ADO_ORG=<ADO Org Name>
ADO_PROJECT=<ADO Project Name>
KEYVAULTNAME=<Key Vault to link ADO Group with>
SC_NAME=<service connection name>
View gist:097771685b5be81203fab3f3f796dd2f
helm plugin install https://github.com/aslafy-z/helm-git.git
@zloeber
zloeber / gist:991ba9c30adabd8041aea0e918f08493
Created Jan 2, 2020
helm: helm-namespace plugin install
View gist:991ba9c30adabd8041aea0e918f08493
plugin install https://github.com/thomastaylor312/helm-namespace
@zloeber
zloeber / gist:b8e2f06a4198ef3a2db81532838d6a03
Created Jan 2, 2020
Helmfile: presync hook namespace creation
View gist:b8e2f06a4198ef3a2db81532838d6a03
- events: ["presync"]
showlogs: true
command: "/bin/sh"
args:
- "-c"
- >-
kubectl get namespace "{{`{{ .Release.Namespace }}`}}" >/dev/null 2>&1 || kubectl create namespace "{{`{{ .Release.Namespace }}`}}";
View gist:e280030aa819be22653809bb1d353c0d
helmDefaults:
tillerless: true
tillerNamespace: platform
atomic: false
verify: false
wait: true
timeout: 1200
recreatePods: true
force: true
View gist:a55506c4f5ce17be6bc84a649ab0ca65
git checkout master
git merge develop
git add --all . && git commit -m 'post: some awesome content approved to publish'