diff --git a/packages/clients/src/api/k8s/v1/api.gen.ts b/packages/clients/src/api/k8s/v1/api.gen.ts index 283952403..7e719f58e 100644 --- a/packages/clients/src/api/k8s/v1/api.gen.ts +++ b/packages/clients/src/api/k8s/v1/api.gen.ts @@ -348,7 +348,7 @@ export class API extends ParentAPI { 'clusterId', request.clusterId, )}/kubeconfig`, - urlParams: urlParams(['dl', 1]), + urlParams: urlParams(['dl', 1], ['redacted', request.redacted]), responseType: 'blob', }) diff --git a/packages/clients/src/api/k8s/v1/types.gen.ts b/packages/clients/src/api/k8s/v1/types.gen.ts index a59bae909..764949d59 100644 --- a/packages/clients/src/api/k8s/v1/types.gen.ts +++ b/packages/clients/src/api/k8s/v1/types.gen.ts @@ -908,6 +908,8 @@ export type GetClusterKubeConfigRequest = { region?: Region /** Cluster ID for which to download the kubeconfig. */ clusterId: string + /** Hide the legacy token from the kubeconfig. */ + redacted?: boolean } export type GetClusterRequest = {