Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bump openapi version to support for k8s media types #1341

Merged
Changes from 1 commit
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
Prev Previous commit
comment feedback
davidgamero committed Nov 14, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 62e5ab1701cb5659656f1941ef11eb748e626c25
1 change: 0 additions & 1 deletion examples/patch-example.js
Original file line number Diff line number Diff line change
@@ -20,7 +20,6 @@ k8sApi.listNamespacedPod({ namespace }).then((res) => {
},
},
];
// TODO this method of passing the content type will change when we figure out a way to properly do this
const headerPatchMiddleware = new PromiseMiddlewareWrapper({
pre: async (requestContext) => {
requestContext.setHeaderParam('Content-type', 'application/json-patch+json');
7 changes: 2 additions & 5 deletions examples/typescript/patch/patch-example.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// in a real program use require('@kubernetes/client-node')
import {
CoreV1Api,
RequestContext,
@@ -9,8 +10,6 @@ import {
} from '../../../dist';
import { PromiseMiddlewareWrapper } from '../../../dist/gen/middleware';

// const k8s = require('@kubernetes/client-node');

const kc = new KubeConfig();
kc.loadFromDefault();

@@ -76,8 +75,6 @@ k8sApi
})
.catch((err) => {
// tslint:disable-next-line:no-console
console.log('Error: ');
// tslint:disable-next-line:no-console
console.log(err);
console.log('Error: ', err);
});
});
2 changes: 1 addition & 1 deletion settings
Original file line number Diff line number Diff line change
@@ -30,4 +30,4 @@ export CLIENT_VERSION="0.8-SNAPSHOT"
# Name of the release package
export PACKAGE_NAME="@kubernetes/node-client"

export OPENAPI_GENERATOR_COMMIT=ba367e60e85392a7fd58cdb374c35c3aaaece872
export OPENAPI_GENERATOR_COMMIT=53289263d921e627cb05894c8477238dff48d62f
4 changes: 2 additions & 2 deletions src/gen/.openapi-generator/COMMIT
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Requested Commit: ba367e60e85392a7fd58cdb374c35c3aaaece872
Actual Commit: ba367e60e85392a7fd58cdb374c35c3aaaece872
Requested Commit: 53289263d921e627cb05894c8477238dff48d62f
Actual Commit: 53289263d921e627cb05894c8477238dff48d62f
2 changes: 1 addition & 1 deletion src/gen/.openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.1.0-SNAPSHOT
7.2.0-SNAPSHOT