Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | 193x 193x 193x 193x 193x 193x 193x 193x 193x 193x 193x 193x 193x 193x 193x 193x | import { defineCommand } from '../../lib/define-command.js';
import { k8sCheckVersion } from '../../lib/k8s.js';
import { humanJsonOutputFormatOption, orgaIdOrNameOption } from '../global.options.js';
import { k8sIdOrNameArg } from './k8s.args.js';
export const k8sVersionCommand = defineCommand({
description: 'Check a Kubernetes cluster deployed version',
since: '4.9.0',
options: {
org: orgaIdOrNameOption,
format: humanJsonOutputFormatOption,
},
args: [k8sIdOrNameArg],
async handler(options, clusterIdOrName) {
const { format, org: orgIdOrName } = options;
await k8sCheckVersion(orgIdOrName, clusterIdOrName, format);
},
});
|