Skip to content

Instantly share code, notes, and snippets.

View scottrigby's full-sized avatar
🤓

Scott Rigby scottrigby

🤓
View GitHub Profile
@scottrigby
scottrigby / coc-pr.sh
Created November 10, 2018 05:27
Quick helper for making Helm Code of Conduct PRs
#! /bin/bash
PROJECT=$1
ORG=${2:-helm}
BRANCH=${3:-helm-coc}
SOURCE=${4:-~/development/Go/src/github.com/helm/chart-testing/code-of-conduct.md}
FORK=$(whoami)
FILE=code-of-conduct.md
GIT_MESSAGE_HEAD="Helm code of conduct"
GIT_MESSAGE_BODY="See https://github.com/helm/chart-testing/issues/48"
@scottrigby
scottrigby / spin.sh
Created April 1, 2019 01:50
Shell script to begin or end a spinner background process
#!/bin/sh
help() {
cat << EOF
spin(1)
NAME
spin - begin or end a spinner background process
SYNOPSIS
@scottrigby
scottrigby / aws_vault_exec.bash
Created July 19, 2019 17:17
aws-vault assume role prompt exec for ~/.bash_profile
function aws_vault_exec() {
if ! which aws-vault >/dev/null; then
echo You must have 'aws-vault' installed. See https://github.com/99designs/aws-vault/
return 1
fi
local list=$(grep '^[[]profile' <~/.aws/config | awk '{print $2}' | sed 's/]$//')
if [[ -z $list ]]; then
echo You must have AWS roles and profiles set up to use this. See https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use_switch-role-cli.html
return 1
fi
@scottrigby
scottrigby / keybase-team-encrypted-fs.md
Last active August 10, 2024 23:35
🔐 Keybase team encrypted file sharing

🔐 Keybase team encrypted file sharing

Keybase is a cryptographically secure, popular tool to verify identities, and provide secure groups, files and chats.

We are using keybase filesystem (KBFS) for securely sharing encrypted files (containing keys, passwords, etc). This announcement explains the high-level, this documentation page goes into further detail, and the KBFS Crypto Spec explains how their cryptography works (see the link to Saltpack, which is used for the encryption format).

Team file sharing directories are mounted to /Volumes/Keybase/team/TEAM.NAME. For example, the helm_project file sharing would be mounted to /Volumes/Keybase/team/helm_project (see Known issues and workarounds below).

Prerequisites

@scottrigby
scottrigby / git-docker-tag-formats.md
Created September 6, 2019 14:22
git docker tag formats
#!/bin/bash
# See https://github.com/helm/charts/issues/23971
settings() {
set -eu
if [ "${DEBUG:-}" = 1 ]; then
export PS4='+ ($LINENO) '
set -x
fi
#!/bin/bash
settings() {
set -eu
if [ "${DEBUG:-}" = 1 ]; then
export PS4='+ ($LINENO) '
set -x
fi
}
@scottrigby
scottrigby / demo.md
Last active January 14, 2021 06:01
Demo: Flux Helm Operator -> Controller Migration

Demo: Flux Helm Operator -> Controller Migration

  1. Create local cluster

    kind create cluster
  2. Barebones flux2 install for demo

⚠️ Work In Progress

Public Timetable for Flux 1 to 2 Migration & Support

Goal: A simple, memorable, canonical, public timetable to be used for community communication (READMEs, blog posts, etc), not for internal planning.

Purpose: State our commitment to end users to improve their experience in knowing how and when to plan their own infra decisions related to Flux.

When Flux 2 Flux 1
@scottrigby
scottrigby / hands-on-gitops-patterns-for-helm-users.md
Last active December 27, 2022 18:12
Hands-On GitOps Patterns for Helm Users

Hands-On GitOps Patterns for Helm Users

  1. Install Flux CLI and Kind:

    $ brew reinstall flux kind
    $ kind --version
    kind version 0.10.0
    $ flux --version
    flux version 0.9.1