-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup-crd.sh
executable file
·29 lines (21 loc) · 1.27 KB
/
setup-crd.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/bin/env bash
mkdir -p .crd
cd .crd || exit
# renovate:github-url
wget https://raw.githubusercontent.com/yannh/kubeconform/v0.6.7/scripts/openapi2jsonschema.py
export FILENAME_FORMAT='{fullgroup}-{kind}-{version}'
# renovate:github-url
python3 openapi2jsonschema.py https://raw.githubusercontent.com/argoproj/argo-cd/v2.13.2/manifests/install.yaml
# renovate:github-url
python3 openapi2jsonschema.py https://github.com/argoproj/argo-rollouts/releases/download/v1.7.2/install.yaml
# NOTE: In Argo Workflows, install.yaml contains only minimal CRDs; use full CRDs for validation:
# https://github.com/argoproj/argo-workflows/issues/11266
# renovate:github-url
kustomize build https://github.com/argoproj/argo-workflows//manifests/base/crds/full?ref=v3.6.2 > crd.yaml
python3 openapi2jsonschema.py crd.yaml && rm crd.yaml
# renovate:github-url
python3 openapi2jsonschema.py https://raw.githubusercontent.com/traefik/traefik/v3.2.3/docs/content/reference/dynamic-configuration/kubernetes-crd-definition-v1.yml
# renovate:github-url
python3 openapi2jsonschema.py https://github.com/cert-manager/cert-manager/releases/download/v1.16.2/cert-manager.yaml
# renovate:github-url
python3 openapi2jsonschema.py https://github.com/rancher/system-upgrade-controller/releases/download/v0.14.2/crd.yaml