[wenzhenglin@k01v hello]$ go build -x
WORK=/tmp/go-build482642884
go: found sigs.k8s.io/controller-runtime/pkg/client/config in sigs.k8s.io/controller-runtime v0.0.0-00010101000000-000000000000
go: found sigs.k8s.io/controller-runtime/pkg/manager in sigs.k8s.io/controller-runtime v0.0.0-00010101000000-000000000000
mkdir -p $WORK/b001/
cat >$WORK/b001/_gomod_.go << 'EOF' # internal
package main
import _ "unsafe"
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
diff --git a/internal/store/builder.go b/internal/store/builder.go | |
index 4e15759d..b08e7dee 100644 | |
--- a/internal/store/builder.go | |
+++ b/internal/store/builder.go | |
@@ -26,7 +26,7 @@ import ( | |
"github.com/prometheus/client_golang/prometheus" | |
admissionregistrationv1 "k8s.io/api/admissionregistration/v1" | |
appsv1 "k8s.io/api/apps/v1" | |
- autoscaling "k8s.io/api/autoscaling/v2beta1" | |
+ autoscaling "k8s.io/api/autoscaling/v1" |
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
alias k8sonline="export KUBECONFIG=~/.kube/config; export PS1=\"[\u@\h k8sonline \W]\$ \"" | |
alias k8stest="export KUBECONFIG=~/.kube/config-test; export PS1=\"[\u@\h k8stest \W]\$ \"" | |
getns(){ | |
pod="$1" | |
kubectl get pod --all-namespaces | grep $pod |head -1 | awk '{ print $1 }' | |
} | |
getpod(){ | |
pod="$1" | |
ns="$( getns $pod )" |
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 | |
listfile="$1" | |
if [ "x$listfile" = "x" ]; then | |
echo "Usage: $0 example.list" | |
exit 1 | |
fi | |
basename="$( basename $listfile )" | |
base="$basename-$( date +%Y%m%d_%H%M%S )" |
I hereby claim:
- I am chinglinwen on github.
- I am chinglinwen (https://keybase.io/chinglinwen) on keybase.
- I have a public key ASCVOao9YMU1sM1PTr5nY47Vyo6zRXixHQCxSY7bzOXkMQo
To claim this, I am signing this object: