Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions generation/generate-all.sh
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
#!/bin/sh -eux

# https://github.com/kubernetes/kubernetes/releases
./generation/sources/builtin.sh v1.32.0
./generation/sources/builtin.sh v1.34.1

# https://github.com/argoproj/argo-cd/releases
./generation/sources/argo-cd.sh v2.13.3
./generation/sources/argo-cd.sh v3.1.6

# https://github.com/cert-manager/cert-manager/releases
./generation/sources/cert-manager.sh v1.16.2
./generation/sources/cert-manager.sh v1.18.2

# https://github.com/kubernetes-sigs/external-dns/releases
./generation/sources/external-dns.sh v0.15.1
./generation/sources/external-dns.sh v0.19.0

# https://github.com/fluxcd/flux2/releases
#./generation/sources/flux-cd.sh v2.6.4

# https://github.com/kubernetes/autoscaler/releases?q=vertical
./generation/sources/vpa.sh 1.2.1
./generation/sources/vpa.sh 1.4.1
4 changes: 2 additions & 2 deletions generation/sources/external-dns.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

gitapi="https://api.github.com"
upstream="kubernetes-sigs/external-dns"
crdpath="docs/contributing/crd-source"
crdpath="config/crd/standard"
projectname="external-dns"
specdir="generation/api-specs/$projectname-$1"

Expand All @@ -11,7 +11,7 @@ then {
echo 'mkdir '"$specdir"
echo 'cd '"$specdir"
wget -O - "$gitapi/repos/$upstream/contents/$crdpath?ref=$1" \
| jq -r '.[] | select(.name | startswith("crd-")) | "wget \(.download_url)"'
| jq -r '.[] | select(.name | endswith(".yaml")) | "wget \(.download_url)"'
} | sh -eux
fi

Expand Down
31 changes: 31 additions & 0 deletions generation/sources/flux-cd.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#!/bin/sh -eux

rawapi="raw.githubusercontent.com"
upstream="fluxcd/flux2"
kustomizationpath="manifests/crds/kustomization.yaml"
projectname="flux-cd"
specdir="generation/api-specs/$projectname-$1"

if [ ! -d "$specdir" ]
then {
echo 'mkdir '"$specdir"
echo 'cd '"$specdir"
wget -O - "https://$rawapi/$upstream/refs/tags/$1/$kustomizationpath" \
| grep -E 'https:.+[.]yaml' \
| sed 's/^- /wget /'
} | sh -eux
fi

mkdir -p "lib/$projectname"
rm -r "lib/$projectname"/* \
|| true

deno run \
--allow-read="generation/api-specs" \
--allow-write="lib/$projectname" \
generation/run-on-crds.ts \
"$specdir" \
"$projectname"

deno check "lib/$projectname"/*/mod.ts
git status "lib/$projectname"
16 changes: 13 additions & 3 deletions lib/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
![Deno CI](https://github.com/danopia/deno-kubernetes_apis/workflows/CI/badge.svg?branch=main)
[![CI](https://github.com/cloudydeno/kubernetes-apis/actions/workflows/deno-ci.yaml/badge.svg)](https://github.com/cloudydeno/kubernetes-apis/actions/workflows/deno-ci.yaml)

# `/x/kubernetes_apis`
# `@cloudydeno/kubernetes-apis`

## Purpose

Expand Down Expand Up @@ -44,9 +44,19 @@ for more information.

## Changelog

* `v0.6.0` on `2025-09-20`:
* Includes 'builtin' APIs generated from K8s `v1.34.1`.
* New APIs:
* `certificates.k8s.io/v1beta1` with kind `ClusterTrustBundle`
* `coordination.k8s.io/v1beta1` with kind `LeaseCandidate`
* `resource.k8s.io/v1` with `DeviceClass`, `ResourceSlice`, `ResourceClaim`, etc
* Other new kinds include `PodCertificateRequest`, `IPAddress`, and `VolumeAttributesClass`
* Removed API versions: (BREAKING)
* `authentication.k8s.io/v1beta1` ⚠ migrate to `authentication.k8s.io/v1`
* `argo-cd`, `cert-manager`, and `vpa` CRDs have been updated to latest.

* `v0.5.5` on `2025-09-19`:
* Fully adopt JSR. Remove remnants of `/x/` and `/std/` dependencies.
*

* `v0.5.4` on `2025-01-18`:
* Includes 'builtin' APIs generated from K8s `v1.32.0`.
Expand Down
Loading