Skip to content

Instantly share code, notes, and snippets.

Avatar

chinglin chinglinwen

View GitHub Profile
View error.md

go build error

[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"
View kube-state-metrics-vpa-issue.patch
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"
@chinglinwen
chinglinwen / k8s-shortcuts.sh
Last active Mar 15, 2019
k8s shortcuts to simplify kubectl command for daily use
View k8s-shortcuts.sh
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 )"
@chinglinwen
chinglinwen / image-convert.sh
Last active Nov 21, 2018
Convert all images to dockerhub, in case docker pull is blocked for the origin url.
View image-convert.sh
#!/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 )"
View keybase.md

Keybase proof

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: