Skip to content

Instantly share code, notes, and snippets.

@adamreese
adamreese / gist:c7b8d75f3bb7305fbed4d5c32bc9d4f9
Created July 11, 2017 20:18
helm sort error in unit tests
helm on fix/2630-helm-home [!]
❯ make test-unit
==> Running unit tests <==
HELM_HOME=/no/such/dir go test -run . ./cmd/... ./pkg/...
ok k8s.io/helm/cmd/helm 1.852s
ok k8s.io/helm/cmd/helm/installer 3.315s
ok k8s.io/helm/cmd/helm/search 0.155s
? k8s.io/helm/cmd/rudder [no test files]
ok k8s.io/helm/cmd/tiller 0.212s
@adamreese
adamreese / api_versions.sh
Created February 27, 2020 19:54
Kubernetes resource apiVersion issue
#!/usr/bin/env bash
set -euo pipefail
echo "creating a apps/v1 deployment"
echo
cat <<EOF | kubectl create -f -
apiVersion: apps/v1
kind: Deployment
metadata:
#!/usr/bin/env bash
set -euo pipefail
if (( $# < 2 )); then
echo "usage: gh-downloads <org> <repo> [<tag>]" >&2
exit 1
fi
owner=${1:-} repo=${2:-} tag=${3:-}
@adamreese
adamreese / curl-benchmark.nomad
Created January 12, 2022 18:20
Nomad curl benchmark
variable "url" {
type = string
default = "google.com"
}
variable "template" {
type = string
default = <<-EOF
%%%{errormsg}
http_code: %%%{response_code}
@adamreese
adamreese / k3s.yaml
Created March 13, 2024 15:01
Lima VM with k3s
# This template requires Lima v0.14.0 or later and macOS 13.
images:
- location: "https://cloud-images.ubuntu.com/releases/23.10/release-20240125/ubuntu-23.10-server-cloudimg-amd64.img"
arch: "x86_64"
digest: "sha256:a7700ca87b691246cf57812c63f64a8ab0d6702c00f04c8f6efd97513bab5d59"
- location: "https://cloud-images.ubuntu.com/releases/23.10/release-20240125/ubuntu-23.10-server-cloudimg-arm64.img"
arch: "aarch64"
digest: "sha256:1072e90dd339fd7ba1e82b6c1c3b03183287ca4a6da52c04eaeb0e5653a59bc7"
- location: "https://cloud-images.ubuntu.com/releases/23.10/release/ubuntu-23.10-server-cloudimg-amd64.img"
arch: "x86_64"