This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: audit.k8s.io/v1beta1 # This is required. | |
kind: Policy | |
# Don't generate audit events for all requests in RequestReceived stage. | |
omitStages: | |
- "RequestReceived" | |
rules: | |
- level: None | |
verbs: ["watch", "get", "list"] | |
# Log pod changes at RequestResponse level | |
- level: RequestResponse |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is a weird way of telling Travis to use the fast container-based test | |
# runner instead of the slow VM-based runner. | |
sudo: false | |
language: go | |
# Force-enable Go modules. This will be unnecessary when Go 1.12 lands. | |
env: | |
- GO111MODULE=on |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: config.istio.io/v1alpha2 | |
kind: listchecker | |
metadata: | |
name: whitelist | |
spec: | |
# providerUrl: ordinarily black and white lists are maintained | |
# externally and fetched asynchronously using the providerUrl. | |
overrides: ["v1", "v2"] # overrides provide a static list | |
blacklist: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get update | |
sudo apt-get install \ | |
linux-image-extra-$(uname -r) \ | |
linux-image-extra-virtual | |
sudo apt-get install \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
software-properties-common |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func channalselectTest(){ | |
runtime.GOMAXPROCS(2) | |
ch1 := make(chan int) | |
ch2 := make(chan int) | |
go pump(ch1,2) | |
go pump(ch2,5) | |
go suck(ch1,ch2) | |
time.Sleep(1e9) | |
} |