Skip to content

Instantly share code, notes, and snippets.

View willbeason's full-sized avatar
🔃
Solving Differential Equations

Will Beason willbeason

🔃
Solving Differential Equations
View GitHub Profile
~$ kubectl edit ns delete-me --v=9
I0425 13:11:13.132076 131153 loader.go:359] Config loaded from file [home]/.kube/config
I0425 13:11:13.140314 131153 round_trippers.go:419] curl -k -v -XGET -H "Accept: application/json" -H "User-Agent: kubectl/v1.14.1 (linux/amd64) kubernetes/b739410" 'https://[host]/api/v1/namespaces/delete-me'
I0425 13:11:13.300048 131153 round_trippers.go:438] GET https://[host]/api/v1/namespaces/delete-me 200 OK in 159 milliseconds
I0425 13:11:13.300086 131153 round_trippers.go:444] Response Headers:
I0425 13:11:13.300097 131153 round_trippers.go:447] Audit-Id: 9d158540-223f-4461-a2bd-284bb21e7666
I0425 13:11:13.300112 131153 round_trippers.go:447] Content-Type: application/json
I0425 13:11:13.300124 131153 round_trippers.go:447] Content-Length: 552
I0425 13:11:13.300136 131153 round_trippers.go:447] Date: Thu, 25 Apr 2019 20:11:13 GMT
I0425 13:11:13.300200 131153 request.go:942] Response Body: {"kind":"Namespace","apiVersion":"v1","metadata":{"name":"delete-me
~$ kubectl edit ns delete-me --v=9
I0425 13:24:22.904232 140033 loader.go:359] Config loaded from file [home]/.kube/config
I0425 13:24:22.911721 140033 round_trippers.go:419] curl -k -v -XGET -H "User-Agent: kubectl/v1.14.1 (linux/amd64) kubernetes/b739410" -H "Accept: application/json" 'https://[host]/api/v1/namespaces/delete-me'
I0425 13:24:23.112638 140033 round_trippers.go:438] GET https://[host]/api/v1/namespaces/delete-me 200 OK in 200 milliseconds
I0425 13:24:23.112675 140033 round_trippers.go:444] Response Headers:
I0425 13:24:23.112695 140033 round_trippers.go:447] Date: Thu, 25 Apr 2019 20:24:23 GMT
I0425 13:24:23.112712 140033 round_trippers.go:447] Audit-Id: f6aa64e5-2099-4539-a5d8-576d93ce571d
I0425 13:24:23.112728 140033 round_trippers.go:447] Content-Type: application/json
I0425 13:24:23.112745 140033 round_trippers.go:447] Content-Length: 552
I0425 13:24:23.112804 140033 request.go:942] Response Body: {"kind":"Namespace","apiVersion":"v1","metadata":{"name":"delete-me
~$ cat ns.json
{
"kind": "Namespace",
"apiVersion": "v1",
"metadata": {
"name": "delete-me",
"selfLink": "/api/v1/namespaces/delete-me",
"uid": "5a770e86-679b-11e9-b402-0242de00befd",
"resourceVersion": "1225",
"creationTimestamp": "2019-04-25T20:47:34Z",
~$ kubectl get ns delete-me
NAME STATUS AGE
delete-me Terminating 3h39m
~$ cat ns.json
{
"kind": "Namespace",
"apiVersion": "v1",
hack$ go run smoketest.go
I1210 11:41:19.908940 3818346 smoketest.go:139] Run: Deploying CRDs
2020/12/10 11:41:19 exec: make -C ../examples/guestbook-operator install
make: Entering directory '/usr/local/google/home/willbeason/kubebuilder-declarative-pattern/examples/guestbook-operator'
/usr/local/google/home/willbeason/go/bin/controller-gen "crd:trivialVersions=true" rbac:roleName=manager-role webhook paths="./..." output:crd:artifacts:config=config/crd/bases
kustomize build config/crd | kubectl apply -f -
customresourcedefinition.apiextensions.k8s.io/guestbooks.addons.example.org configured
make: Leaving directory '/usr/local/google/home/willbeason/kubebuilder-declarative-pattern/examples/guestbook-operator'
I1210 11:41:21.549846 3818346 smoketest.go:143] Run: Deploying Operators
2020/12/10 11:41:21 exec: make -C ../examples/guestbook-operator docker-build docker-push deploy
============= N = 32
goos: windows
goarch: amd64
pkg: github.com/willbeason/extract-wikipedia/pkg/arrays
cpu: Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz
Benchmark_CopyClone-8 434476585 2.642 ns/op
Benchmark_ConvertClone-8 1000000000 0.9713 ns/op
============= N = 64
Benchmark_CopyClone-8 362198325 3.123 ns/op
============= N = 32
goos: windows
goarch: amd64
pkg: github.com/willbeason/extract-wikipedia/pkg/arrays
cpu: Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz
Benchmark_CopyClone-8 448114166 2.644 ns/op
Benchmark_ConvertClone-8 1000000000 0.7849 ns/op
============= N = 64
Benchmark_CopyClone-8 398739318 3.019 ns/op
panic: cannot deep copy int
goroutine 1 [running]:
k8s.io/apimachinery/pkg/runtime.DeepCopyJSONValue({0x16bc1a0, 0x27a2578})
/usr/local/google/home/willbeason/go/src/github.com/open-policy-agent/gatekeeper/vendor/k8s.io/apimachinery/pkg/runtime/converter.go:469 +0x273
k8s.io/apimachinery/pkg/runtime.DeepCopyJSONValue({0x1714aa0, 0xc0005c24e0})
/usr/local/google/home/willbeason/go/src/github.com/open-policy-agent/gatekeeper/vendor/k8s.io/apimachinery/pkg/runtime/converter.go:453 +0x345
k8s.io/apimachinery/pkg/runtime.DeepCopyJSONValue({0x1682300, 0xc0004ffc50})
/usr/local/google/home/willbeason/go/src/github.com/open-policy-agent/gatekeeper/vendor/k8s.io/apimachinery/pkg/runtime/converter.go:463 +0x2bd
k8s.io/apimachinery/pkg/runtime.DeepCopyJSONValue({0x1714aa0, 0xc0005c24b0})
category:butte county, california
category:colusa county, california
category:fresno county, california
category:geography of butte county, california
category:geography of colusa county, california
category:geography of fresno county, california
category:geography of glenn county, california
category:geography of kern county, california
category:geography of kings county, california
category:geography of madera county, california
category:1991 uprisings in iraq
category:aftermath of the gulf war
category:aftermath of the september 11 attacks
category:al-qaeda
category:al-qaeda activities
category:al-qaeda attacks
category:anti-government factions of the syrian civil war
category:anti-isil factions
category:anti-isil factions in iraq
category:anti-isil factions in syria