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
#!/usr/bin/env python3 | |
import argparse | |
import sys | |
import logging | |
import subprocess | |
log = logging.getLogger(__name__) | |
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
# | |
# Automatically generated file; DO NOT EDIT. | |
# Linux/x86 5.12.0 Kernel Configuration | |
# | |
CONFIG_CC_VERSION_TEXT="gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0" | |
CONFIG_CC_IS_GCC=y | |
CONFIG_GCC_VERSION=90300 | |
CONFIG_CLANG_VERSION=0 | |
CONFIG_LD_IS_BFD=y | |
CONFIG_LD_VERSION=23400 |
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
#!/bin/bash | |
# Create demo repo | |
rm -rf /tmp/demo | |
mkdir /tmp/demo && cd /tmp/demo | |
git init | |
# Create upstream branch | |
git checkout -b upstream | |
for p in a b c d e f g h i j k l m n o p q r s t u v w x y z a1 a2 a3 a5 |
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: rbac.istio.io/v1alpha1 | |
kind: ServiceRole | |
metadata: | |
name: access-server | |
namespace: test-istio-rbac | |
spec: | |
rules: | |
- services: | |
- 'server.*' |
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
name: Go | |
on: | |
pull_request: | |
branches: [ master ] | |
jobs: | |
ci: | |
name: CI |
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
name: Greet Everyone | |
# This workflow is triggered on pushes to the repository. | |
on: [push] | |
jobs: | |
build: | |
# Job name is Greeting | |
name: Greeting | |
# This job runs on Linux | |
runs-on: ubuntu-latest |
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
import goyaml "github.com/go-yaml/yaml" | |
func SplitYAML(resources []byte) ([][]byte, error) { | |
dec := goyaml.NewDecoder(bytes.NewReader(resources)) | |
var res [][]byte | |
for { | |
var value interface{} | |
err := dec.Decode(&value) |
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
#!/usr/bin/env python3 | |
import os | |
import sys | |
from subprocess import run | |
deps = [ | |
"k8s.io/api@kubernetes-{version}", | |
"k8s.io/apiextensions@kubernetes-{version}", | |
"k8s.io/apimachinery@kubernetes-{version}", |
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
#!/usr/bin/env python3 | |
import argparse | |
import sys | |
import os | |
template = """ | |
apiVersion: batch/v1 | |
kind: Job | |
metadata: | |
name: {d.name}-{} |
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
#!/bin/bash | |
HOSTFS="/mnt/hostfs" | |
function sleep_forever() { | |
while true; do sleep 100; done | |
} | |
function setup_kubectl() { | |
# Setup kubectl |
NewerOlder