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
assert::var() { | |
if [ -z "${1:-}" ]; then | |
log::error "Argument required" | |
return 1 | |
fi | |
set +u | |
if [ -z "${!1}" ]; then | |
log::error "${1} required, nothing given" | |
return 1 |
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 ruby | |
# vim: set expandtab sts=2 tw=2 sw=2: | |
$stdout.sync = true | |
$stderr.sync = true | |
require 'octokit' | |
require 'dalli' | |
require 'json' | |
require 'time' |
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: v1 | |
kind: ConfigMap | |
metadata: | |
name: scylla | |
data: | |
readiness-probe: | | |
#!/usr/bin/env bash | |
set -euo pipefail |
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
let AWS = require('aws-sdk'); | |
let DB = require('./db'); | |
class Configuration { | |
constructor() { | |
this.bucket = process.env.S3_BUCKET; | |
} | |
get dynamoDBclient() { | |
return new AWS.DynamoDB({ |
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 bash | |
set -xeuo pipefail | |
main() { | |
# TODO: add all your desired regions here | |
local -a regions=(ap-south-1) | |
for region in "${regions[@]}"; do | |
aws --region "${region}" cloudwatch put-metric-alarm \ |
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
steps: | |
- name: ':pray: Test non-production' | |
command: script/ci/test | |
agents: | |
queue: 'elastic' | |
env: | |
STAGES: sandbox | |
branches: '!master' | |
artifact_paths: 'tmp/log/**/*' |
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 bash | |
# This script is a workaround for https://github.com/kubernetes/helm/issues/2288. | |
# helm install --wait should do everything this script does. It should be deleted | |
# when the bug is fixed. | |
set -euo pipefail | |
main() { | |
local counter=0 release timeout pods |
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
counter=0 | |
while [ "${counter}" -lt "${timeout}" ]; do | |
pods="$(kubectl get pods \ | |
-l "release=${release}" \ | |
-o 'custom-columns=NAME:.metadata.name,STATUS:.status.phase,Node:.spec.nodeName' \ | |
-n "${KUBE_NAMESPACE}" \ | |
--context "${KUBE_CONTEXT}" \ | |
| tail -n +2 | |
)" |
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 bash | |
set -euo pipefail | |
main() { | |
local market stage branch build_number src_directory destination_directory | |
local name version chart_version | |
version="$(cat 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
{{- $stage := .Values.stage }} | |
{{- range $pod := .Values.topology.pods }} | |
--- | |
apiVersion: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
name: '{{ template "fullname" $ }}-{{ $pod.name | replace "_" "-" }}-{{ $pod.tier }}' | |
labels: | |
release: "{{ $.Release.Name }}" | |
chart: '{{ $.Chart.Name }}-{{ $.Chart.Version | replace "+" "-" }}' |
NewerOlder