Skip to content

Instantly share code, notes, and snippets.

View jayunit100's full-sized avatar
🎯
Focusing

jay vyas jayunit100

🎯
Focusing
View GitHub Profile
@jayunit100
jayunit100 / gist:75f28028d21b9b0ae699e797c5a00425
Last active October 28, 2019 17:07
A minimal cayman diff for planning how you will create a new repo from a template.
commit 1544154cbff32c1fd93cf9c3fc7c1d7a599611b2
Author: jay vyas <[email protected]>
Date: Mon Oct 28 10:57:05 2019 -0400
Cleandiff
diff --git a/support/gobuild/__init__.py b/support/gobuild/__init__.py
index 34e96e1..e9f9a5d 100644
--- a/support/gobuild/__init__.py
+++ b/support/gobuild/__init__.py
@jayunit100
jayunit100 / gist:57aae04235da4b9920be9e469adc9ec9
Created October 19, 2019 16:52
BPFDataPlane : wrapper to other stuff
type BPFDataplane interface {
DumpCIDRMap(ifName string, family IPFamily) (map[CIDRMapKey]uint32, error) // bpftool
DumpFailsafeMap() ([]ProtoPort, error) // bpftool
GetCIDRMapID(ifName string, family IPFamily) (int, error)
GetFailsafeMapID() (int, error)
GetMapsFromXDP(ifName string) ([]int, error) // bpftool
GetXDPID(ifName string) (int, error) // ip
GetXDPMode(ifName string) (XDPMode, error) // ip
GetXDPIfaces() ([]string, error) // ip
```
apiVersion: v1
kind: Service
metadata:
annotations:
prometheus.io/scrape: 'true'
labels:
name: prometheus
name: prometheus
spec:
---
apiVersion: v1
kind: Service
metadata:
name: zk-svc
labels:
app: zk-svc
spec:
ports:
- port: 2181
---
apiVersion: v1
kind: Service
metadata:
name: kafka-svc
labels:
app: kafka
spec:
ports:
- port: 9093
---
apiVersion: v1
kind: Service
metadata:
name: zk-svc
labels:
app: zk-svc
spec:
ports:
- port: 2888
this script generates a dependency graph for all the shell scripts in this repo !
_x${SIGN_PACKAGES}_ -> ./sign_packages_deb.sh ;
PATH -> ./sign_packages_deb.sh ;
PF9_QBERT_DIR -> ./runtests.sh ;
PF9_MAIN_DIR -> ./runtests.sh ;
PF9_MAIN_TESTING_DIR -> ./runtests.sh ;
YUM_REPO_DIR -> ./runtests.sh ;
TEST_SETUP_HOOK -> ./runtests.sh ;
DEFAULT_SUITE_DIRS -> ./runtests.sh ;
SDIRS -> ./runtests.sh ;
this script generates a dependency graph for all the shell scripts in this repo !
"x${SIGN_PACKAGES}" -> ./sign_packages_deb.sh ;
PATH -> ./sign_packages_deb.sh ;
PF9_QBERT_DIR -> ./runtests.sh ;
PF9_MAIN_DIR -> ./runtests.sh ;
PF9_MAIN_TESTING_DIR -> ./runtests.sh ;
YUM_REPO_DIR -> ./runtests.sh ;
TEST_SETUP_HOOK -> ./runtests.sh ;
DEFAULT_SUITE_DIRS -> ./runtests.sh ;
SDIRS -> ./runtests.sh ;
This file has been truncated, but you can view the full file.
{"kind":"Event","apiVersion":"audit.k8s.io/v1","level":"Metadata","auditID":"4c114496-36c0-4a09-969c-9dff699ce3cd","stage":"RequestReceived","requestURI":"/api/v1/namespaces/kube-system/pods/kube-apiserver-vagrant","verb":"get","user":{"username":"system:node:vagrant","groups":["system:nodes","system:authenticated"]},"sourceIPs":["10.0.2.15"],"userAgent":"kubelet/v1.13.4 (linux/amd64) kubernetes/c27b913","objectRef":{"resource":"pods","namespace":"kube-system","name":"kube-apiserver-vagrant","apiVersion":"v1"},"requestReceivedTimestamp":"2019-03-08T21:42:29.844394Z","stageTimestamp":"2019-03-08T21:42:29.844394Z"}
{"kind":"Event","apiVersion":"audit.k8s.io/v1","level":"Metadata","auditID":"c1201949-4ca2-4fe8-ae18-55cd22796943","stage":"RequestReceived","requestURI":"/api/v1/namespaces/kube-system/secrets?fieldSelector=metadata.name%3Dweave-net-token-hqlk9\u0026limit=500\u0026resourceVersion=0","verb":"list","user":{"username":"system:node:vagrant","groups":["system:nodes","system:authenticated"]},"sourceIPs":[