Skip to content

Instantly share code, notes, and snippets.

View thockin's full-sized avatar

Tim Hockin thockin

View GitHub Profile
@thockin
thockin / generate_svc_test_matrix.go
Last active November 20, 2020 00:39
Code to generate all full set of service IP-Family test cases
package main
import (
"fmt"
"strings"
)
func strlist(strs ...string) []string {
return strs
}
@thockin
thockin / generate_svc_create_test_inputs.go
Created November 25, 2020 08:24
Hack to generate testcases for service REST create-test
package main
import (
"fmt"
"strings"
)
func strlist(strs ...string) []string {
return strs
}
@thockin
thockin / ingress-prod-v6.yaml.diff
Created March 28, 2021 18:26
Tweaks I made to k8s.io config (beyond the existing prod yamls) for managed certs
--- ingress-prod-v6.yaml 2021-03-16 16:03:15.916458352 +0000
+++ thockin.ingress-prod-v6.yaml 2021-03-28 18:23:41.981625351 +0000
@@ -4,12 +4,12 @@
name: k8s-io-v6
labels:
app: k8s-io
- namespace: k8s-io-prod
+ namespace: thockin-test-certs
annotations:
- kubernetes.io/ingress.global-static-ip-name: k8s-io-ingress-prod-v6
package main
import (
"bytes"
"testing"
)
//
// Baseline perf for single operations
//
We have an API type which roughly looks like:
```
type ResourcePool struct {
// standard stuff
Devices []Device
}
type Device struct {
Name string