Skip to content

Commit

Permalink
release: 1.25.8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
iomonad committed Apr 25, 2023
2 parents fe5e809 + ca25494 commit 4500820
Show file tree
Hide file tree
Showing 51 changed files with 12,236 additions and 1,510 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/clojure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
uses: medyagh/setup-minikube@latest
with:
minikube version: 'v1.30.1'
kubernetes-version: '1.24.12'
kubernetes-version: '1.26.3'
- name: Setup Minikube Env for test #1
run: kubectl -n kube-system create serviceaccount toast
- name: Setup Minikube Env for test #2
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# 1.25.8.1
- Bumped API stubs from 1.22 to 1.25
- Added stubs generation tooling
5 changes: 5 additions & 0 deletions bin/clojure-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"allowUnicodeIdentifiers": true,
"projectName": "kubernetes",
"projectDescription": "Clojure kubernetes client API stub"
}
40 changes: 40 additions & 0 deletions bin/openapi-generate
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
#!/bin/bash

set -eux

export CODEGEN_VERSION=2.2.1
export K8S_OPENAPI_ENDPOINT="/openapi/v2"
export OPENAPI_DIFINITION="/tmp/openapi.json"
export GENERATED_DIRECTORY="/tmp/openapi-generated"
export TO_PATCH="${GENERATED_DIRECTORY}/src"

##########################################
# Prepare Tools
##########################################

cd "$(dirname "$0")"
rm -rf ${GENERATED_DIRECTORY}

if ! [ -f swagger-codegen-cli.jar ]; then
wget -q https://oss.sonatype.org/content/repositories/releases/io/swagger/swagger-codegen-cli/${CODEGEN_VERSION}/swagger-codegen-cli-${CODEGEN_VERSION}.jar -O swagger-codegen-cli.jar
fi

##########################################
# Export OpenAPI definition
##########################################

kubectl get --raw="${K8S_OPENAPI_ENDPOINT}" | jq > ${OPENAPI_DIFINITION}

java -jar swagger-codegen-cli.jar \
generate \
-i ${OPENAPI_DIFINITION} \
-l clojure \
-o ${GENERATED_DIRECTORY} \
-c clojure-config.json $@

##########################################
# Merge directories
##########################################

