@soft-stech/fleet
Version:
360 lines (359 loc) • 14.6 kB
TypeScript
import { z } from "zod";
/**
* BundleNamespaceMapping maps bundles to clusters in other namespaces.
*/
export declare const IBundleNamespaceMappingSchema: 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">;
/**
* A label selector is a label query over a set of resources. The result of matchLabels and
* matchExpressions are ANDed. An empty label selector matches all objects. A null
* label selector matches no objects.
*/
bundleSelector: 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;
}>>;
/**
* 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<"BundleNamespaceMapping">;
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;
}>>;
/**
* A label selector is a label query over a set of resources. The result of matchLabels and
* matchExpressions are ANDed. An empty label selector matches all objects. A null
* label selector matches no objects.
*/
namespaceSelector: 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, {
apiVersion: "fleet.cattle.io/v1alpha1";
kind: "BundleNamespaceMapping";
metadata?: {
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;
} | undefined;
bundleSelector?: {
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;
}, {
apiVersion: "fleet.cattle.io/v1alpha1";
kind: "BundleNamespaceMapping";
metadata?: {
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;
} | undefined;
bundleSelector?: {
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;
}>;