Skip to content

Instantly share code, notes, and snippets.

View pennyscissors's full-sized avatar

Steven C pennyscissors

  • California, USA
View GitHub Profile
@pennyscissors
pennyscissors / create-diff-old-to-new-version.sh
Last active February 1, 2023 21:12
Helper scripts to validate Rancher chart releases.
#!/bin/bash
UPSTREAM_REMOTE=upstream
UPSTREAM_BRANCH=release-v2.6
git fetch ${UPSTREAM_REMOTE}
mv charts to-be-released
git checkout ${UPSTREAM_REMOTE}/${UPSTREAM_BRANCH} -- charts
rm -rf diffs_in_latest_version
@pennyscissors
pennyscissors / add-annotations.sh
Last active February 16, 2022 20:58
Add annotations to a specific rancher chart
#!/bin/bash
# Known issue: yq will not preseve the doc's format https://github.com/mikefarah/yq/issues/462
set -e
cd $(dirname $0)
cd ..
if [[ -z ${CHART} ]] || [[ -z ${VERSION} ]] || [[ $# -lt 1 ]]; then
@pennyscissors
pennyscissors / setup-rancher-single-node.sh
Last active September 30, 2021 05:57
Setup Rancher single node
#!/bin/bash
# Install docker
curl -L https://releases.rancher.com/install-docker/20.10.sh | sh
usermod -aG docker ubuntu
# Install kubectl
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl