Skip to content

Commit

Permalink
Regenerate from latest APIs ft. Kubernetes 1.27
Browse files Browse the repository at this point in the history
  • Loading branch information
danopia committed Aug 12, 2023
1 parent b64fa05 commit 2afc73a
Show file tree
Hide file tree
Showing 24 changed files with 1,034 additions and 382 deletions.
6 changes: 3 additions & 3 deletions generation/codegen-mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import { ApiShape } from "./describe-shapes.ts";

const knownOpts: Record<string,string|undefined> = {
'': 'NoOpts',
'continue,fieldSelector,labelSelector,limit,resourceVersion,resourceVersionMatch,timeoutSeconds': 'GetListOpts',
'allowWatchBookmarks,fieldSelector,labelSelector,resourceVersion,resourceVersionMatch,timeoutSeconds': 'WatchListOpts',
'continue,fieldSelector,labelSelector,limit,resourceVersion,resourceVersionMatch,sendInitialEvents,timeoutSeconds': 'GetListOpts',
'allowWatchBookmarks,fieldSelector,labelSelector,resourceVersion,resourceVersionMatch,sendInitialEvents,timeoutSeconds': 'WatchListOpts',
'dryRun,fieldManager,fieldValidation': 'PutOpts', // both CreateOpts and ReplaceOpts
'continue,dryRun,fieldSelector,gracePeriodSeconds,labelSelector,limit,orphanDependents,propagationPolicy,resourceVersion,resourceVersionMatch,timeoutSeconds': 'DeleteListOpts',
'continue,dryRun,fieldSelector,gracePeriodSeconds,labelSelector,limit,orphanDependents,propagationPolicy,resourceVersion,resourceVersionMatch,sendInitialEvents,timeoutSeconds': 'DeleteListOpts',
'dryRun,fieldManager,fieldValidation,force': 'PatchOpts',
'exact,export': 'GetOpts',
'dryRun,gracePeriodSeconds,orphanDependents,propagationPolicy': 'DeleteOpts',
Expand Down
10 changes: 5 additions & 5 deletions generation/generate-all.sh
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
#!/bin/sh -eux

# https://github.com/kubernetes/kubernetes/releases
./generation/sources/builtin.sh v1.26.1
./generation/sources/builtin.sh v1.27.4

# https://github.com/argoproj/argo-cd/releases
./generation/sources/argo-cd.sh v2.6.1
./generation/sources/argo-cd.sh v2.8.0

# https://github.com/cert-manager/cert-manager/releases
./generation/sources/cert-manager.sh v1.11.0
./generation/sources/cert-manager.sh v1.12.3

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

# https://github.com/kubernetes/autoscaler/releases?q=vertical
./generation/sources/vpa.sh 0.13.0
./generation/sources/vpa.sh 0.14.0
6 changes: 3 additions & 3 deletions generation/run-on-crds.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ import {
} from "../lib/builtin/apiextensions.k8s.io@v1/structs.ts";

const knownOpts = {
GetListOpts: 'continue,fieldSelector,labelSelector,limit,resourceVersion,resourceVersionMatch,timeoutSeconds',
WatchListOpts: 'allowWatchBookmarks,fieldSelector,labelSelector,resourceVersion,resourceVersionMatch,timeoutSeconds',
GetListOpts: 'continue,fieldSelector,labelSelector,limit,resourceVersion,resourceVersionMatch,sendInitialEvents,timeoutSeconds',
WatchListOpts: 'allowWatchBookmarks,fieldSelector,labelSelector,resourceVersion,resourceVersionMatch,sendInitialEvents,timeoutSeconds',
PutOpts: 'dryRun,fieldManager,fieldValidation', // both CreateOpts and ReplaceOpts
DeleteListOpts: 'continue,dryRun,fieldSelector,gracePeriodSeconds,labelSelector,limit,orphanDependents,propagationPolicy,resourceVersion,resourceVersionMatch,timeoutSeconds',
DeleteListOpts: 'continue,dryRun,fieldSelector,gracePeriodSeconds,labelSelector,limit,orphanDependents,propagationPolicy,resourceVersion,resourceVersionMatch,sendInitialEvents,timeoutSeconds',
PatchOpts: 'dryRun,fieldManager,fieldValidation,force',
GetOpts: '',
DeleteOpts: 'dryRun,gracePeriodSeconds,orphanDependents,propagationPolicy',
Expand Down
Loading

0 comments on commit 2afc73a

Please sign in to comment.