UNPKG

@soft-stech/flux-cd

Version:
943 lines (942 loc) 120 kB
import { z } from "zod"; /** * HelmRelease is the Schema for the helmreleases API */ export declare const IHelmReleaseSchema: 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<"helm.toolkit.fluxcd.io/v2beta2">; /** * 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<"HelmRelease">; 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>>; finalizers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; generateName: z.ZodOptional<z.ZodString>; 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; /** * Name of the referent. */ fieldsV1?: {} | undefined; manager?: string | undefined; operation?: string | undefined; subresource?: string | undefined; time?: string | null | undefined; /** * Version semver expression, ignored for charts from v1beta2.GitRepository and v1beta2.Bucket sources. Defaults to latest when omitted. * @default "*" */ }, { apiVersion?: string | undefined; fieldsType?: string | undefined; fieldsV1?: {} | undefined; manager?: string | undefined; operation?: string | undefined; subresource?: string | undefined; 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>; /** * AnnotationSelector is a string that follows the label selection expression https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#api It matches with the resource annotations. */ 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; /** * Group is the API group to select resources from. Together with Version and Kind it is capable of unambiguously identifying and/or selecting resources. https://github.com/kubernetes/community/blob/master/contributors/design-proposals/api-machinery/api-group.md */ kind: string; name: string; uid: string; blockOwnerDeletion?: boolean | undefined; 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; /** * Mode defines how differences should be handled between the Helm manifest and the manifest currently applied to the cluster. If not explicitly set, it defaults to DiffModeDisabled. */ 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; kind: string; name: string; uid: string; blockOwnerDeletion?: boolean | undefined; controller?: boolean | undefined; }[] | undefined; }, { 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; /** * CreateNamespace tells the Helm install action to create the HelmReleaseSpec.TargetNamespace if it does not exist yet. On uninstall, the namespace will not be garbage collected. */ subresource?: string | undefined; time?: string | null | undefined; }[] | undefined; namespace?: string | undefined; ownerReferences?: { apiVersion: string; kind: string; name: string; uid: string; blockOwnerDeletion?: boolean | undefined; controller?: boolean | undefined; }[] | undefined; }>>; /** * HelmReleaseSpec defines the desired state of a Helm release. */ spec: z.ZodOptional<z.ZodObject<{ /** * Chart defines the template of the v1beta2.HelmChart that should be created for this HelmRelease. */ chart: z.ZodObject<{ /** * ObjectMeta holds the template for metadata like labels and annotations. */ metadata: z.ZodOptional<z.ZodObject<{ /** * Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/ */ annotations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; /** * Map of string keys and values that can be used to organize and categorize (scope and select) objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ */ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; }, "strip", z.ZodTypeAny, { annotations?: Record<string, string> | undefined; labels?: Record<string, string> | undefined; }, { annotations?: Record<string, string> | undefined; labels?: Record<string, string> | undefined; }>>; /** * Spec holds the template for the v1beta2.HelmChartSpec for this HelmRelease. */ spec: z.ZodObject<{ /** * The name or path the Helm chart is available at in the SourceRef. * @minLength 1 * @maxLength 2048 */ chart: z.ZodString; /** * Interval at which to check the v1.Source for updates. Defaults to 'HelmReleaseSpec.Interval'. * @pattern ^([0-9]+(\.[0-9]+)?(ms|s|m|h))+$ */ interval: z.ZodOptional<z.ZodString>; /** * Determines what enables the creation of a new artifact. Valid values are ('ChartVersion', 'Revision'). See the documentation of the values for an explanation on their behavior. Defaults to ChartVersion when omitted. * @default "ChartVersion" */ reconcileStrategy: z.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ChartVersion">, z.ZodLiteral<"Revision">]>>>; /** * The name and namespace of the v1.Source the chart is available at. */ sourceRef: z.ZodObject<{ /** * APIVersion of the referent. */ apiVersion: z.ZodOptional<z.ZodString>; /** * Kind of the referent. */ kind: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"HelmRepository">, z.ZodLiteral<"GitRepository">, z.ZodLiteral<"Bucket">]>>; /** * Name of the referent. * @minLength 1 * @maxLength 253 */ name: z.ZodString; /** * Namespace of the referent. * @minLength 1 * @maxLength 63 */ namespace: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { name: string; apiVersion?: string | undefined; kind?: "Bucket" | "GitRepository" | "HelmRepository" | undefined; namespace?: string | undefined; }, { name: string; apiVersion?: string | undefined; kind?: "Bucket" | "GitRepository" | "HelmRepository" | undefined; namespace?: string | undefined; }>; /** * Alternative values file to use as the default chart values, expected to be a relative path in the SourceRef. Deprecated in favor of ValuesFiles, for backwards compatibility the file defined here is merged before the ValuesFiles items. Ignored when omitted. */ valuesFile: z.ZodOptional<z.ZodString>; /** * Alternative list of values files to use as the chart values (values.yaml is not included by default), expected to be a relative path in the SourceRef. Values files are merged in the order of this list with the last file overriding the first. Ignored when omitted. */ valuesFiles: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; /** * Verify contains the secret name containing the trusted public keys used to verify the signature and specifies which provider to use to check whether OCI image is authentic. This field is only supported for OCI sources. Chart dependencies, which are not bundled in the umbrella chart artifact, are not verified. */ verify: z.ZodOptional<z.ZodObject<{ /** * Provider specifies the technology used to sign the OCI Helm chart. * @default "cosign" */ provider: z.ZodDefault<z.ZodLiteral<"cosign">>; /** * SecretRef specifies the Kubernetes Secret containing the trusted public keys. */ secretRef: z.ZodOptional<z.ZodObject<{ /** * Name of the referent. */ name: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; }, { name: string; }>>; }, "strip", z.ZodTypeAny, { provider: "cosign"; secretRef?: { name: string; } | undefined; }, { secretRef?: { name: string; } | undefined; provider?: "cosign" | undefined; }>>; /** * Version semver expression, ignored for charts from v1beta2.GitRepository and v1beta2.Bucket sources. Defaults to latest when omitted. * @default "*" */ version: z.ZodDefault<z.ZodOptional<z.ZodString>>; }, "strip", z.ZodTypeAny, { chart: string; sourceRef: { name: string; apiVersion?: string | undefined; kind?: "Bucket" | "GitRepository" | "HelmRepository" | undefined; namespace?: string | undefined; }; version: string; reconcileStrategy: "ChartVersion" | "Revision"; interval?: string | undefined; valuesFile?: string | undefined; valuesFiles?: string[] | undefined; verify?: { provider: "cosign"; secretRef?: { name: string; } | undefined; } | undefined; }, { chart: string; sourceRef: { name: string; apiVersion?: string | undefined; kind?: "Bucket" | "GitRepository" | "HelmRepository" | undefined; namespace?: string | undefined; }; interval?: string | undefined; version?: string | undefined; reconcileStrategy?: "ChartVersion" | "Revision" | undefined; valuesFile?: string | undefined; valuesFiles?: string[] | undefined; verify?: { secretRef?: { name: string; } | undefined; provider?: "cosign" | undefined; } | undefined; }>; }, "strip", z.ZodTypeAny, { spec: { chart: string; sourceRef: { name: string; apiVersion?: string | undefined; kind?: "Bucket" | "GitRepository" | "HelmRepository" | undefined; namespace?: string | undefined; }; version: string; reconcileStrategy: "ChartVersion" | "Revision"; interval?: string | undefined; valuesFile?: string | undefined; valuesFiles?: string[] | undefined; verify?: { provider: "cosign"; secretRef?: { name: string; } | undefined; } | undefined; }; metadata?: { annotations?: Record<string, string> | undefined; labels?: Record<string, string> | undefined; } | undefined; }, { spec: { chart: string; sourceRef: { name: string; apiVersion?: string | undefined; kind?: "Bucket" | "GitRepository" | "HelmRepository" | undefined; namespace?: string | undefined; }; interval?: string | undefined; version?: string | undefined; reconcileStrategy?: "ChartVersion" | "Revision" | undefined; valuesFile?: string | undefined; valuesFiles?: string[] | undefined; verify?: { secretRef?: { name: string; } | undefined; provider?: "cosign" | undefined; } | undefined; }; metadata?: { annotations?: Record<string, string> | undefined; labels?: Record<string, string> | undefined; } | undefined; }>; /** * DependsOn may contain a meta.NamespacedObjectReference slice with references to HelmRelease resources that must be ready before this HelmRelease can be reconciled. */ dependsOn: z.ZodOptional<z.ZodArray<z.ZodObject<{ /** * Name of the referent. */ name: z.ZodString; /** * Namespace of the referent, when not specified it acts as LocalObjectReference. */ namespace: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { name: string; namespace?: string | undefined; }, { name: string; namespace?: string | undefined; }>, "many">>; /** * DriftDetection holds the configuration for detecting and handling differences between the manifest in the Helm storage and the resources currently existing in the cluster. */ driftDetection: z.ZodOptional<z.ZodObject<{ /** * Ignore contains a list of rules for specifying which changes to ignore during diffing. */ ignore: z.ZodOptional<z.ZodArray<z.ZodObject<{ /** * Paths is a list of JSON Pointer (RFC 6901) paths to be excluded from consideration in a Kubernetes object. */ paths: z.ZodArray<z.ZodString, "many">; /** * Target is a selector for specifying Kubernetes objects to which this rule applies. If Target is not set, the Paths will be ignored for all Kubernetes objects within the manifest of the Helm release. */ target: z.ZodOptional<z.ZodObject<{ /** * AnnotationSelector is a string that follows the label selection expression https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#api It matches with the resource annotations. */ annotationSelector: z.ZodOptional<z.ZodString>; /** * Group is the API group to select resources from. Together with Version and Kind it is capable of unambiguously identifying and/or selecting resources. https://github.com/kubernetes/community/blob/master/contributors/design-proposals/api-machinery/api-group.md */ group: z.ZodOptional<z.ZodString>; /** * Kind of the API Group to select resources from. Together with Group and Version it is capable of unambiguously identifying and/or selecting resources. https://github.com/kubernetes/community/blob/master/contributors/design-proposals/api-machinery/api-group.md */ kind: z.ZodOptional<z.ZodString>; /** * LabelSelector is a string that follows the label selection expression https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#api It matches with the resource labels. */ labelSelector: z.ZodOptional<z.ZodString>; /** * Name to match resources with. */ name: z.ZodOptional<z.ZodString>; /** * Namespace to select resources from. */ namespace: z.ZodOptional<z.ZodString>; /** * Version of the API Group to select resources from. Together with Group and Kind it is capable of unambiguously identifying and/or selecting resources. https://github.com/kubernetes/community/blob/master/contributors/design-proposals/api-machinery/api-group.md */ version: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { name?: string | undefined; kind?: string | undefined; namespace?: string | undefined; version?: string | undefined; annotationSelector?: string | undefined; group?: string | undefined; labelSelector?: string | undefined; }, { name?: string | undefined; kind?: string | undefined; namespace?: string | undefined; version?: string | undefined; annotationSelector?: string | undefined; group?: string | undefined; labelSelector?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { paths: string[]; target?: { name?: string | undefined; kind?: string | undefined; namespace?: string | undefined; version?: string | undefined; annotationSelector?: string | undefined; group?: string | undefined; labelSelector?: string | undefined; } | undefined; }, { paths: string[]; target?: { name?: string | undefined; kind?: string | undefined; namespace?: string | undefined; version?: string | undefined; annotationSelector?: string | undefined; group?: string | undefined; labelSelector?: string | undefined; } | undefined; }>, "many">>; /** * Mode defines how differences should be handled between the Helm manifest and the manifest currently applied to the cluster. If not explicitly set, it defaults to DiffModeDisabled. */ mode: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"enabled">, z.ZodLiteral<"warn">, z.ZodLiteral<"disabled">]>>; }, "strip", z.ZodTypeAny, { mode?: "enabled" | "warn" | "disabled" | undefined; ignore?: { paths: string[]; target?: { name?: string | undefined; kind?: string | undefined; namespace?: string | undefined; version?: string | undefined; annotationSelector?: string | undefined; group?: string | undefined; labelSelector?: string | undefined; } | undefined; }[] | undefined; }, { mode?: "enabled" | "warn" | "disabled" | undefined; ignore?: { paths: string[]; target?: { name?: string | undefined; kind?: string | undefined; namespace?: string | undefined; version?: string | undefined; annotationSelector?: string | undefined; group?: string | undefined; labelSelector?: string | undefined; } | undefined; }[] | undefined; }>>; /** * Install holds the configuration for Helm install actions for this HelmRelease. */ install: z.ZodOptional<z.ZodObject<{ /** * CRDs upgrade CRDs from the Helm Chart's crds directory according to the CRD upgrade policy provided here. Valid values are `Skip`, `Create` or `CreateReplace`. Default is `Create` and if omitted CRDs are installed but not updated. * Skip: do neither install nor replace (update) any CRDs. * Create: new CRDs are created, existing CRDs are neither updated nor deleted. * CreateReplace: new CRDs are created, existing CRDs are updated (replaced) but not deleted. * By default, CRDs are applied (installed) during Helm install action. With this option users can opt in to CRD replace existing CRDs on Helm install actions, which is not (yet) natively supported by Helm. https://helm.sh/docs/chart_best_practices/custom_resource_definitions. */ crds: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"Skip">, z.ZodLiteral<"Create">, z.ZodLiteral<"CreateReplace">]>>; /** * CreateNamespace tells the Helm install action to create the HelmReleaseSpec.TargetNamespace if it does not exist yet. On uninstall, the namespace will not be garbage collected. */ createNamespace: z.ZodOptional<z.ZodBoolean>; /** * DisableHooks prevents hooks from running during the Helm install action. */ disableHooks: z.ZodOptional<z.ZodBoolean>; /** * DisableOpenAPIValidation prevents the Helm install action from validating rendered templates against the Kubernetes OpenAPI Schema. */ disableOpenAPIValidation: z.ZodOptional<z.ZodBoolean>; /** * DisableWait disables the waiting for resources to be ready after a Helm install has been performed. */ disableWait: z.ZodOptional<z.ZodBoolean>; /** * DisableWaitForJobs disables waiting for jobs to complete after a Helm install has been performed. */ disableWaitForJobs: z.ZodOptional<z.ZodBoolean>; /** * Remediation holds the remediation configuration for when the Helm install action for the HelmRelease fails. The default is to not perform any action. */ remediation: z.ZodOptional<z.ZodObject<{ /** * IgnoreTestFailures tells the controller to skip remediation when the Helm tests are run after an install action but fail. Defaults to 'Test.IgnoreFailures'. */ ignoreTestFailures: z.ZodOptional<z.ZodBoolean>; /** * RemediateLastFailure tells the controller to remediate the last failure, when no retries remain. Defaults to 'false'. */ remediateLastFailure: z.ZodOptional<z.ZodBoolean>; /** * Retries is the number of retries that should be attempted on failures before bailing. Remediation, using an uninstall, is performed between each attempt. Defaults to '0', a negative integer equals to unlimited retries. */ retries: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { ignoreTestFailures?: boolean | undefined; remediateLastFailure?: boolean | undefined; retries?: number | undefined; }, { ignoreTestFailures?: boolean | undefined; remediateLastFailure?: boolean | undefined; retries?: number | undefined; }>>; /** * Replace tells the Helm install action to re-use the 'ReleaseName', but only if that name is a deleted release which remains in the history. */ replace: z.ZodOptional<z.ZodBoolean>; /** * SkipCRDs tells the Helm install action to not install any CRDs. By default, CRDs are installed if not already present. * Deprecated use CRD policy (`crds`) attribute with value `Skip` instead. */ skipCRDs: z.ZodOptional<z.ZodBoolean>; /** * Timeout is the time to wait for any individual Kubernetes operation (like Jobs for hooks) during the performance of a Helm install action. Defaults to 'HelmReleaseSpec.Timeout'. * @pattern ^([0-9]+(\.[0-9]+)?(ms|s|m|h))+$ */ timeout: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { replace?: boolean | undefined; crds?: "Skip" | "Create" | "CreateReplace" | undefined; createNamespace?: boolean | undefined; disableHooks?: boolean | undefined; disableOpenAPIValidation?: boolean | undefined; disableWait?: boolean | undefined; disableWaitForJobs?: boolean | undefined; remediation?: { ignoreTestFailures?: boolean | undefined; remediateLastFailure?: boolean | undefined; retries?: number | undefined; } | undefined; skipCRDs?: boolean | undefined; timeout?: string | undefined; }, { replace?: boolean | undefined; crds?: "Skip" | "Create" | "CreateReplace" | undefined; createNamespace?: boolean | undefined; disableHooks?: boolean | undefined; disableOpenAPIValidation?: boolean | undefined; disableWait?: boolean | undefined; disableWaitForJobs?: boolean | undefined; remediation?: { ignoreTestFailures?: boolean | undefined; remediateLastFailure?: boolean | undefined; retries?: number | undefined; } | undefined; skipCRDs?: boolean | undefined; timeout?: string | undefined; }>>; /** * Interval at which to reconcile the Helm release. * @pattern ^([0-9]+(\.[0-9]+)?(ms|s|m|h))+$ */ interval: z.ZodString; /** * KubeConfig for reconciling the HelmRelease on a remote cluster. When used in combination with HelmReleaseSpec.ServiceAccountName, forces the controller to act on behalf of that Service Account at the target cluster. If the --default-service-account flag is set, its value will be used as a controller level fallback for when HelmReleaseSpec.ServiceAccountName is empty. */ kubeConfig: z.ZodOptional<z.ZodObject<{ /** * SecretRef holds the name of a secret that contains a key with the kubeconfig file as the value. If no key is set, the key will default to 'value'. It is recommended that the kubeconfig is self-contained, and the secret is regularly updated if credentials such as a cloud-access-token expire. Cloud specific `cmd-path` auth helpers will not function without adding binaries and credentials to the Pod that is responsible for reconciling Kubernetes resources. */ secretRef: z.ZodObject<{ /** * Key in the Secret, when not specified an implementation-specific default key is used. */ key: z.ZodOptional<z.ZodString>; /** * Name of the Secret. */ name: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; key?: string | undefined; }, { name: string; key?: string | undefined; }>; }, "strip", z.ZodTypeAny, { secretRef: { name: string; key?: string | undefined; }; }, { secretRef: { name: string; key?: string | undefined; }; }>>; /** * MaxHistory is the number of revisions saved by Helm for this HelmRelease. Use '0' for an unlimited number of revisions; defaults to '5'. */ maxHistory: z.ZodOptional<z.ZodNumber>; /** * PersistentClient tells the controller to use a persistent Kubernetes client for this release. When enabled, the client will be reused for the duration of the reconciliation, instead of being created and destroyed for each (step of a) Helm action. * This can improve performance, but may cause issues with some Helm charts that for example do create Custom Resource Definitions during installation outside Helm's CRD lifecycle hooks, which are then not observed to be available by e.g. post-install hooks. * If not set, it defaults to true. */ persistentClient: z.ZodOptional<z.ZodBoolean>; /** * PostRenderers holds an array of Helm PostRenderers, which will be applied in order of their definition. */ postRenderers: z.ZodOptional<z.ZodArray<z.ZodObject<{ /** * Kustomization to apply as PostRenderer. */ kustomize: z.ZodOptional<z.ZodObject<{ /** * Images is a list of (image name, new name, new tag or digest) for changing image names, tags or digests. This can also be achieved with a patch, but this operator is simpler to specify. */ images: z.ZodOptional<z.ZodArray<z.ZodObject<{ /** * Digest is the value used to replace the original image tag. If digest is present NewTag value is ignored. */ digest: z.ZodOptional<z.ZodString>; /** * Name is a tag-less image name. */ name: z.ZodString; /** * NewName is the value used to replace the original name. */ newName: z.ZodOptional<z.ZodString>; /** * NewTag is the value used to replace the original tag. */ newTag: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { name: string; digest?: string | undefined; newName?: string | undefined; newTag?: string | undefined; }, { name: string; digest?: string | undefined; newName?: string | undefined; newTag?: string | undefined; }>, "many">>; /** * Strategic merge and JSON patches, defined as inline YAML objects, capable of targeting objects based on kind, label and annotation selectors. */ patches: z.ZodOptional<z.ZodArray<z.ZodObject<{ /** * Patch contains an inline StrategicMerge patch or an inline JSON6902 patch with an array of operation objects. */ patch: z.ZodString; /** * Target points to the resources that the patch document should be applied to. */ target: z.ZodOptional<z.ZodObject<{ /** * AnnotationSelector is a string that follows the label selection expression https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#api It matches with the resource annotations. */ annotationSelector: z.ZodOptional<z.ZodString>; /** * Group is the API group to select resources from. Together with Version and Kind it is capable of unambiguously identifying and/or selecting resources. https://github.com/kubernetes/community/blob/master/contributors/design-proposals/api-machinery/api-group.md */ group: z.ZodOptional<z.ZodString>; /** * Kind of the API Group to select resources from. Together with Group and Version it is capable of unambiguously identifying and/or selecting resources. https://github.com/kubernetes/community/blob/master/contributors/design-proposals/api-machinery/api-group.md */ kind: z.ZodOptional<z.ZodString>; /** * LabelSelector is a string that follows the label selection expression https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#api It matches with the resource labels. */ labelSelector: z.ZodOptional<z.ZodString>; /** * Name to match resources with. */ name: z.ZodOptional<z.ZodString>; /** * Namespace to select resources from. */ namespace: z.ZodOptional<z.ZodString>; /** * Version of the API Group to select resources from. Together with Group and Kind it is capable of unambiguously identifying and/or selecting resources. https://github.com/kubernetes/community/blob/master/contributors/design-proposals/api-machinery/api-group.md */ version: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { name?: string | undefined; kind?: string | undefined; namespace?: string | undefined; version?: string | undefined; annotationSelector?: string | undefined; group?: string | undefined; labelSelector?: string | undefined; }, { name?: string | undefined; kind?: string | undefined; namespace?: string | undefined; version?: string | undefined; annotationSelector?: string | undefined; group?: string | undefined; labelSelector?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { patch: string; target?: { name?: string | undefined; kind?: string | undefined; namespace?: string | undefined; version?: string | undefined; annotationSelector?: string | undefined; group?: string | undefined; labelSelector?: string | undefined; } | undefined; }, { patch: string; target?: { name?: string | undefined; kind?: string | undefined; namespace?: string | undefined; version?: string | undefined; annotationSelector?: string | undefined; group?: string | undefined; labelSelector?: string | undefined; } | undefined; }>, "many">>; /** * JSON 6902 patches, defined as inline YAML objects. Deprecated: use Patches instead. */ patchesJson6902: z.ZodOptional<z.ZodArray<z.ZodObject<{ /** * Patch contains the JSON6902 patch document with an array of operation objects. */ patch: z.ZodArray<z.ZodObject<{ /** * From contains a JSON-pointer value that references a location within the target document where the operation is performed. The meaning of the value depends on the value of Op, and is NOT taken into account by all operations. */ from: z.ZodOptional<z.ZodString>; /** * Op indicates the operation to perform. Its value MUST be one of "add", "remove", "replace", "move", "copy", or "test". https://datatracker.ietf.org/doc/html/rfc6902#section-4 */ op: z.ZodUnion<[z.ZodLiteral<"test">, z.ZodLiteral<"remove">, z.ZodLiteral<"add">, z.ZodLiteral<"replace">, z.ZodLiteral<"move">, z.ZodLiteral<"copy">]>; /** * Path contains the JSON-pointer value that references a location within the target document where the operation is performed. The meaning of the value depends on the value of Op. */ path: z.ZodString; /** * Value contains a valid JSON structure. The meaning of the value depends on the value of Op, and is NOT taken into account by all operations. */ value: z.ZodOptional<z.ZodAny>; }, "strip", z.ZodTypeAny, { path: string; op: "copy" | "test" | "remove" | "add" | "replace" | "move"; value?: any; from?: string | undefined; }, { path: string; op: "copy" | "test" | "remove" | "add" | "replace" | "move"; value?: any; from?: string | undefined; }>, "many">; /** * Target points to the resources that the patch document should be applied to. */ target: z.ZodObject<{ /** * AnnotationSelector is a string that follows the label selection expression https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#api It matches with the resource annotations. */ annotationSelector: z.ZodOptional<z.ZodString>; /** * Group is the API group to select resources from. Together with Version and Kind it is capable of unambiguously identifying and/or selecting resources. https://github.com/kubernetes/community/blob/master/contributors/design-proposals/api-machinery/api-group.md */ group: z.ZodOptional<z.ZodString>; /** * Kind of the API Group to select resources from. Together with Group and Version it is capable of unambiguously identifying and/or selecting resources. https://github.com/kubernetes/community/blob/master/contributors/design-proposals/api-machinery/api-group.md */ kind: z.ZodOptional<z.ZodString>; /** * LabelSelector is a string that follows the label selection expression https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#api It matches with the resource labels. */ labelSelector: z.ZodOptional<z.ZodString>; /** * Name to match resources with. */ name: z.ZodOptional<z.ZodString>; /** * Namespace to select resources from. */ namespace: z.ZodOptional<z.ZodString>; /** * Version of the API Group to select resources from. Together with Group and Kind it is capable of unambiguously identifying and/or selecting resources. https://github.com/kubernetes/community/blob/master/contributors/design-proposals/api-machinery/api-group.md */ version: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { name?: string | undefined; kind?: string | undefined; namespace?: string | undefined; version?: string | undefined; annotationSelector?: string | undefined; group?: string | undefined; labelSelector?: string | undefined; }, { name?: string | undefined; kind?: string | undefined; namespace?: string | undefined; version?: string | undefined; annotationSelector?: string | undefined; group?: string | undefined; labelSelector?: string | undefined; }>; }, "strip", z.ZodTypeAny, { patch: { path: string; op: "copy" | "test" | "remove" | "add" | "replace" | "move"; value?: any; from?: string | undefined; }[]; target: { name?: string | undefined; kind?: string | undefined; namespace?: string | undefined; version?: string | undefined; annotationSelector?: string | undefined; group?: string | undefined; labelSelector?: string | undefined; }; }, { patch: { path: string; op: "copy" | "test" | "remove" | "add" | "replace" | "move"; value?: any; from?: string | undefined; }[]; target: { name?: string | undefined; kind?: string | undefined; namespace?: string | undefined; version?: string | undefined; annotationSelector?: string | undefined; group?: string | undefined; labelSelector?: string | undefined; }; }>, "many">>; /** * Strategic merge patches, defined as inline YAML objects. Deprecated: use Patches instead. */ patchesStrategicMerge: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>; }, "strip", z.ZodTypeAny, { images?: { name: string; digest?: string | undefined; newName?: string | undefined; newTag?: string | undefined; }[] | undefined; patches?: { patch: string; target?: { name?: string | undefined; kind?: string | undefined; namespace?: string | undefined; version?: string | undefined; annotationSelector?: string | undefined; group?: string | undefined; labelSelector?: string | undefined; } | undefined; }[] | undefined; patchesJson6902?: { patch: { path: string; op: "copy" | "test" | "remove" | "add" | "replace" | "move"; value?: any; from?: string | undefined; }[]; target: { name?: string | undefined; kind?: string | undefined; namespace?: string | undefined; version?: string | undefined; annotationSelector?: string | undefined; group?: string | undefined; labelSelector?: string | undefined; }; }[] | undefined; patchesStrategicMerge?: any[] | undefined; }, { images?: { name: string; digest?: string | undefined; newName?: string | undefined; newTag?: string | undefined; }[] | undefined; patches?: { patch: string; target?: {