Skip to content

Commit ba55c0b

Browse files
authored
feat(k8s): add field to hide token from kubeconfig (#1093)
1 parent 1aa52ce commit ba55c0b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

packages/clients/src/api/k8s/v1/api.gen.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ export class API extends ParentAPI {
348348
'clusterId',
349349
request.clusterId,
350350
)}/kubeconfig`,
351-
urlParams: urlParams(['dl', 1]),
351+
urlParams: urlParams(['dl', 1], ['redacted', request.redacted]),
352352
responseType: 'blob',
353353
})
354354

packages/clients/src/api/k8s/v1/types.gen.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -908,6 +908,8 @@ export type GetClusterKubeConfigRequest = {
908908
region?: Region
909909
/** Cluster ID for which to download the kubeconfig. */
910910
clusterId: string
911+
/** Hide the legacy token from the kubeconfig. */
912+
redacted?: boolean
911913
}
912914

913915
export type GetClusterRequest = {

0 commit comments

Comments
 (0)