Skip to content

Commit d5cc37e

Browse files
author
Mengqi Yu
committed
change openapi url
1 parent d2b3270 commit d5cc37e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ts/create-kpt-functions/src/cmd/type_create.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ import { spawnSync } from 'child_process';
2828
import { CLI_PACKAGE } from '../paths';
2929
import { failure } from '../utils/format';
3030

31-
// url for default swagger.json openAPI type definitions from kyaml library
32-
// current kubernetes version v1.17.1
33-
const BUILTIN_OPENAPI_URL = `https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/kyaml/openapi/kubernetesapi/swagger.json`;
31+
// url for default swagger.json openAPI type definitions from the kubernetes repo.
32+
// current kubernetes version is v1.21.2
33+
const BUILTIN_OPENAPI_URL = `https://raw.githubusercontent.com/kubernetes/kubernetes/v1.21.2/api/openapi-spec/swagger.json`;
3434

3535
export async function typeCreate(packageDir: string) {
3636
const desc = 'Generating types from OpenAPI spec.';

0 commit comments

Comments
 (0)