This file contains hidden or 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 | |
set -o errexit | |
set -o nounset | |
set -o pipefail | |
# ensure service account exists | |
kubectl apply -f - >&2 <<EOF | |
apiVersion: v1 | |
kind: ServiceAccount |
This file contains hidden or 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/sh | |
set -o errexit | |
set -o nounset | |
set -o pipefail | |
set -x | |
REVISION=8.212.04-r0 | |
URL=http://dl-cdn.alpinelinux.org/alpine/v3.10/community/armv7/ | |
PACKAGES="openjdk8 openjdk8-jre openjdk8-jre-lib openjdk8-jre-base" |
This file contains hidden or 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
local x = import 'input.tfstate'; | |
local modifyDNSManagedZone(o) = o { | |
primary+: { | |
attributes+: { | |
visibility: 'public', | |
}, | |
}, | |
}; |
This file contains hidden or 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: batch/v1 | |
kind: Job | |
metadata: | |
name: christian-kind | |
spec: | |
template: | |
spec: | |
initContainers: | |
- name: install-docker-bin | |
command: |
This file contains hidden or 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 | |
set -o errexit | |
set -o nounset | |
set -o pipefail | |
account_id=temp | |
mkdir -p ~/.config/gcloud/configurations/ | |
cat > ~/.config/gcloud/configurations/config_default <<EOF |
This file contains hidden or 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 bash | |
set -o errexit | |
set -o nounset | |
set -o pipefail | |
set -o verbose | |
REPO_ROOT=$(dirname "${BASH_SOURCE}")/.. | |
# generate C api |
This file contains hidden or 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/sh | |
set +e | |
set +x | |
NAMESPACE=restic | |
BACKUP_FOLDER=/opt/backup/restic | |
for dir in $(find "${BACKUP_FOLDER}" -type d -maxdepth 1 -mindepth 1); do |
This file contains hidden or 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
go test -json $(go list ./... | grep -v /vendor/) -coverprofile report_coverage.cov > report_gotest.json | |
~/sonar-scanner \ | |
-Dsonar.sources=./ \ | |
-Dsonar.sources.inclusions=**/**.go \ | |
-Dsonar.exclusions="vendor/**" \ | |
-Dsonar.tests=./ \ | |
-Dsonar.test.inclusions=**/**_test.go \ | |
-Dsonar.go.tests.reportPaths="report_gotest.json" \ | |
-Dsonar.go.coverage.reportPaths="report_coverage.cov" |
This file contains hidden or 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
version: '2' | |
services: | |
etcd: | |
image: quay.io/coreos/etcd:v3.1.12 | |
ports: | |
- 2379 | |
volumes: | |
- etcd_data:/etcd_data | |
command: | |
- /usr/local/bin/etcd |
This file contains hidden or 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
package main | |
import "fmt" | |
import "github.com/spf13/cobra" | |
import "os" | |
var works bool | |
func init() { | |
rootCmd.PersistentFlags().BoolVar(&works, "works", false, "testing flag behaviour") |