UNPKG

@soft-stech/fleet

Version:
1,111 lines (1,110 loc) 108 kB
import { z } from "zod"; /** * BundleDeployment is used internally by Fleet and should not be used directly. * When a Bundle is deployed to a cluster an instance of a Bundle is called a * BundleDeployment. A BundleDeployment represents the state of that Bundle on * a specific cluster with its cluster-specific customizations. The Fleet agent * is only aware of BundleDeployment resources that are created for the cluster * the agent is managing. */ export declare const IBundleDeploymentSchema: z.ZodObject<{ /** * 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: z.ZodLiteral<"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: z.ZodLiteral<"BundleDeployment">; metadata: z.ZodOptional<z.ZodObject<{ annotations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; creationTimestamp: z.ZodOptional<z.ZodNullable<z.ZodString>>; deletionGracePeriodSeconds: z.ZodOptional<z.ZodNumber>; deletionTimestamp: z.ZodOptional<z.ZodNullable<z.ZodString>>; /** * key is the label key that the selector applies to. */ finalizers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; generateName: z.ZodOptional<z.ZodString>; /** * CorrectDrift specifies how drift correction should work. */ generation: z.ZodOptional<z.ZodNumber>; labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; managedFields: z.ZodOptional<z.ZodArray<z.ZodObject<{ apiVersion: z.ZodOptional<z.ZodString>; fieldsType: z.ZodOptional<z.ZodString>; fieldsV1: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>; manager: z.ZodOptional<z.ZodString>; operation: z.ZodOptional<z.ZodString>; subresource: z.ZodOptional<z.ZodString>; time: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { apiVersion?: string | undefined; fieldsType?: string | undefined; fieldsV1?: {} | undefined; manager?: string | undefined; /** * ComparePatches match a resource and remove fields from the check for modifications. */ operation?: string | undefined; subresource?: string | undefined; time?: string | null | undefined; }, { apiVersion?: string | undefined; fieldsType?: string | undefined; fieldsV1?: {} | undefined; manager?: string | undefined; operation?: string | undefined; subresource?: string | undefined; /** * JSONPointers ignore diffs at a certain JSON path. */ time?: string | null | undefined; }>, "many">>; name: z.ZodOptional<z.ZodString>; namespace: z.ZodOptional<z.ZodString>; ownerReferences: z.ZodOptional<z.ZodArray<z.ZodObject<{ apiVersion: z.ZodString; blockOwnerDeletion: z.ZodOptional<z.ZodBoolean>; controller: z.ZodOptional<z.ZodBoolean>; kind: z.ZodString; name: z.ZodString; uid: z.ZodString; }, "strip", z.ZodTypeAny, { apiVersion: string; kind: string; name: string; uid: string; blockOwnerDeletion?: boolean | undefined; controller?: boolean | undefined; }, { apiVersion: string; kind: string; name: string; uid: string; blockOwnerDeletion?: boolean | undefined; /** * Chart can refer to any go-getter URL or OCI registry based helm * chart URL. The chart will be downloaded. */ controller?: boolean | undefined; }>, "many">>; resourceVersion: z.ZodOptional<z.ZodString>; selfLink: z.ZodOptional<z.ZodString>; uid: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { name?: string | undefined; uid?: string | undefined; resourceVersion?: string | undefined; selfLink?: string | undefined; annotations?: Record<string, string> | undefined; creationTimestamp?: string | null | undefined; deletionGracePeriodSeconds?: number | undefined; deletionTimestamp?: string | null | undefined; finalizers?: string[] | undefined; generateName?: string | undefined; generation?: number | undefined; labels?: Record<string, string> | undefined; managedFields?: { apiVersion?: string | undefined; fieldsType?: string | undefined; fieldsV1?: {} | undefined; manager?: string | undefined; operation?: string | undefined; subresource?: string | undefined; time?: string | null | undefined; }[] | undefined; namespace?: string | undefined; ownerReferences?: { apiVersion: string; /** * TimeoutSeconds is the time to wait for Helm operations. */ kind: string; name: string; uid: string; blockOwnerDeletion?: boolean | undefined; controller?: boolean | undefined; }[] | undefined; /** * Values passed to Helm. It is possible to specify the keys and values * as go template strings. */ }, { name?: string | undefined; uid?: string | undefined; resourceVersion?: string | undefined; selfLink?: string | undefined; annotations?: Record<string, string> | undefined; creationTimestamp?: string | null | undefined; deletionGracePeriodSeconds?: number | undefined; deletionTimestamp?: string | null | undefined; finalizers?: string[] | undefined; /** * ValuesFrom loads the values from configmaps and secrets. */ generateName?: string | undefined; generation?: number | undefined; labels?: Record<string, string> | undefined; managedFields?: { apiVersion?: string | undefined; fieldsType?: string | undefined; fieldsV1?: {} | undefined; manager?: string | undefined; operation?: string | undefined; subresource?: string | undefined; /** * Name of a resource in the same namespace as the referent. */ time?: string | null | undefined; }[] | undefined; namespace?: string | undefined; ownerReferences?: { apiVersion: string; kind: string; name: string; uid: string; blockOwnerDeletion?: boolean | undefined; controller?: boolean | undefined; /** * The reference to a secret with release values. */ }[] | undefined; }>>; spec: z.ZodOptional<z.ZodObject<{ /** * CorrectDrift specifies how drift correction should work. */ correctDrift: z.ZodOptional<z.ZodObject<{ /** * Enabled correct drift if true. */ enabled: z.ZodOptional<z.ZodBoolean>; /** * Force helm rollback with --force option will be used if true. This will try to recreate all resources in the release. */ force: z.ZodOptional<z.ZodBoolean>; /** * KeepFailHistory keeps track of failed rollbacks in the helm history. */ keepFailHistory: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { enabled?: boolean | undefined; force?: boolean | undefined; keepFailHistory?: boolean | undefined; }, { enabled?: boolean | undefined; force?: boolean | undefined; keepFailHistory?: boolean | undefined; }>>; /** * DependsOn refers to the bundles which must be ready before this bundle can be deployed. */ dependsOn: z.ZodOptional<z.ZodArray<z.ZodObject<{ /** * Name of the bundle. */ name: z.ZodOptional<z.ZodString>; /** * Selector matching bundle's labels. */ selector: z.ZodOptional<z.ZodObject<{ /** * matchExpressions is a list of label selector requirements. The requirements are ANDed. */ matchExpressions: z.ZodOptional<z.ZodArray<z.ZodObject<{ /** * key is the label key that the selector applies to. */ key: z.ZodString; /** * operator represents a key's relationship to a set of values. * Valid operators are In, NotIn, Exists and DoesNotExist. */ operator: z.ZodString; /** * values is an array of string values. If the operator is In or NotIn, * the values array must be non-empty. If the operator is Exists or DoesNotExist, * the values array must be empty. This array is replaced during a strategic * merge patch. */ values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { key: string; operator: string; values?: string[] | undefined; }, { key: string; operator: string; values?: string[] | undefined; }>, "many">>; /** * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels * map is equivalent to an element of matchExpressions, whose key field is "key", the * operator is "In", and the values array contains only "value". The requirements are ANDed. */ matchLabels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; }, "strip", z.ZodTypeAny, { matchExpressions?: { key: string; operator: string; values?: string[] | undefined; }[] | undefined; matchLabels?: Record<string, string> | undefined; }, { matchExpressions?: { key: string; operator: string; values?: string[] | undefined; }[] | undefined; matchLabels?: Record<string, string> | undefined; }>>; }, "strip", z.ZodTypeAny, { name?: string | undefined; selector?: { matchExpressions?: { key: string; operator: string; values?: string[] | undefined; }[] | undefined; matchLabels?: Record<string, string> | undefined; } | undefined; }, { name?: string | undefined; selector?: { matchExpressions?: { key: string; operator: string; values?: string[] | undefined; }[] | undefined; matchLabels?: Record<string, string> | undefined; } | undefined; }>, "many">>; /** * DeploymentID is the ID of the currently applied deployment. */ deploymentID: z.ZodOptional<z.ZodString>; /** * OCIContents is true when this deployment's contents is stored in an oci registry */ ociContents: z.ZodOptional<z.ZodBoolean>; /** * Options are the deployment options, that are currently applied. */ options: z.ZodOptional<z.ZodObject<{ /** * CorrectDrift specifies how drift correction should work. */ correctDrift: z.ZodOptional<z.ZodObject<{ /** * Enabled correct drift if true. */ enabled: z.ZodOptional<z.ZodBoolean>; /** * Force helm rollback with --force option will be used if true. This will try to recreate all resources in the release. */ force: z.ZodOptional<z.ZodBoolean>; /** * KeepFailHistory keeps track of failed rollbacks in the helm history. */ keepFailHistory: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { enabled?: boolean | undefined; force?: boolean | undefined; keepFailHistory?: boolean | undefined; }, { enabled?: boolean | undefined; force?: boolean | undefined; keepFailHistory?: boolean | undefined; }>>; /** * DefaultNamespace is the namespace to use for resources that do not * specify a namespace. This field is not used to enforce or lock down * the deployment to a specific namespace. */ defaultNamespace: z.ZodOptional<z.ZodString>; /** * DeleteCRDResources deletes CRDs. Warning! this will also delete all your Custom Resources. */ deleteCRDResources: z.ZodOptional<z.ZodBoolean>; /** * DeleteNamespace can be used to delete the deployed namespace when removing the bundle */ deleteNamespace: z.ZodOptional<z.ZodBoolean>; /** * Diff can be used to ignore the modified state of objects which are amended at runtime. */ diff: z.ZodOptional<z.ZodObject<{ /** * ComparePatches match a resource and remove fields from the check for modifications. */ comparePatches: z.ZodOptional<z.ZodArray<z.ZodObject<{ /** * APIVersion is the apiVersion of the resource to match. */ apiVersion: z.ZodOptional<z.ZodString>; /** * JSONPointers ignore diffs at a certain JSON path. */ jsonPointers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; /** * Kind is the kind of the resource to match. */ kind: z.ZodOptional<z.ZodString>; /** * Name is the name of the resource to match. */ name: z.ZodOptional<z.ZodString>; /** * Namespace is the namespace of the resource to match. */ namespace: z.ZodOptional<z.ZodString>; /** * Operations remove a JSON path from the resource. */ operations: z.ZodOptional<z.ZodArray<z.ZodObject<{ /** * Op is usually "remove" */ op: z.ZodOptional<z.ZodString>; /** * Path is the JSON path to remove. */ path: z.ZodOptional<z.ZodString>; /** * Value is usually empty. */ value: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value?: string | undefined; path?: string | undefined; op?: string | undefined; }, { value?: string | undefined; path?: string | undefined; op?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { apiVersion?: string | undefined; kind?: string | undefined; name?: string | undefined; jsonPointers?: string[] | undefined; namespace?: string | undefined; operations?: { value?: string | undefined; path?: string | undefined; op?: string | undefined; }[] | undefined; }, { apiVersion?: string | undefined; kind?: string | undefined; name?: string | undefined; jsonPointers?: string[] | undefined; namespace?: string | undefined; operations?: { value?: string | undefined; path?: string | undefined; op?: string | undefined; }[] | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { comparePatches?: { apiVersion?: string | undefined; kind?: string | undefined; name?: string | undefined; jsonPointers?: string[] | undefined; namespace?: string | undefined; operations?: { value?: string | undefined; path?: string | undefined; op?: string | undefined; }[] | undefined; }[] | undefined; }, { comparePatches?: { apiVersion?: string | undefined; kind?: string | undefined; name?: string | undefined; jsonPointers?: string[] | undefined; namespace?: string | undefined; operations?: { value?: string | undefined; path?: string | undefined; op?: string | undefined; }[] | undefined; }[] | undefined; }>>; /** * ForceSyncGeneration is used to force a redeployment * @format int64 */ forceSyncGeneration: z.ZodOptional<z.ZodNumber>; /** * Helm options for the deployment, like the chart name, repo and values. */ helm: z.ZodOptional<z.ZodObject<{ /** * Atomic sets the --atomic flag when Helm is performing an upgrade */ atomic: z.ZodOptional<z.ZodBoolean>; /** * Chart can refer to any go-getter URL or OCI registry based helm * chart URL. The chart will be downloaded. */ chart: z.ZodOptional<z.ZodString>; /** * DisableDNS can be used to customize Helm's EnableDNS option, which Fleet sets to `true` by default. */ disableDNS: z.ZodOptional<z.ZodBoolean>; /** * DisableDependencyUpdate allows skipping chart dependencies update */ disableDependencyUpdate: z.ZodOptional<z.ZodBoolean>; /** * DisablePreProcess disables template processing in values */ disablePreProcess: z.ZodOptional<z.ZodBoolean>; /** * Force allows to override immutable resources. This could be dangerous. */ force: z.ZodOptional<z.ZodBoolean>; /** * MaxHistory limits the maximum number of revisions saved per release by Helm. */ maxHistory: z.ZodOptional<z.ZodNumber>; /** * ReleaseName sets a custom release name to deploy the chart as. If * not specified a release name will be generated by combining the * invoking GitRepo.name + GitRepo.path. * @maxLength 53 * @pattern ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$ */ releaseName: z.ZodOptional<z.ZodString>; /** * Repo is the name of the HTTPS helm repo to download the chart from. */ repo: z.ZodOptional<z.ZodString>; /** * SkipSchemaValidation allows skipping schema validation against the chart values */ skipSchemaValidation: z.ZodOptional<z.ZodBoolean>; /** * TakeOwnership makes helm skip the check for its own annotations */ takeOwnership: z.ZodOptional<z.ZodBoolean>; /** * TimeoutSeconds is the time to wait for Helm operations. */ timeoutSeconds: z.ZodOptional<z.ZodNumber>; /** * Values passed to Helm. It is possible to specify the keys and values * as go template strings. */ values: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>; /** * ValuesFiles is a list of files to load values from. */ valuesFiles: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; /** * ValuesFrom loads the values from configmaps and secrets. */ valuesFrom: z.ZodOptional<z.ZodArray<z.ZodObject<{ /** * The reference to a config map with release values. */ configMapKeyRef: z.ZodOptional<z.ZodObject<{ key: z.ZodOptional<z.ZodString>; /** * Name of a resource in the same namespace as the referent. */ name: z.ZodOptional<z.ZodString>; namespace: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { key?: string | undefined; name?: string | undefined; namespace?: string | undefined; }, { key?: string | undefined; name?: string | undefined; namespace?: string | undefined; }>>; /** * The reference to a secret with release values. */ secretKeyRef: z.ZodOptional<z.ZodObject<{ key: z.ZodOptional<z.ZodString>; /** * Name of a resource in the same namespace as the referent. */ name: z.ZodOptional<z.ZodString>; namespace: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { key?: string | undefined; name?: string | undefined; namespace?: string | undefined; }, { key?: string | undefined; name?: string | undefined; namespace?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { configMapKeyRef?: { key?: string | undefined; name?: string | undefined; namespace?: string | undefined; } | undefined; secretKeyRef?: { key?: string | undefined; name?: string | undefined; namespace?: string | undefined; } | undefined; }, { configMapKeyRef?: { key?: string | undefined; name?: string | undefined; namespace?: string | undefined; } | undefined; secretKeyRef?: { key?: string | undefined; name?: string | undefined; namespace?: string | undefined; } | undefined; }>, "many">>; /** * Version of the chart to download */ version: z.ZodOptional<z.ZodString>; /** * WaitForJobs if set and timeoutSeconds provided, will wait until all * Jobs have been completed before marking the GitRepo as ready. It * will wait for as long as timeoutSeconds */ waitForJobs: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { values?: {} | undefined; force?: boolean | undefined; atomic?: boolean | undefined; chart?: string | undefined; disableDNS?: boolean | undefined; disableDependencyUpdate?: boolean | undefined; disablePreProcess?: boolean | undefined; maxHistory?: number | undefined; releaseName?: string | undefined; repo?: string | undefined; skipSchemaValidation?: boolean | undefined; takeOwnership?: boolean | undefined; timeoutSeconds?: number | undefined; valuesFiles?: string[] | undefined; valuesFrom?: { configMapKeyRef?: { key?: string | undefined; name?: string | undefined; namespace?: string | undefined; } | undefined; secretKeyRef?: { key?: string | undefined; name?: string | undefined; namespace?: string | undefined; } | undefined; }[] | undefined; version?: string | undefined; waitForJobs?: boolean | undefined; }, { values?: {} | undefined; force?: boolean | undefined; atomic?: boolean | undefined; chart?: string | undefined; disableDNS?: boolean | undefined; disableDependencyUpdate?: boolean | undefined; disablePreProcess?: boolean | undefined; maxHistory?: number | undefined; releaseName?: string | undefined; repo?: string | undefined; skipSchemaValidation?: boolean | undefined; takeOwnership?: boolean | undefined; timeoutSeconds?: number | undefined; valuesFiles?: string[] | undefined; valuesFrom?: { configMapKeyRef?: { key?: string | undefined; name?: string | undefined; namespace?: string | undefined; } | undefined; secretKeyRef?: { key?: string | undefined; name?: string | undefined; namespace?: string | undefined; } | undefined; }[] | undefined; version?: string | undefined; waitForJobs?: boolean | undefined; }>>; /** * IgnoreOptions can be used to ignore fields when monitoring the bundle. */ ignore: z.ZodOptional<z.ZodObject<{ /** * Conditions is a list of conditions to be ignored when monitoring the Bundle. */ conditions: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodString>, "many">>; }, "strip", z.ZodTypeAny, { conditions?: Record<string, string>[] | undefined; }, { conditions?: Record<string, string>[] | undefined; }>>; /** * KeepResources can be used to keep the deployed resources when removing the bundle */ keepResources: z.ZodOptional<z.ZodBoolean>; /** * Kustomize options for the deployment, like the dir containing the * kustomization.yaml file. */ kustomize: z.ZodOptional<z.ZodObject<{ /** * Dir points to a custom folder for kustomize resources. This folder must contain * a kustomization.yaml file. */ dir: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { dir?: string | undefined; }, { dir?: string | undefined; }>>; /** * TargetNamespace if present will assign all resource to this * namespace and if any cluster scoped resource exists the deployment * will fail. */ namespace: z.ZodOptional<z.ZodString>; /** * NamespaceAnnotations are annotations that will be appended to the namespace created by Fleet. */ namespaceAnnotations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; /** * NamespaceLabels are labels that will be appended to the namespace created by Fleet. */ namespaceLabels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; /** * ServiceAccount which will be used to perform this deployment. */ serviceAccount: z.ZodOptional<z.ZodString>; /** * YAML options, if using raw YAML these are names that map to * overlays/{name} files that will be used to replace or patch a resource. */ yaml: z.ZodOptional<z.ZodObject<{ /** * Overlays is a list of names that maps to folders in "overlays/". * If you wish to customize the file ./subdir/resource.yaml then a file * ./overlays/myoverlay/subdir/resource.yaml will replace the base * file. * A file named ./overlays/myoverlay/subdir/resource_patch.yaml will patch the base file. */ overlays: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { overlays?: string[] | undefined; }, { overlays?: string[] | undefined; }>>; }, "strip", z.ZodTypeAny, { correctDrift?: { enabled?: boolean | undefined; force?: boolean | undefined; keepFailHistory?: boolean | undefined; } | undefined; defaultNamespace?: string | undefined; deleteCRDResources?: boolean | undefined; deleteNamespace?: boolean | undefined; namespace?: string | undefined; diff?: { comparePatches?: { apiVersion?: string | undefined; kind?: string | undefined; name?: string | undefined; jsonPointers?: string[] | undefined; namespace?: string | undefined; operations?: { value?: string | undefined; path?: string | undefined; op?: string | undefined; }[] | undefined; }[] | undefined; } | undefined; forceSyncGeneration?: number | undefined; helm?: { values?: {} | undefined; force?: boolean | undefined; atomic?: boolean | undefined; chart?: string | undefined; disableDNS?: boolean | undefined; disableDependencyUpdate?: boolean | undefined; disablePreProcess?: boolean | undefined; maxHistory?: number | undefined; releaseName?: string | undefined; repo?: string | undefined; skipSchemaValidation?: boolean | undefined; takeOwnership?: boolean | undefined; timeoutSeconds?: number | undefined; valuesFiles?: string[] | undefined; valuesFrom?: { configMapKeyRef?: { key?: string | undefined; name?: string | undefined; namespace?: string | undefined; } | undefined; secretKeyRef?: { key?: string | undefined; name?: string | undefined; namespace?: string | undefined; } | undefined; }[] | undefined; version?: string | undefined; waitForJobs?: boolean | undefined; } | undefined; ignore?: { conditions?: Record<string, string>[] | undefined; } | undefined; keepResources?: boolean | undefined; kustomize?: { dir?: string | undefined; } | undefined; namespaceAnnotations?: Record<string, string> | undefined; namespaceLabels?: Record<string, string> | undefined; serviceAccount?: string | undefined; yaml?: { overlays?: string[] | undefined; } | undefined; }, { correctDrift?: { enabled?: boolean | undefined; force?: boolean | undefined; keepFailHistory?: boolean | undefined; } | undefined; defaultNamespace?: string | undefined; deleteCRDResources?: boolean | undefined; deleteNamespace?: boolean | undefined; namespace?: string | undefined; diff?: { comparePatches?: { apiVersion?: string | undefined; kind?: string | undefined; name?: string | undefined; jsonPointers?: string[] | undefined; namespace?: string | undefined; operations?: { value?: string | undefined; path?: string | undefined; op?: string | undefined; }[] | undefined; }[] | undefined; } | undefined; forceSyncGeneration?: number | undefined; helm?: { values?: {} | undefined; force?: boolean | undefined; atomic?: boolean | undefined; chart?: string | undefined; disableDNS?: boolean | undefined; disableDependencyUpdate?: boolean | undefined; disablePreProcess?: boolean | undefined; maxHistory?: number | undefined; releaseName?: string | undefined; repo?: string | undefined; skipSchemaValidation?: boolean | undefined; takeOwnership?: boolean | undefined; timeoutSeconds?: number | undefined; valuesFiles?: string[] | undefined; valuesFrom?: { configMapKeyRef?: { key?: string | undefined; name?: string | undefined; namespace?: string | undefined; } | undefined; secretKeyRef?: { key?: string | undefined; name?: string | undefined; namespace?: string | undefined; } | undefined; }[] | undefined; version?: string | undefined; waitForJobs?: boolean | undefined; } | undefined; ignore?: { conditions?: Record<string, string>[] | undefined; } | undefined; keepResources?: boolean | undefined; kustomize?: { dir?: string | undefined; } | undefined; namespaceAnnotations?: Record<string, string> | undefined; namespaceLabels?: Record<string, string> | undefined; serviceAccount?: string | undefined; yaml?: { overlays?: string[] | undefined; } | undefined; }>>; /** * Paused if set to true, will stop any BundleDeployments from being * updated. If true, BundleDeployments will be marked as out of sync * when changes are detected. */ paused: z.ZodOptional<z.ZodBoolean>; /** * StagedDeploymentID is the ID of the staged deployment. */ stagedDeploymentID: z.ZodOptional<z.ZodString>; /** * StagedOptions are the deployment options, that are staged for * the next deployment. */ stagedOptions: z.ZodOptional<z.ZodObject<{ /** * CorrectDrift specifies how drift correction should work. */ correctDrift: z.ZodOptional<z.ZodObject<{ /** * Enabled correct drift if true. */ enabled: z.ZodOptional<z.ZodBoolean>; /** * Force helm rollback with --force option will be used if true. This will try to recreate all resources in the release. */ force: z.ZodOptional<z.ZodBoolean>; /** * KeepFailHistory keeps track of failed rollbacks in the helm history. */ keepFailHistory: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { enabled?: boolean | undefined; force?: boolean | undefined; keepFailHistory?: boolean | undefined; }, { enabled?: boolean | undefined; force?: boolean | undefined; keepFailHistory?: boolean | undefined; }>>; /** * DefaultNamespace is the namespace to use for resources that do not * specify a namespace. This field is not used to enforce or lock down * the deployment to a specific namespace. */ defaultNamespace: z.ZodOptional<z.ZodString>; /** * DeleteCRDResources deletes CRDs. Warning! this will also delete all your Custom Resources. */ deleteCRDResources: z.ZodOptional<z.ZodBoolean>; /** * DeleteNamespace can be used to delete the deployed namespace when removing the bundle */ deleteNamespace: z.ZodOptional<z.ZodBoolean>; /** * Diff can be used to ignore the modified state of objects which are amended at runtime. */ diff: z.ZodOptional<z.ZodObject<{ /** * ComparePatches match a resource and remove fields from the check for modifications. */ comparePatches: z.ZodOptional<z.ZodArray<z.ZodObject<{ /** * APIVersion is the apiVersion of the resource to match. */ apiVersion: z.ZodOptional<z.ZodString>; /** * JSONPointers ignore diffs at a certain JSON path. */ jsonPointers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; /** * Kind is the kind of the resource to match. */ kind: z.ZodOptional<z.ZodString>; /** * Name is the name of the resource to match. */ name: z.ZodOptional<z.ZodString>; /** * Namespace is the namespace of the resource to match. */ namespace: z.ZodOptional<z.ZodString>; /** * Operations remove a JSON path from the resource. */ operations: z.ZodOptional<z.ZodArray<z.ZodObject<{ /** * Op is usually "remove" */ op: z.ZodOptional<z.ZodString>; /** * Path is the JSON path to remove. */ path: z.ZodOptional<z.ZodString>; /** * Value is usually empty. */ value: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { value?: string | undefined; path?: string | undefined; op?: string | undefined; }, { value?: string | undefined; path?: string | undefined; op?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { apiVersion?: string | undefined; kind?: string | undefined; name?: string | undefined; jsonPointers?: string[] | undefined; namespace?: string | undefined; operations?: { value?: string | undefined; path?: string | undefined; op?: string | undefined; }[] | undefined; }, { apiVersion?: string | undefined; kind?: string | undefined; name?: string | undefined; jsonPointers?: string[] | undefined; namespace?: string | undefined; operations?: { value?: string | undefined; path?: string | undefined; op?: string | undefined; }[] | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { comparePatches?: { apiVersion?: string | undefined; kind?: string | undefined; name?: string | undefined; jsonPointers?: string[] | undefined; namespace?: string | undefined; operations?: { value?: string | undefined; path?: string | undefined; op?: string | undefined; }[] | undefined; }[] | undefined; }, { comparePatches?: { apiVersion?: string | undefined; kind?: string | undefined; name?: string | undefined; jsonPointers?: string[] | undefined; namespace?: string | undefined; operations?: { value?: string | undefined; path?: string | undefined; op?: string | undefined; }[] | undefined; }[] | undefined; }>>; /** * ForceSyncGeneration is used to force a redeployment * @format int64 */ forceSyncGeneration: z.ZodOptional<z.ZodNumber>; /** * Helm options for the deployment, like the chart name, repo and values. */ helm: z.ZodOptional<z.ZodObject<{ /** * Atomic sets the --atomic flag when Helm is performing an upgrade */ atomic: z.ZodOptional<z.ZodBoolean>; /** * Chart can refer to any go-getter URL or OCI registry based helm * chart URL. The chart will be downloaded. */ chart: z.ZodOptional<z.ZodString>; /** * DisableDNS can be used to customize Helm's EnableDNS option, which Fleet sets to `true` by default. */ disableDNS: z.ZodOptional<z.ZodBoolean>; /** * DisableDependencyUpdate allows skipping chart dependencies update */ disableDependencyUpdate: z.ZodOptional<z.ZodBoolean>; /** * DisablePreProcess disables template processing in values */ disablePreProcess: z.ZodOptional<z.ZodBoolean>; /** * Force allows to override immutable resources. This could be dangerous. */ force: z.ZodOptional<z.ZodBoolean>; /** * MaxHistory limits the maximum number of revisions saved per release by Helm. */ maxHistory: z.ZodOptional<z.ZodNumber>; /** * ReleaseName sets a custom release name to deploy the chart as. If * not specified a release name will be generated by combining the * invoking GitRepo.name + GitRepo.path. * @maxLength 53 * @pattern ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$ */ releaseName: z.ZodOptional<z.ZodString>; /** * Repo is the name of the HTTPS helm repo to download the chart from. */ repo: z.ZodOptional<z.ZodString>; /** * SkipSchemaValidation allows skipping schema validation against the chart values */ skipSchemaValidation: z.ZodOptional<z.ZodBoolean>; /** * TakeOwnership makes helm skip the check for its own annotations */ takeOwnership: z.ZodOptional<z.ZodBoolean>; /** * TimeoutSeconds is the time to wait for Helm operations. */ timeoutSeconds: z.ZodOptional<z.ZodNumber>; /** * Values passed to Helm. It is possible to specify the keys and values * as go template strings. */ values: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>; /** * ValuesFiles is a list of files to load values from. */ valuesFiles: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; /** * ValuesFrom loads the values from configmaps and secrets. */ valuesFrom: z.ZodOptional<z.ZodArray<z.ZodObject<{ /** * The reference to a config map with release values. */ configMapKeyRef: z.ZodOptional<z.ZodObject<{ key: z.ZodOptional<z.ZodString>; /** * Name of a resource in the same namespace as the referent. */ name: z.ZodOptional<z.ZodString>; namespace: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { key?: string | undefined; name?: string | undefined; namespace?: string | undefined; }, { key?: string | undefined; name?: string | undefined; namespace?: string | undefined; }>>; /** * The reference to a secret with release values. */ secretKeyRef: z.ZodOptional<z.ZodObject<{ key: z.ZodOptional<z.ZodString>; /** * Name of a resource in the same namespace as the referent. */ name: z.ZodOptional<z.ZodString>; namespace: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { key?: string | undefined; name?: string | undefined;