UNPKG

@soft-stech/argo-rollouts

Version:
942 lines (941 loc) 858 kB
import { z } from "zod"; export declare const IExperimentSchema: z.ZodObject<{ apiVersion: z.ZodLiteral<"argoproj.io/v1alpha1">; kind: z.ZodLiteral<"Experiment">; 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; fieldsV1?: {} | undefined; manager?: string | undefined; 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; 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; 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; 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; 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; }>>; spec: z.ZodObject<{ analyses: z.ZodOptional<z.ZodArray<z.ZodObject<{ args: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; value: z.ZodOptional<z.ZodString>; valueFrom: z.ZodOptional<z.ZodObject<{ fieldRef: z.ZodOptional<z.ZodObject<{ fieldPath: z.ZodString; }, "strip", z.ZodTypeAny, { fieldPath: string; }, { fieldPath: string; }>>; secretKeyRef: z.ZodOptional<z.ZodObject<{ key: z.ZodString; name: z.ZodString; }, "strip", z.ZodTypeAny, { key: string; name: string; }, { key: string; name: string; }>>; }, "strip", z.ZodTypeAny, { fieldRef?: { fieldPath: string; } | undefined; secretKeyRef?: { key: string; name: string; } | undefined; }, { fieldRef?: { fieldPath: string; } | undefined; secretKeyRef?: { key: string; name: string; } | undefined; }>>; }, "strip", z.ZodTypeAny, { name: string; value?: string | undefined; valueFrom?: { fieldRef?: { fieldPath: string; } | undefined; secretKeyRef?: { key: string; name: string; } | undefined; } | undefined; }, { name: string; value?: string | undefined; valueFrom?: { fieldRef?: { fieldPath: string; } | undefined; secretKeyRef?: { key: string; name: string; } | undefined; } | undefined; }>, "many">>; clusterScope: z.ZodOptional<z.ZodBoolean>; name: z.ZodString; requiredForCompletion: z.ZodOptional<z.ZodBoolean>; templateName: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; templateName: string; args?: { name: string; value?: string | undefined; valueFrom?: { fieldRef?: { fieldPath: string; } | undefined; secretKeyRef?: { key: string; name: string; } | undefined; } | undefined; }[] | undefined; clusterScope?: boolean | undefined; requiredForCompletion?: boolean | undefined; }, { name: string; templateName: string; args?: { name: string; value?: string | undefined; valueFrom?: { fieldRef?: { fieldPath: string; } | undefined; secretKeyRef?: { key: string; name: string; } | undefined; } | undefined; }[] | undefined; clusterScope?: boolean | undefined; requiredForCompletion?: boolean | undefined; }>, "many">>; dryRun: z.ZodOptional<z.ZodArray<z.ZodObject<{ metricName: z.ZodString; }, "strip", z.ZodTypeAny, { metricName: string; }, { metricName: string; }>, "many">>; duration: z.ZodOptional<z.ZodString>; measurementRetention: z.ZodOptional<z.ZodArray<z.ZodObject<{ /** * * @format int32 */ limit: z.ZodNumber; metricName: z.ZodString; }, "strip", z.ZodTypeAny, { metricName: string; limit: number; }, { metricName: string; limit: number; }>, "many">>; /** * * @format int32 */ progressDeadlineSeconds: z.ZodOptional<z.ZodNumber>; /** * * @format int32 */ scaleDownDelaySeconds: z.ZodOptional<z.ZodNumber>; templates: z.ZodArray<z.ZodObject<{ /** * * @format int32 */ minReadySeconds: z.ZodOptional<z.ZodNumber>; name: z.ZodString; /** * * @format int32 */ replicas: z.ZodOptional<z.ZodNumber>; selector: z.ZodObject<{ matchExpressions: z.ZodOptional<z.ZodArray<z.ZodObject<{ key: z.ZodString; operator: z.ZodString; 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: 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; }>; service: z.ZodOptional<z.ZodObject<{ name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { name?: string | undefined; }, { name?: string | undefined; }>>; template: z.ZodObject<{ metadata: z.ZodOptional<z.ZodObject<{ annotations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; 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: z.ZodOptional<z.ZodObject<{ /** * * @format int64 */ activeDeadlineSeconds: z.ZodOptional<z.ZodNumber>; affinity: z.ZodOptional<z.ZodObject<{ nodeAffinity: z.ZodOptional<z.ZodObject<{ preferredDuringSchedulingIgnoredDuringExecution: z.ZodOptional<z.ZodArray<z.ZodObject<{ preference: z.ZodObject<{ matchExpressions: z.ZodOptional<z.ZodArray<z.ZodObject<{ key: z.ZodString; operator: z.ZodString; 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">>; matchFields: z.ZodOptional<z.ZodArray<z.ZodObject<{ key: z.ZodString; operator: z.ZodString; 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">>; }, "strip", z.ZodTypeAny, { matchExpressions?: { key: string; operator: string; values?: string[] | undefined; }[] | undefined; matchFields?: { key: string; operator: string; values?: string[] | undefined; }[] | undefined; }, { matchExpressions?: { key: string; operator: string; values?: string[] | undefined; }[] | undefined; matchFields?: { key: string; operator: string; values?: string[] | undefined; }[] | undefined; }>; /** * * @format int32 */ weight: z.ZodNumber; }, "strip", z.ZodTypeAny, { preference: { matchExpressions?: { key: string; operator: string; values?: string[] | undefined; }[] | undefined; matchFields?: { key: string; operator: string; values?: string[] | undefined; }[] | undefined; }; weight: number; }, { preference: { matchExpressions?: { key: string; operator: string; values?: string[] | undefined; }[] | undefined; matchFields?: { key: string; operator: string; values?: string[] | undefined; }[] | undefined; }; weight: number; }>, "many">>; requiredDuringSchedulingIgnoredDuringExecution: z.ZodOptional<z.ZodObject<{ nodeSelectorTerms: z.ZodArray<z.ZodObject<{ matchExpressions: z.ZodOptional<z.ZodArray<z.ZodObject<{ key: z.ZodString; operator: z.ZodString; 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">>; matchFields: z.ZodOptional<z.ZodArray<z.ZodObject<{ key: z.ZodString; operator: z.ZodString; 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">>; }, "strip", z.ZodTypeAny, { matchExpressions?: { key: string; operator: string; values?: string[] | undefined; }[] | undefined; matchFields?: { key: string; operator: string; values?: string[] | undefined; }[] | undefined; }, { matchExpressions?: { key: string; operator: string; values?: string[] | undefined; }[] | undefined; matchFields?: { key: string; operator: string; values?: string[] | undefined; }[] | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { nodeSelectorTerms: { matchExpressions?: { key: string; operator: string; values?: string[] | undefined; }[] | undefined; matchFields?: { key: string; operator: string; values?: string[] | undefined; }[] | undefined; }[]; }, { nodeSelectorTerms: { matchExpressions?: { key: string; operator: string; values?: string[] | undefined; }[] | undefined; matchFields?: { key: string; operator: string; values?: string[] | undefined; }[] | undefined; }[]; }>>; }, "strip", z.ZodTypeAny, { preferredDuringSchedulingIgnoredDuringExecution?: { preference: { matchExpressions?: { key: string; operator: string; values?: string[] | undefined; }[] | undefined; matchFields?: { key: string; operator: string; values?: string[] | undefined; }[] | undefined; }; weight: number; }[] | undefined; requiredDuringSchedulingIgnoredDuringExecution?: { nodeSelectorTerms: { matchExpressions?: { key: string; operator: string; values?: string[] | undefined; }[] | undefined; matchFields?: { key: string; operator: string; values?: string[] | undefined; }[] | undefined; }[]; } | undefined; }, { preferredDuringSchedulingIgnoredDuringExecution?: { preference: { matchExpressions?: { key: string; operator: string; values?: string[] | undefined; }[] | undefined; matchFields?: { key: string; operator: string; values?: string[] | undefined; }[] | undefined; }; weight: number; }[] | undefined; requiredDuringSchedulingIgnoredDuringExecution?: { nodeSelectorTerms: { matchExpressions?: { key: string; operator: string; values?: string[] | undefined; }[] | undefined; matchFields?: { key: string; operator: string; values?: string[] | undefined; }[] | undefined; }[]; } | undefined; }>>; podAffinity: z.ZodOptional<z.ZodObject<{ preferredDuringSchedulingIgnoredDuringExecution: z.ZodOptional<z.ZodArray<z.ZodObject<{ podAffinityTerm: z.ZodObject<{ labelSelector: z.ZodOptional<z.ZodObject<{ matchExpressions: z.ZodOptional<z.ZodArray<z.ZodObject<{ key: z.ZodString; operator: z.ZodString; 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: 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; }>>; namespaceSelector: z.ZodOptional<z.ZodObject<{ matchExpressions: z.ZodOptional<z.ZodArray<z.ZodObject<{ key: z.ZodString; operator: z.ZodString; 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: 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; }>>; namespaces: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; topologyKey: z.ZodString; }, "strip", z.ZodTypeAny, { topologyKey: string; labelSelector?: { matchExpressions?: { key: string; operator: string; values?: string[] | undefined; }[] | undefined; matchLabels?: Record<string, string> | undefined; } | undefined; namespaceSelector?: { matchExpressions?: { key: string; operator: string; values?: string[] | undefined; }[] | undefined; matchLabels?: Record<string, string> | undefined; } | undefined; namespaces?: string[] | undefined; }, { topologyKey: string; labelSelector?: { matchExpressions?: { key: string; operator: string; values?: string[] | undefined; }[] | undefined; matchLabels?: Record<string, string> | undefined; } | undefined; namespaceSelector?: { matchExpressions?: { key: string; operator: string; values?: string[] | undefined; }[] | undefined; matchLabels?: Record<string, string> | undefined; } | undefined; namespaces?: string[] | undefined; }>; /** * * @format int32 */ weight: z.ZodNumber; }, "strip", z.ZodTypeAny, { weight: number; podAffinityTerm: { topologyKey: string; labelSelector?: { matchExpressions?: { key: string; operator: string; values?: string[] | undefined; }[] | undefined; matchLabels?: Record<string, string> | undefined; } | undefined; namespaceSelector?: { matchExpressions?: { key: string; operator: string; values?: string[] | undefined; }[] | undefined; matchLabels?: Record<string, string> | undefined; } | undefined; namespaces?: string[] | undefined; }; }, { weight: number; podAffinityTerm: { topologyKey: string; labelSelector?: { matchExpressions?: { key: string; operator: string; values?: string[] | undefined; }[] | undefined; matchLabels?: Record<string, string> | undefined; } | undefined; namespaceSelector?: { matchExpressions?: { key: string; operator: string; values?: string[] | undefined; }[] | undefined; matchLabels?: Record<string, string> | undefined; } | undefined; namespaces?: string[] | undefined; }; }>, "many">>; requiredDuringSchedulingIgnoredDuringExecution: z.ZodOptional<z.ZodArray<z.ZodObject<{ labelSelector: z.ZodOptional<z.ZodObject<{ matchExpressions: z.ZodOptional<z.ZodArray<z.ZodObject<{ key: z.ZodString; operator: z.ZodString; 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: 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; }>>; namespaceSelector: z.ZodOptional<z.ZodObject<{ matchExpressions: z.ZodOptional<z.ZodArray<z.ZodObject<{ key: z.ZodString; operator: z.ZodString; 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: 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; }>>; namespaces: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; topologyKey: z.ZodString; }, "strip", z.ZodTypeAny, { topologyKey: string; labelSelector?: { matchExpressions?: { key: string; operator: string; values?: string[] | undefined; }[] | undefined; matchLabels?: Record<string, string> | undefined; } | undefined; namespaceSelector?: { matchExpressions?: { key: string; operator: string; values?: string[] | undefined; }[] | undefined; matchLabels?: Record<string, string> | undefined; } | undefined; namespaces?: string[] | undefined; }, { topologyKey: string; labelSelector?: { matchExpressions?: { key: string; operator: string; values?: string[] | undefined; }[] | undefined; matchLabels?: Record<string, string> | undefined; } | undefined; namespaceSelector?: { matchExpressions?: { key: string; operator: string; values?: string[] | undefined; }[] | undefined; matchLabels?: Record<string, string> | undefined; } | undefined; namespaces?: string[] | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { preferredDuringSchedulingIgnoredDuringExecution?: { weight: number; podAffinityTerm: { topologyKey: string; labelSelector?: { matchExpressions?: { key: string; operator: string; values?: string[] | undefined; }[] | undefined; matchLabels?: Record<string, string> | undefined; } | undefined; namespaceSelector?: { matchExpressions?: { key: string; operator: string; values?: string[] | undefined; }[] | undefined; matchLabels?: Record<string, string> | undefined; } | undefined; namespaces?: string[] | undefined; }; }[] | undefined; requiredDuringSchedulingIgnoredDuringExecution?: { topologyKey: string; labelSelector?: { matchExpressions?: { key: string; operator: string; values?: string[] | undefined; }[] | undefined; matchLabels?: Record<string, string> | undefined; } | undefined; namespaceSelector?: { matchExpressions?: { key: string; operator: string; values?: string[] | undefined; }[] | undefined; matchLabels?: Record<string, string> | undefined; } | undefined; namespaces?: string[] | undefined; }[] | undefined; }, { preferredDuringSchedulingIgnoredDuringExecution?: { weight: number; podAffinityTerm: { topologyKey: string; labelSelector?: { matchExpressions?: { key: string; operator: string; values?: string[] | undefined; }[] | undefined; matchLabels?: Record<string, string> | undefined; } | undefined; namespaceSelector?: { matchExpressions?: { key: string; operator: string; values?: string[] | undefined; }[] | undefined; matchLabels?: Record<string, string> | undefined; } | undefined; namespaces?: string[] | undefined; }; }[] | undefined; requiredDuringSchedulingIgnoredDuringExecution?: { topologyKey: string; labelSelector?: { matchExpressions?: { key: string; operator: string; values?: string[] | undefined; }[] | undefined; matchLabels?: Record<string, string> | undefined; } | undefined; namespaceSelector?: { matchExpressions?: { key: string; operator: string; values?: string[] | undefined; }[] | undefined; matchLabels?: Record<string, string> | undefined; } | undefined; namespaces?: string[] | undefined; }[] | undefined; }>>; podAntiAffinity: z.ZodOptional<z.ZodObject<{ preferredDuringSchedulingIgnoredDuringExecution: z.ZodOptional<z.ZodArray<z.ZodObject<{ podAffinityTerm: z.ZodObject<{ labelSelector: z.ZodOptional<z.ZodObject<{ matchExpressions: z.ZodOptional<z.ZodArray<z.ZodObject<{ key: z.ZodString; operator: z.ZodString; 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: 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; }>>; namespaceSelector: z.ZodOptional<z.ZodObject<{ matchExpressions: z.ZodOptional<z.ZodArray<z.ZodObject<{ key: z.ZodString; operator: z.ZodString; values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;