Skip to content

Instantly share code, notes, and snippets.

View pohly's full-sized avatar

Patrick Ohly pohly

View GitHub Profile
go version go1.20.3 linux/amd64
installing golangci-lint and logcheck plugin from hack/tools into /nvme/gopath/src/k8s.io/kubernetes/_output/local/bin
running env LOGCHECK_CONFIG=/nvme/gopath/src/k8s.io/kubernetes/hack/logcheck.conf /nvme/gopath/src/k8s.io/kubernetes/_output/local/bin/golangci-lint run --config=/nvme/gopath/src/k8s.io/kubernetes/hack/golangci-strict.yaml ./...
build/pause/windows/wincat/wincat.go:55:18: Error return value of `conn.CloseRead` is not checked (errcheck)
conn.CloseRead()
^
build/pause/windows/wincat/wincat.go:67:19: Error return value of `conn.CloseWrite` is not checked (errcheck)
conn.CloseWrite()
^
test/e2e_node/environment/conformance.go:44:10: Error return value of `flag.Set` is not checked (errcheck)
@pohly
pohly / update-release-tools-squash.sh
Created November 10, 2022 14:38
Update script for release-tools in github.com repos
#!/bin/sh -x
die () {
echo >&2 "\nERROR: $@\n"
exit 1
}
FILTER_BRANCH_SQUELCH_WARNING=1
export FILTER_BRANCH_SQUELCH_WARNING
Hello!
I would like to ask for an exception that allows
https://github.com/kubernetes/kubernetes/pull/111023 to be merged into
1.26 after the code freeze.
Enhancement name: dynamic resource allocation
Enhancement status: alpha
SIG: Node, with Scheduling as participating SIG
k/enhancements repo issue #: #3063
@pohly
pohly / status.md
Last active October 27, 2022 12:20
Logging migration status in Kubernetes
@pohly
pohly / gist:62fb5cb1e2feb06af97fa52e8b790ecd
Last active April 29, 2022 17:08
configuring gopls for use with Kubernetes + Emacs over ssh
# In the Kubernetes root, create a k8s-go.work file.
(echo "go 1.18"; echo; echo "use ("; find . -name go.mod | grep -v -e '^./vendor' -e '^./_output' | sed -e 's;\(.*\)/go.mod;\t\1;' | sort; echo ")" ) >k8s-go.work
# Enable workspace mode by default:
ln -s k8s-go.work go.work
# Disable workspace mode again:
rm go.work
# Disable it for some commands which don't work with it:
/*
Copyright 2018 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and