Skip to content

Instantly share code, notes, and snippets.

@crandles
crandles / crd2jsonschema.sh
Created April 18, 2024 14:43 — forked from rawc0der/crd2jsonschema.sh
Extract openapi JSON schema from Kubernetes CRD manifest
#!/bin/bash
# Small utility function based on yq to extract openAPIV3Schema from CRD
# example: crd2jsonschema.sh ./crd-alertmanager.yaml
set -e
function crd2jsonschema() {
set -e
local xkgroup="x-kubernetes-group-version-kind"
local document="$1"
local openAPIV3Schema=$(mktemp -u)
@crandles
crandles / keybase.md
Created September 13, 2021 17:13
keybase.md

Keybase proof

I hereby claim:

  • I am crandles on github.
  • I am crandles (https://keybase.io/crandles) on keybase.
  • I have a public key ASB0W1klAxQLO1IgCfD_xz1l96XZVCXWUjfAAiCckbTuewo

To claim this, I am signing this object:

@crandles
crandles / README.md
Created September 3, 2020 14:46
update bitnami/kube-prometheus prometheus-operator CRDs
git clone https://github.com/bitnami/charts.git
cd charts/bitnami/kube-prometheus
bash update-crds.sh