--- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: controller-gen.kubebuilder.io/version: v0.17.3 name: apiexportendpointslices.apis.kcp.io spec: group: apis.kcp.io names: categories: - kcp kind: APIExportEndpointSlice listKind: APIExportEndpointSliceList plural: apiexportendpointslices singular: apiexportendpointslice scope: Cluster versions: - additionalPrinterColumns: - jsonPath: .spec.export.name name: Export type: string - jsonPath: .spec.partition name: Partition type: string - jsonPath: .metadata.creationTimestamp name: Age type: date name: v1alpha1 schema: openAPIV3Schema: description: |- APIExportEndpointSlice is a sink for the endpoints of an APIExport. These endpoints can be filtered by a Partition. They get consumed by the managers to start controllers and informers for the respective APIExport services. properties: apiVersion: description: |- 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 type: string kind: description: |- 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 type: string metadata: type: object spec: description: |- spec holds the desired state: - the targeted APIExport - an optional partition for filtering properties: export: description: export points to the API export. properties: name: description: name is the name of the APIExport that describes the API. type: string path: description: |- path is a logical cluster path where the APIExport is defined. If the path is unset, the logical cluster of the APIBinding is used. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(:[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$ type: string required: - name type: object x-kubernetes-validations: - message: APIExport reference must not be changed rule: self == oldSelf partition: description: |- partition (optional) points to a partition that is used for filtering the endpoints of the APIExport part of the slice. type: string required: - export type: object status: description: |- status communicates the observed state: the filtered list of endpoints for the APIExport service. properties: conditions: description: conditions is a list of conditions that apply to the APIExportEndpointSlice. items: description: Condition defines an observation of a object operational state. properties: lastTransitionTime: description: |- Last time the condition transitioned from one status to another. This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable. format: date-time type: string message: description: |- A human readable message indicating details about the transition. This field may be empty. type: string reason: description: |- The reason for the condition's last transition in CamelCase. The specific API may choose whether or not this field is considered a guaranteed API. This field may not be empty. type: string severity: description: |- Severity provides an explicit classification of Reason code, so the users or machines can immediately understand the current situation and act accordingly. The Severity field MUST be set only when Status=False. type: string status: description: Status of the condition, one of True, False, Unknown. type: string type: description: |- Type of condition in CamelCase or in foo.example.com/CamelCase. Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be useful (see .node.status.conditions), the ability to deconflict is important. type: string required: - lastTransitionTime - status - type type: object type: array endpoints: description: endpoints contains all the URLs of the APIExport service. items: description: |- Endpoint is one URL an endpoint slice advertises, and the shards it is meant for. Endpoint slices are read unstructured where the kind is only known at runtime -- an APIExport may point at any kind that follows this shape -- so this is the contract those readers rely on: status.endpoints[] with a url, and optionally a shards selector saying which shards that url serves. properties: shards: description: |- shards says which shards this URL serves. Saying nothing -- the zero value -- means the URL was composed for one specific shard and is matched by URL prefix instead, which is what kcp's own controllers publish. A status should not mix the two: either every endpoint says which shards it is for, or none does. properties: matchAll: description: |- matchAll says this URL serves every shard: one virtual workspace for the whole installation, which is what a provider running a single virtual workspace publishes. type: boolean selector: description: |- selector picks the shards this URL serves by matching against shard labels. Every shard labels itself with its own name, so a single shard is selected with matchLabels: {name: }, and groupings such as a region use whatever labels the installation puts on its shards -- the same ones Partition and PartitionSet select by. The most specific selector that matches a shard wins, so a URL for a region overrides one for the whole installation where the region applies. properties: matchExpressions: description: matchExpressions is a list of label selector requirements. The requirements are ANDed. items: description: |- A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: key: description: key is the label key that the selector applies to. type: string operator: description: |- operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. type: string values: description: |- 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. items: type: string type: array x-kubernetes-list-type: atomic required: - key - operator type: object type: array x-kubernetes-list-type: atomic matchLabels: additionalProperties: type: string description: |- 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. type: object type: object x-kubernetes-map-type: atomic type: object x-kubernetes-validations: - message: matchAll and selector are mutually exclusive rule: '!(has(self.matchAll) && self.matchAll && has(self.selector))' url: description: url is the virtual workspace URL serving this endpoint. minLength: 1 type: string required: - url type: object type: array x-kubernetes-list-map-keys: - url x-kubernetes-list-type: map shardSelector: description: |- shardSelector is the selector used to filter the shards. It is used to filter the shards when determining partition scope when deriving the endpoints. This is set by owning shard, and is used by follower shards to determine if its inscope or not. type: string type: object type: object served: true storage: true subresources: status: {}