Skip to content

Commit

Permalink
change openapi url
Browse files Browse the repository at this point in the history
  • Loading branch information
Mengqi Yu committed Jul 13, 2021
1 parent d2b3270 commit d5cc37e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ts/create-kpt-functions/src/cmd/type_create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ import { spawnSync } from 'child_process';
import { CLI_PACKAGE } from '../paths';
import { failure } from '../utils/format';

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

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

0 comments on commit d5cc37e

Please # to comment.