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/sh | |
CHART="${CHART:-${bamboo_chart}}" | |
if [ -z "${CHART}" ] ; then | |
echo "CHART must be defined." | |
exit 1 | |
fi | |
HELM_PREFIX=$(echo ${bamboo_planKey} | tr '[:upper:]' '[:lower:]') | |
HELM_NAME="${HELM_PREFIX}-${HELM_NAME:-${bamboo_deploy_environment}}" | |
HELM_BRANCH="${HELM_BRANCH:-"stable"}" |
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
class PyBootkube: | |
def __init__(self, etcd_server, api_server): | |
self.etcd_server = etcd_server | |
self.api_server = api_server | |
def private_key_to_str(self, key): | |
return key.private_bytes( | |
encoding=serialization.Encoding.PEM, | |
format=serialization.PrivateFormat.TraditionalOpenSSL, |
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
please(){ | |
$@ | |
} |
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
swagger: "2.0" | |
info: | |
description: "This is the ALM Kubernetes Control Plane. This handles cluster lifecycle and deployments. This tool is what our pipeline interacts with to deploy applications" | |
version: "0.1.0" | |
title: "ALM Cluster Controler Plane" | |
termsOfService: "http://clouaplatform.cdk.com/terms" | |
contact: | |
email: "CloudPlatform@cdk.com" | |
license: | |
name: "MIT" |
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 | |
GODEP_SAVE="godep save ./..." | |
OUTPUT=$($GODEP_SAVE 2>&1) | |
while [ "$?" -ne 0 ] ; do | |
echo "going to get package ${OUTPUT}" | |
PACKAGE=$(echo "$OUTPUT" | awk '{print $3}' | sed -e 's/[(|)]//g') | |
godep get "${PACKAGE}" | |
OUTPUT=$($GODEP_SAVE 2>&1) | |
done |
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
package main | |
import ( | |
"flag" | |
"log" | |
"net/http" | |
"regexp" | |
"github.com/elazarl/goproxy" | |
"github.com/aws/aws-sdk-go/aws" |
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
package main | |
import ( | |
"flag" | |
"log" | |
"net/http" | |
"regexp" | |
"github.com/elazarl/goproxy" | |
) |
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
# *run kubectl proxy* | |
# This guide assumes the third party api is: oidc.coreos.com/v1/ | |
# Modify accordingly | |
curl -s http://localhost:8001/apis/oidc.coreos.com/v1/ | jq -r '.resources[].name' | awk '{ print "http://localhost:8001/apis/oidc.coreos.com/v1/namespaces/tectonic-system/"$0 }' | xargs curl | jq |
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/sh | |
# Stolen from https://github.com/kelseyhightower/kubernetes-the-hard-way/blob/master/docs/02-certificate-authority.md | |
HOME=$(dirname $0) | |
BIN="${HOME}/bin" | |
log() | |
{ | |
echo "===== $@ =====" |
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
var x = 3 | |
// remote call | |
var y = addthree(x) | |
console.log (y) |