$ kubectl create --context=$CTX_CLUSTER2 namespace bar
$ kubectl label --context=$CTX_CLUSTER2 namespace bar istio-injection=enabled
$ kubectl apply --context=$CTX_CLUSTER2 -n bar -f samples/httpbin/httpbin.yaml
I hereby claim:
- I am canthefason on github.
- I am canthefason (https://keybase.io/canthefason) on keybase.
- I have a public key whose fingerprint is 328D D6D5 4917 8255 A812 A67B 08F0 2849 8E91 2C62
To claim this, I am signing this object:
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 | |
SALT_MASTER='172.20.0.9' | |
DOCKER_OPTS='' | |
readonly DOCKER_STORAGE='aufs' | |
apt-get update | |
apt-get install --yes curl |
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 | |
mkdir -p /var/cache/kubernetes-install | |
cd /var/cache/kubernetes-install | |
readonly SALT_MASTER='172.20.0.9' | |
readonly INSTANCE_PREFIX='kubernetes' | |
readonly NODE_INSTANCE_PREFIX='kubernetes-minion' | |
readonly CLUSTER_IP_RANGE='10.244.0.0/16' | |
readonly ALLOCATE_NODE_CIDRS='true' | |
readonly SERVER_BINARY_TAR_URL='https://s3.amazonaws.com/kubernetes-artifact/devel/kubernetes-server-linux-amd64.tar.gz' | |
readonly SALT_TAR_URL='https://s3.amazonaws.com/kubernetes-artifact/devel/kubernetes-salt.tar.gz' |
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
go test -coverprofile=cover.out | |
go tool cover -html=cover.out |
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
// for checking if an operand implements Context interface | |
contextType := reflect.TypeOf((*context.Context)(nil)).Elem() | |
mtype.Implements(contextType) |
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
curl -i -N -H "Connection: Upgrade" -H "Upgrade: websocket" -H "Host: localhost:3001/ws" -H "Sec-Websocket-Key: hey" -H "Sec-Websocket-Version: 13" http://localhost:3001/ws |
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
# Compile the test binary as pkg.test | |
go test -c | |
# Run the given test | |
./pkg.test -test.run=TestSomething | |