Skip to content

Instantly share code, notes, and snippets.

$ make codegen
./hack/update-codegen.sh
++ go env GOPATH
+ export GOPATH=/home/maru/go
+ GOPATH=/home/maru/go
++ dirname ./hack/update-codegen-clients.sh
+ SCRIPT_ROOT=./hack/..
++ cd ./hack/..
++ go list -f '{{.Dir}}' -m k8s.io/code-generator
+ CODEGEN_PKG=/home/maru/go/pkg/mod/github.com/sttts/kubernetes/staging/src/k8s.io/code-generator@v0.0.0-20220217204355-7e3b9b0557ff
I0126 07:54:39.981101 646265 specsyncer.go:166] Created object services/existing-service
I0126 07:55:11.773447 646265 trace.go:205] Trace[371212460]: "Create" url:/apis/apiresource.kcp.dev/v1alpha1/apiresourceimports,user-agent:Go-http-client/2.0,audit-id:041e3cab-fb42-42ae-a070-499d1841114\
8,client:192.168.0.124,accept:application/json, */*,protocol:HTTP/2.0 (26-Jan-2022 07:54:37.772) (total time: 34000ms):
Trace[371212460]: [34.000586154s] [34.000586154s] END
E0126 07:55:11.778837 646265 apiimporter.go:195] error creating APIResourceImport deployments.us-east1.v1.apps: Timeout: request did not complete within requested timeout - context deadline exceeded
I0126 07:55:18.192298 646265 trace.go:205] Trace[1289088227]: "Create" url:/apis/apiresource.kcp.dev/v1alpha1/apiresourceimports,user-agent:Go-http-client/2.0,audit-id:13e9524a-b328-4ccb-b31e-3a20b25c90\
eb,client:192.168.0.124,accept:application/json, */*,protocol:HTTP/2.0 (26-Jan-2022 07:55:11.780) (total time: 6412ms):
Trace[1289088227]: ---"Object
real 0m51.489s
user 10m20.097s
sys 0m46.914s
go test -race -count 5 -coverprofile=coverage.txt -covermode=atomic ./...
? github.com/kcp-dev/kcp [no test files]
? github.com/kcp-dev/kcp/cmd/cluster-controller [no test files]
? github.com/kcp-dev/kcp/cmd/compat [no test files]
? github.com/kcp-dev/kcp/cmd/crd-puller [no test files]
? github.com/kcp-dev/kcp/cmd/deployment-splitter [no test files]
real 4m1.611s
user 17m17.400s
sys 0m49.401s
go test -race -count 5 -coverprofile=coverage.txt -covermode=atomic ./...
? github.com/kcp-dev/kcp [no test files]
? github.com/kcp-dev/kcp/cmd/cluster-controller [no test files]
? github.com/kcp-dev/kcp/cmd/compat [no test files]
? github.com/kcp-dev/kcp/cmd/crd-puller [no test files]
? github.com/kcp-dev/kcp/cmd/deployment-splitter [no test files]
@marun
marun / mg-to-loki.sh
Last active January 28, 2021 06:28
WIP script to ingest must-gather to loki
/usr/bin/env bash |
@marun
marun / gist:dee8dfc702357504411a71909388edcc
Created January 12, 2021 04:11
sno bootstrap failure
Jan 12 04:09:48 master1 bootkube.sh[2253]: [#4977] failed to create some manifests:
Jan 12 04:09:48 master1 bootkube.sh[2253]: "99_openshift-cluster-api_master-machines-0.yaml": unable to get REST mapping for "99_openshift-cluster-api_master-machines-0.yaml": no matches for kind "Machine" in version "machine.openshift.io/v1beta1"
Jan 12 04:09:48 master1 bootkube.sh[2253]: "99_openshift-cluster-api_worker-machineset-0.yaml": unable to get REST mapping for "99_openshift-cluster-api_worker-machineset-0.yaml": no matches for kind "MachineSet" in version "machine.openshift.io/v1beta1"
Jan 12 04:09:48 master1 bootkube.sh[2253]: "99_openshift-machineconfig_99-master-ssh.yaml": unable to get REST mapping for "99_openshift-machineconfig_99-master-ssh.yaml": no matches for kind "MachineConfig" in version "machineconfiguration.openshift.io/v1"
Jan 12 04:09:48 master1 bootkube.sh[2253]: "99_openshift-machineconfig_99-worker-ssh.yaml": unable to get REST mapping for "99_openshift-machineconfig_99-worker-ssh.yaml": no matc
@marun
marun / openshift-openapi-spec.json
Created October 21, 2020 02:29
OpenShift 4.6 OpenAPI 2.0 Specification
This file has been truncated, but you can view the full file.