Skip to content

Instantly share code, notes, and snippets.

View MHBauer's full-sized avatar
🦀

Morgan Bauer MHBauer

🦀
View GitHub Profile
@MHBauer
MHBauer / gist:387de7d619eee7768f1388b0ec6ec2c3
Created October 5, 2021 21:03
big list for container runtime support of ephemeral containers.
warning as visible, not triggered by specific knowledge
https://github.com/kubernetes/kubernetes/pull/101074
contains a TODO for listing supported runtimes
https://github.com/kubernetes/kubernetes/pull/101074/files#diff-e961c6c329b92e6595113a179583cddc9192bcf00d3ee2ad721b029aff6957bcR284
sharing feature defined as dockershim feature https://github.com/kubernetes/enhancements/tree/master/keps/sig-node/495-pod-pid-namespace#targeting-a-specific-containers-namespace
Only supported by dockershim and containerd > 1.5.0
https://github.com/containerd/containerd/releases/tag/v1.5.0
@MHBauer
MHBauer / memprofile-after.svg
Created May 22, 2019 19:06
memprofile comm demultiplexer tests
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@MHBauer
MHBauer / gist:071f9d26f002ddadbee0a95b608f1f55
Created March 20, 2019 19:46
evmcc deps from `go list`
# direct dependencies
go list -f '{{ .Imports }}' ./evmcc
[crypto/x509 encoding/hex encoding/pem fmt github.com/hyperledger/fabric-chaincode-evm/vendor/github.com/golang/protobuf/proto github.com/hyperledger/fabric-chaincode-evm/vendor/github.com/hyperledger/burrow/acm github.com/hyperledger/fabric-chaincode-evm/vendor/github.com/hyperledger/burrow/binary github.com/hyperledger/fabric-chaincode-evm/vendor/github.com/hyperledger/burrow/crypto github.com/hyperledger/fabric-chaincode-evm/vendor/github.com/hyperledger/burrow/execution/evm github.com/hyperledger/fabric-chaincode-evm/vendor/github.com/hyperledger/burrow/logging github.com/hyperledger/fabric-chaincode-evm/vendor/github.com/hyperledger/burrow/permission github.com/hyperledger/fabric-chaincode-evm/eventmanager github.com/hyperledger/fabric-chaincode-evm/statemanager github.com/hyperledger/fabric-chaincode-evm/vendor/github.com/hyperledger/fabric/common/flogging github.com/hyperledger/fabric-chaincode-evm/vendor/github.com/hyperledger/fabric/core/chain
------------------------------
• Failure [794.035 seconds]
Fab3 Configuration [It] requires user to be set
/Users/mhb/go/src/github.com/hyperledger/fabric-chaincode-evm/integration/fab3/fab3_configuration_test.go:144
Expected an error to have occurred. Got:
<nil>: nil
/Users/mhb/go/src/github.com/hyperledger/fabric-chaincode-evm/integration/fab3/fab3_configuration_test.go:161
@MHBauer
MHBauer / gist:bbd11b7717744a3dd039cc279b980610
Created May 21, 2018 22:22
Kubernetes SIG Service Catalog 2018-05-21 chat
00:05:43 Michael Kibbe: zoom's freaking out for me, brb
00:06:23 mhb: hand(move to prow)
00:07:06 Michael Kibbe: do we know what specifically is taking the longest?
00:07:07 Michael Kibbe: ah
00:07:25 Michael Kibbe: It still a problem, we shouldn't take 50+ min for our tests...
00:07:38 nicholss: Do dat on the phone?
00:07:49 nicholss: who*
00:07:51 Jay Boyd: Doug I think
00:09:41 mhb: hand(link to doc in here)
00:09:50 Carolyn Van Slyck: https://docs.google.com/document/d/1fALrmXkWRz1aXLZgKQciITQ3QsXmUbb249szFgLduhQ/edit
@MHBauer
MHBauer / chat
Created May 15, 2018 01:16
Kubernetes SIG Service Catalog 2018-05-14 chat
13:02:14 From Doug Davis : way off in the distance.... morgan
13:04:11 From Jeremy Rickard : It’s not stateful for sure and would suck if it crashed
13:05:17 From Aaron Schlesinger : Off topic: this is where I was for the past 2 weeks: https://photos.app.goo.gl/jbhRvaxNLkZqP2Fu2
13:05:42 From Jeremy Rickard : +hand
13:06:43 From Doug Davis : +hand
13:06:59 From nicholss : sitting!!
13:07:10 From SIG service-catalog : +hand
@MHBauer
MHBauer / goroutine counts during execution
Last active January 19, 2018 00:17
goroutine stacktraces during service catalog integration test runs
% rg 'goroutine profile: total' newiteststacktracesNOdestroy
1:goroutine profile: total 31
153:goroutine profile: total 100
411:goroutine profile: total 153
667:goroutine profile: total 179
926:goroutine profile: total 233
1195:goroutine profile: total 286
1465:goroutine profile: total 337
1731:goroutine profile: total 389
1997:goroutine profile: total 441
@MHBauer
MHBauer / diff.patch
Created August 9, 2017 23:30
generator diff
diff --git a/pkg/apis/servicecatalog/v1alpha1/zz_generated.deepcopy.go b/pkg/apis/servicecatalog/v1alpha1/zz_generated.deepcopy.go
index 09c1f6a0..5f0ce255 100644
--- a/pkg/apis/servicecatalog/v1alpha1/zz_generated.deepcopy.go
+++ b/pkg/apis/servicecatalog/v1alpha1/zz_generated.deepcopy.go
@@ -168,7 +168,11 @@ func DeepCopy_v1alpha1_BindingStatus(in interface{}, out interface{}, c *convers
if in.Conditions != nil {
in, out := &in.Conditions, &out.Conditions
*out = make([]BindingCondition, len(*in))
- copy(*out, *in)
+ for i := range *in {
## Client side
# kubectl get brokers,serviceclasses,instances,bindings
Error from server (Forbidden): User "system:anonymous" cannot list brokers.servicecatalog.k8s.io at the cluster scope. (get brokers.servicecatalog.k8s.io)
Error from server (Forbidden): User "system:anonymous" cannot list serviceclasses.servicecatalog.k8s.io at the cluster scope. (get serviceclasses.servicecatalog.k8s.io)
Error from server (Forbidden): User "system:anonymous" cannot list instances.servicecatalog.k8s.io in the namespace "default". (get instances.servicecatalog.k8s.io)
Error from server (MethodNotAllowed): the server does not allow this method on the requested resource
## svc cat apiServer side
I0612 19:25:20.595754 1 request.go:991] Request Body: {"kind":"SubjectAccessReview","apiVersion":"authorization.k8s.io/v1beta1","metadata":{"creationTimestamp":null},"spec":{"resourceAttributes":{"verb":"list","group":"servicecatalog.k8s.io","version":"v1alpha1","resource":"brokers"},"user":"system:anonymous","group":["system:
I0612 19:15:06.931025 1 server.go:94] using etcd for storage
I0612 19:15:06.931278 1 run_server.go:97] Preparing to run API server
I0612 19:15:06.931355 1 interface.go:248] Default route transits interface "eth0"
I0612 19:15:06.931492 1 interface.go:93] Interface eth0 is up
I0612 19:15:06.931536 1 interface.go:138] Interface "eth0" has 2 addresses :[10.192.2.5/16 fe80::ece7:69ff:fe66:7bba/64].
I0612 19:15:06.931561 1 interface.go:105] Checking addr 10.192.2.5/16.
I0612 19:15:06.931568 1 interface.go:114] IP found 10.192.2.5
I0612 19:15:06.931576 1 interface.go:144] valid IPv4 address for interface "eth0" found as 10.192.2.5.
I0612 19:15:06.931586 1 interface.go:254] Choosing IP 10.192.2.5
I0612 19:15:11.030633 1 round_trippers.go:398] curl -k -v -XGET -H "User-Agent: apiserver/v0.0.0 (linux/amd64) kubernetes/$Format" -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJrdWJlcm5ldGVzL3NlcnZpY2VhY2NvdW50Iiwia3ViZXJuZXRlcy5pby9zZ