UNPKG

@soft-stech/fleet

Version:
50 lines (49 loc) 1.93 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.IClusterRegistrationTokenSchema = void 0; // Generated by ts-to-zod const zod_1 = require("zod"); const ObjectMeta_schema_1 = require("@soft-stech/apimachinery/apis/meta/v1/ObjectMeta.schema"); /** * ClusterRegistrationToken is used by agents to register a new cluster. */ exports.IClusterRegistrationTokenSchema = zod_1.z.object({ /** * APIVersion defines the versioned schema of this representation of an object. * Servers should convert recognized schemas to the latest internal value, and * may reject unrecognized values. * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources */ apiVersion: zod_1.z.literal("fleet.cattle.io/v1alpha1"), /** * Kind is a string value representing the REST resource this object represents. * Servers may infer this from the endpoint the client submits requests to. * Cannot be updated. * In CamelCase. * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds */ kind: zod_1.z.literal("ClusterRegistrationToken"), metadata: ObjectMeta_schema_1.iObjectMetaSchema.optional(), spec: zod_1.z .object({ /** * TTL is the time to live for the token. It is used to calculate the * expiration time. If the token expires, it will be deleted. */ ttl: zod_1.z.string().optional() }) .optional(), status: zod_1.z .object({ /** * Expires is the time when the token expires. * @format date-time */ expires: zod_1.z.iso.datetime().optional().nullable(), /** * SecretName is the name of the secret containing the token. */ secretName: zod_1.z.string().optional() }) .optional() });