|
| 1 | +--- |
| 2 | +apiVersion: apiextensions.k8s.io/v1 |
| 3 | +kind: CustomResourceDefinition |
| 4 | +metadata: |
| 5 | + annotations: |
| 6 | + controller-gen.kubebuilder.io/version: v0.17.3 |
| 7 | + name: cachedresources.cache.kcp.io |
| 8 | +spec: |
| 9 | + group: cache.kcp.io |
| 10 | + names: |
| 11 | + categories: |
| 12 | + - kcp |
| 13 | + kind: CachedResource |
| 14 | + listKind: CachedResourceList |
| 15 | + plural: cachedresources |
| 16 | + singular: cachedresource |
| 17 | + scope: Cluster |
| 18 | + versions: |
| 19 | + - additionalPrinterColumns: |
| 20 | + - description: Resource type being published |
| 21 | + jsonPath: .spec.resource |
| 22 | + name: Resource |
| 23 | + type: string |
| 24 | + - jsonPath: .metadata.creationTimestamp |
| 25 | + name: Age |
| 26 | + type: date |
| 27 | + name: v1alpha1 |
| 28 | + schema: |
| 29 | + openAPIV3Schema: |
| 30 | + description: CachedResource defines a resource that should be published to |
| 31 | + other workspaces |
| 32 | + properties: |
| 33 | + apiVersion: |
| 34 | + description: |- |
| 35 | + APIVersion defines the versioned schema of this representation of an object. |
| 36 | + Servers should convert recognized schemas to the latest internal value, and |
| 37 | + may reject unrecognized values. |
| 38 | + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources |
| 39 | + type: string |
| 40 | + kind: |
| 41 | + description: |- |
| 42 | + Kind is a string value representing the REST resource this object represents. |
| 43 | + Servers may infer this from the endpoint the client submits requests to. |
| 44 | + Cannot be updated. |
| 45 | + In CamelCase. |
| 46 | + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds |
| 47 | + type: string |
| 48 | + metadata: |
| 49 | + type: object |
| 50 | + spec: |
| 51 | + description: CachedResourceSpec defines the desired state of CachedResource. |
| 52 | + properties: |
| 53 | + group: |
| 54 | + description: |- |
| 55 | + group is the name of an API group. |
| 56 | + For core groups this is the empty string '""'. |
| 57 | + pattern: ^(|[a-z0-9]([-a-z0-9]*[a-z0-9](\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*)?)$ |
| 58 | + type: string |
| 59 | + identity: |
| 60 | + description: |- |
| 61 | + identity points to a secret that contains the API identity in the 'key' file. |
| 62 | + The API identity allows access to CachedResource's resources via the APIExport. |
| 63 | +
|
| 64 | + Different CachedResource in a workspace can share a common identity, or have different |
| 65 | + ones. The identity (the secret) can also be transferred to another workspace |
| 66 | + when the ublishedResource is moved. |
| 67 | +
|
| 68 | + The identity is defaulted. A secret with the name of the CachedResource is automatically |
| 69 | + created. |
| 70 | + properties: |
| 71 | + secretRef: |
| 72 | + description: secretRef is a reference to a secret that contains |
| 73 | + the API identity in the 'key' file. |
| 74 | + properties: |
| 75 | + name: |
| 76 | + description: name is unique within a namespace to reference |
| 77 | + a secret resource. |
| 78 | + type: string |
| 79 | + namespace: |
| 80 | + description: namespace defines the space within which the |
| 81 | + secret name must be unique. |
| 82 | + type: string |
| 83 | + type: object |
| 84 | + x-kubernetes-map-type: atomic |
| 85 | + type: object |
| 86 | + labelSelector: |
| 87 | + description: LabelSelector is used to filter which resources should |
| 88 | + be published |
| 89 | + properties: |
| 90 | + matchExpressions: |
| 91 | + description: matchExpressions is a list of label selector requirements. |
| 92 | + The requirements are ANDed. |
| 93 | + items: |
| 94 | + description: |- |
| 95 | + A label selector requirement is a selector that contains values, a key, and an operator that |
| 96 | + relates the key and values. |
| 97 | + properties: |
| 98 | + key: |
| 99 | + description: key is the label key that the selector applies |
| 100 | + to. |
| 101 | + type: string |
| 102 | + operator: |
| 103 | + description: |- |
| 104 | + operator represents a key's relationship to a set of values. |
| 105 | + Valid operators are In, NotIn, Exists and DoesNotExist. |
| 106 | + type: string |
| 107 | + values: |
| 108 | + description: |- |
| 109 | + values is an array of string values. If the operator is In or NotIn, |
| 110 | + the values array must be non-empty. If the operator is Exists or DoesNotExist, |
| 111 | + the values array must be empty. This array is replaced during a strategic |
| 112 | + merge patch. |
| 113 | + items: |
| 114 | + type: string |
| 115 | + type: array |
| 116 | + x-kubernetes-list-type: atomic |
| 117 | + required: |
| 118 | + - key |
| 119 | + - operator |
| 120 | + type: object |
| 121 | + type: array |
| 122 | + x-kubernetes-list-type: atomic |
| 123 | + matchLabels: |
| 124 | + additionalProperties: |
| 125 | + type: string |
| 126 | + description: |- |
| 127 | + matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels |
| 128 | + map is equivalent to an element of matchExpressions, whose key field is "key", the |
| 129 | + operator is "In", and the values array contains only "value". The requirements are ANDed. |
| 130 | + type: object |
| 131 | + type: object |
| 132 | + x-kubernetes-map-type: atomic |
| 133 | + resource: |
| 134 | + description: |- |
| 135 | + resource is the name of the resource. |
| 136 | + Note: it is worth noting that you can not ask for permissions for resource provided by a CRD |
| 137 | + not provided by an api export. |
| 138 | + pattern: ^[a-z][-a-z0-9]*[a-z0-9]$ |
| 139 | + type: string |
| 140 | + version: |
| 141 | + description: version is the version of the resource. |
| 142 | + type: string |
| 143 | + required: |
| 144 | + - resource |
| 145 | + type: object |
| 146 | + status: |
| 147 | + description: CachedResourceStatus defines the observed state of CachedResource. |
| 148 | + properties: |
| 149 | + conditions: |
| 150 | + description: Current processing state of the Workspace. |
| 151 | + items: |
| 152 | + description: Condition defines an observation of a object operational |
| 153 | + state. |
| 154 | + properties: |
| 155 | + lastTransitionTime: |
| 156 | + description: |- |
| 157 | + Last time the condition transitioned from one status to another. |
| 158 | + This should be when the underlying condition changed. If that is not known, then using the time when |
| 159 | + the API field changed is acceptable. |
| 160 | + format: date-time |
| 161 | + type: string |
| 162 | + message: |
| 163 | + description: |- |
| 164 | + A human readable message indicating details about the transition. |
| 165 | + This field may be empty. |
| 166 | + type: string |
| 167 | + reason: |
| 168 | + description: |- |
| 169 | + The reason for the condition's last transition in CamelCase. |
| 170 | + The specific API may choose whether or not this field is considered a guaranteed API. |
| 171 | + This field may not be empty. |
| 172 | + type: string |
| 173 | + severity: |
| 174 | + description: |- |
| 175 | + Severity provides an explicit classification of Reason code, so the users or machines can immediately |
| 176 | + understand the current situation and act accordingly. |
| 177 | + The Severity field MUST be set only when Status=False. |
| 178 | + type: string |
| 179 | + status: |
| 180 | + description: Status of the condition, one of True, False, Unknown. |
| 181 | + type: string |
| 182 | + type: |
| 183 | + description: |- |
| 184 | + Type of condition in CamelCase or in foo.example.com/CamelCase. |
| 185 | + Many .condition.type values are consistent across resources like Available, but because arbitrary conditions |
| 186 | + can be useful (see .node.status.conditions), the ability to deconflict is important. |
| 187 | + type: string |
| 188 | + required: |
| 189 | + - lastTransitionTime |
| 190 | + - status |
| 191 | + - type |
| 192 | + type: object |
| 193 | + type: array |
| 194 | + identityHash: |
| 195 | + description: IdentityHash is a hash of the identity configuration |
| 196 | + type: string |
| 197 | + phase: |
| 198 | + default: Initializing |
| 199 | + description: Phase of the workspace (Initializing, Ready, Unavailable). |
| 200 | + enum: |
| 201 | + - Scheduling |
| 202 | + - Initializing |
| 203 | + - Ready |
| 204 | + - Deleting |
| 205 | + - Deleted |
| 206 | + type: string |
| 207 | + resourceCounts: |
| 208 | + description: ResourceCount is the number of resources that match the |
| 209 | + label selector |
| 210 | + properties: |
| 211 | + cache: |
| 212 | + type: integer |
| 213 | + local: |
| 214 | + type: integer |
| 215 | + required: |
| 216 | + - cache |
| 217 | + - local |
| 218 | + type: object |
| 219 | + type: object |
| 220 | + required: |
| 221 | + - spec |
| 222 | + type: object |
| 223 | + served: true |
| 224 | + storage: true |
| 225 | + subresources: |
| 226 | + status: {} |
0 commit comments