Skip to content

Instantly share code, notes, and snippets.

View as's full-sized avatar

as

View GitHub Profile
@as
as / Dockerfile
Last active June 27, 2018 07:10 — forked from dlsniper/Dockerfile
Dockerfile to test your Go code with the latest version of Go 1.10
FROM golang:1.10
ADD . /go/src/github.com/<user>/<repo>
WORKDIR /go/src/github.com/<user>/<repo>
RUN go test -coverpkg=all -coverprofile cover.out ./...
@as
as / copy-k8s-resources-across-namespaces.sh
Created October 8, 2017 22:40 — forked from simonswine/copy-k8s-resources-across-namespaces.sh
Copying kubernetes resources accross namespaces
kubectl get rs,secrets -o json --namespace old | jq '.items[].metadata.namespace = "new"' | kubectl create-f -