cd ..
rsync -avP ${TO_PATCH}/ src/
2 changes: 1 addition & 1 deletion project.clj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(defproject com.oscaro/clj-k8s "1.21.14.2"
(defproject com.oscaro/clj-k8s "1.25.8.1"
:description "Clojure kubernetes client API stub"
:url "https://github.com/oscaro/clj-k8s"
:deploy-repositories [["snapshots" {:url "https://repo.clojars.org"
Expand Down
411 changes: 411 additions & 0 deletions src/kubernetes/api/admissionregistration_v_.clj

Large diffs are not rendered by default.

282 changes: 282 additions & 0 deletions src/kubernetes/api/apiextensions_v_.clj

Large diffs are not rendered by default.

54 changes: 23 additions & 31 deletions src/kubernetes/api/apiregistration_v_.clj
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,11 @@
"
create an APIService"
([body ] (create-apiregistration-v1-api-service-with-http-info body nil))
([body {:keys [include-uninitialized pretty dry-run ]}]
(check-required-params body)
([body {:keys [pretty dry-run field-manager field-validation ]}]
(call-api "/apis/apiregistration.k8s.io/v1/apiservices" :post
{:path-params {}
:header-params {}
:query-params {"includeUninitialized" include-uninitialized "pretty" pretty "dryRun" dry-run }
:query-params {"pretty" pretty "dryRun" dry-run "fieldManager" field-manager "fieldValidation" field-validation }
:form-params {}
:body-param body
:content-types ["*/*"]
Expand All @@ -30,7 +29,6 @@
delete an APIService"
([name ] (delete-apiregistration-v1-api-service-with-http-info name nil))
([name {:keys [pretty body dry-run grace-period-seconds orphan-dependents propagation-policy ]}]
(check-required-params name)
(call-api "/apis/apiregistration.k8s.io/v1/apiservices/{name}" :delete
{:path-params {"name" name }
:header-params {}
Expand All @@ -52,12 +50,13 @@
"
delete collection of APIService"
([] (delete-apiregistration-v1-collection-api-service-with-http-info nil))
([{:keys [include-uninitialized pretty continue field-selector label-selector limit resource-version timeout-seconds watch ]}]
([{:keys [pretty body continue dry-run field-selector grace-period-seconds label-selector limit orphan-dependents propagation-policy resource-version resource-version-match timeout-seconds ]}]
(call-api "/apis/apiregistration.k8s.io/v1/apiservices" :delete
{:path-params {}
:header-params {}
:query-params {"includeUninitialized" include-uninitialized "pretty" pretty "continue" continue "fieldSelector" field-selector "labelSelector" label-selector "limit" limit "resourceVersion" resource-version "timeoutSeconds" timeout-seconds "watch" watch }
:query-params {"pretty" pretty "continue" continue "dryRun" dry-run "fieldSelector" field-selector "gracePeriodSeconds" grace-period-seconds "labelSelector" label-selector "limit" limit "orphanDependents" orphan-dependents "propagationPolicy" propagation-policy "resourceVersion" resource-version "resourceVersionMatch" resource-version-match "timeoutSeconds" timeout-seconds }
:form-params {}
:body-param body
:content-types ["*/*"]
:accepts ["application/json" "application/yaml" "application/vnd.kubernetes.protobuf"]
:auth-names ["BearerToken"]})))
Expand Down Expand Up @@ -92,11 +91,11 @@
"
list or watch objects of kind APIService"
([] (list-apiregistration-v1-api-service-with-http-info nil))
([{:keys [include-uninitialized pretty continue field-selector label-selector limit resource-version timeout-seconds watch ]}]
([{:keys [pretty allow-watch-bookmarks continue field-selector label-selector limit resource-version resource-version-match timeout-seconds watch ]}]
(call-api "/apis/apiregistration.k8s.io/v1/apiservices" :get
{:path-params {}
:header-params {}
:query-params {"includeUninitialized" include-uninitialized "pretty" pretty "continue" continue "fieldSelector" field-selector "labelSelector" label-selector "limit" limit "resourceVersion" resource-version "timeoutSeconds" timeout-seconds "watch" watch }
:query-params {"pretty" pretty "allowWatchBookmarks" allow-watch-bookmarks "continue" continue "fieldSelector" field-selector "labelSelector" label-selector "limit" limit "resourceVersion" resource-version "resourceVersionMatch" resource-version-match "timeoutSeconds" timeout-seconds "watch" watch }
:form-params {}
:content-types ["*/*"]
:accepts ["application/json" "application/yaml" "application/vnd.kubernetes.protobuf" "application/json;stream=watch" "application/vnd.kubernetes.protobuf;stream=watch"]
Expand All @@ -113,15 +112,14 @@
"
partially update the specified APIService"
([name body ] (patch-apiregistration-v1-api-service-with-http-info name body nil))
([name body {:keys [pretty dry-run ]}]
(check-required-params name body)
([name body {:keys [pretty dry-run field-manager field-validation force ]}]
(call-api "/apis/apiregistration.k8s.io/v1/apiservices/{name}" :patch
{:path-params {"name" name }
:header-params {}
:query-params {"pretty" pretty "dryRun" dry-run }
:query-params {"pretty" pretty "dryRun" dry-run "fieldManager" field-manager "fieldValidation" field-validation "force" force }
:form-params {}
:body-param body
:content-types ["application/json-patch+json" "application/merge-patch+json" "application/strategic-merge-patch+json"]
:content-types ["application/json-patch+json" "application/merge-patch+json" "application/strategic-merge-patch+json" "application/apply-patch+yaml"]
:accepts ["application/json" "application/yaml" "application/vnd.kubernetes.protobuf"]
:auth-names ["BearerToken"]})))

Expand All @@ -136,15 +134,14 @@
"
partially update status of the specified APIService"
([name body ] (patch-apiregistration-v1-api-service-status-with-http-info name body nil))
([name body {:keys [pretty dry-run ]}]
(check-required-params name body)
([name body {:keys [pretty dry-run field-manager field-validation force ]}]
(call-api "/apis/apiregistration.k8s.io/v1/apiservices/{name}/status" :patch
{:path-params {"name" name }
:header-params {}
:query-params {"pretty" pretty "dryRun" dry-run }
:query-params {"pretty" pretty "dryRun" dry-run "fieldManager" field-manager "fieldValidation" field-validation "force" force }
:form-params {}
:body-param body
:content-types ["application/json-patch+json" "application/merge-patch+json" "application/strategic-merge-patch+json"]
:content-types ["application/json-patch+json" "application/merge-patch+json" "application/strategic-merge-patch+json" "application/apply-patch+yaml"]
:accepts ["application/json" "application/yaml" "application/vnd.kubernetes.protobuf"]
:auth-names ["BearerToken"]})))

Expand All @@ -159,12 +156,11 @@
"
read the specified APIService"
([name ] (read-apiregistration-v1-api-service-with-http-info name nil))
([name {:keys [pretty exact export ]}]
(check-required-params name)
([name {:keys [pretty ]}]
(call-api "/apis/apiregistration.k8s.io/v1/apiservices/{name}" :get
{:path-params {"name" name }
:header-params {}
:query-params {"pretty" pretty "exact" exact "export" export }
:query-params {"pretty" pretty }
:form-params {}
:content-types ["*/*"]
:accepts ["application/json" "application/yaml" "application/vnd.kubernetes.protobuf"]
Expand All @@ -182,7 +178,6 @@
read status of the specified APIService"
([name ] (read-apiregistration-v1-api-service-status-with-http-info name nil))
([name {:keys [pretty ]}]
(check-required-params name)
(call-api "/apis/apiregistration.k8s.io/v1/apiservices/{name}/status" :get
{:path-params {"name" name }
:header-params {}
Expand All @@ -203,12 +198,11 @@
"
replace the specified APIService"
([name body ] (replace-apiregistration-v1-api-service-with-http-info name body nil))
([name body {:keys [pretty dry-run ]}]
(check-required-params name body)
([name body {:keys [pretty dry-run field-manager field-validation ]}]
(call-api "/apis/apiregistration.k8s.io/v1/apiservices/{name}" :put
{:path-params {"name" name }
:header-params {}
:query-params {"pretty" pretty "dryRun" dry-run }
:query-params {"pretty" pretty "dryRun" dry-run "fieldManager" field-manager "fieldValidation" field-validation }
:form-params {}
:body-param body
:content-types ["*/*"]
Expand All @@ -226,12 +220,11 @@
"
replace status of the specified APIService"
([name body ] (replace-apiregistration-v1-api-service-status-with-http-info name body nil))
([name body {:keys [pretty dry-run ]}]
(check-required-params name body)
([name body {:keys [pretty dry-run field-manager field-validation ]}]
(call-api "/apis/apiregistration.k8s.io/v1/apiservices/{name}/status" :put
{:path-params {"name" name }
:header-params {}
:query-params {"pretty" pretty "dryRun" dry-run }
:query-params {"pretty" pretty "dryRun" dry-run "fieldManager" field-manager "fieldValidation" field-validation }
:form-params {}
:body-param body
:content-types ["*/*"]
Expand All @@ -249,12 +242,11 @@
"
watch changes to an object of kind APIService. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter."
([name ] (watch-apiregistration-v1-api-service-with-http-info name nil))
([name {:keys [continue field-selector include-uninitialized label-selector limit pretty resource-version timeout-seconds watch ]}]
(check-required-params name)
([name {:keys [allow-watch-bookmarks continue field-selector label-selector limit pretty resource-version resource-version-match timeout-seconds watch ]}]
(call-api "/apis/apiregistration.k8s.io/v1/watch/apiservices/{name}" :get
{:path-params {"name" name }
:header-params {}
:query-params {"continue" continue "fieldSelector" field-selector "includeUninitialized" include-uninitialized "labelSelector" label-selector "limit" limit "pretty" pretty "resourceVersion" resource-version "timeoutSeconds" timeout-seconds "watch" watch }
:query-params {"allowWatchBookmarks" allow-watch-bookmarks "continue" continue "fieldSelector" field-selector "labelSelector" label-selector "limit" limit "pretty" pretty "resourceVersion" resource-version "resourceVersionMatch" resource-version-match "timeoutSeconds" timeout-seconds "watch" watch }
:form-params {}
:content-types ["*/*"]
:accepts ["application/json" "application/yaml" "application/vnd.kubernetes.protobuf" "application/json;stream=watch" "application/vnd.kubernetes.protobuf;stream=watch"]
Expand All @@ -271,11 +263,11 @@
"
watch individual changes to a list of APIService. deprecated: use the 'watch' parameter with a list operation instead."
([] (watch-apiregistration-v1-api-service-list-with-http-info nil))
([{:keys [continue field-selector include-uninitialized label-selector limit pretty resource-version timeout-seconds watch ]}]
([{:keys [allow-watch-bookmarks continue field-selector label-selector limit pretty resource-version resource-version-match timeout-seconds watch ]}]
(call-api "/apis/apiregistration.k8s.io/v1/watch/apiservices" :get
{:path-params {}
:header-params {}
:query-params {"continue" continue "fieldSelector" field-selector "includeUninitialized" include-uninitialized "labelSelector" label-selector "limit" limit "pretty" pretty "resourceVersion" resource-version "timeoutSeconds" timeout-seconds "watch" watch }
:query-params {"allowWatchBookmarks" allow-watch-bookmarks "continue" continue "fieldSelector" field-selector "labelSelector" label-selector "limit" limit "pretty" pretty "resourceVersion" resource-version "resourceVersionMatch" resource-version-match "timeoutSeconds" timeout-seconds "watch" watch }
:form-params {}
:content-types ["*/*"]
:accepts ["application/json" "application/yaml" "application/vnd.kubernetes.protobuf" "application/json;stream=watch" "application/vnd.kubernetes.protobuf;stream=watch"]
Expand Down
Loading

0 comments on commit 4500820

Please sign in to comment.