UNPKG

@soft-stech/fleet

Version:
40 lines (39 loc) 1.69 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.IContentSchema = 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"); /** * Content is used internally by Fleet and should not be used directly. It * contains the resources from a bundle for a specific target cluster. */ exports.IContentSchema = 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"), /** * Content is a byte array, which contains the manifests of a bundle. * The bundle resources are copied into the bundledeployment's content * resource, so the downstream agent can deploy them. * @format byte */ "content": zod_1.z.string().optional(), /** * 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("Content"), "metadata": ObjectMeta_schema_1.iObjectMetaSchema.optional(), /** * SHA256Sum of the Content field */ "sha256sum": zod_1.z.string().optional() });