johnandersen777.bsky.social/socialweb-computer-console
console.socialweb.computer: kcp, kubectl and ssh compiled to wasm in a browser tab with a terminal; a kcp fork
0
0
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.17.3
name: apibindings.apis.kcp.io
spec:
conversion:
strategy: None
group: apis.kcp.io
names:
categories:
- kcp
kind: APIBinding
listKind: APIBindingList
plural: apibindings
singular: apibinding
scope: Cluster
versions:
- additionalPrinterColumns:
- jsonPath: .metadata.creationTimestamp
name: Age
type: date
- jsonPath: .status.conditions[?(@.type=="Ready")].status
name: Ready
type: string
name: v1alpha1
schema:
openAPIV3Schema:
description: |-
APIBinding enables a set of resources and their behaviour through an external
service provider in this workspace.
The service provider uses an APIExport to expose the API.
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.
properties:
permissionClaims:
description: |-
permissionClaims records decisions about permission claims requested by the API service provider.
Individual claims can be accepted or rejected. If accepted, the API service provider gets the
requested access to the specified resources in this workspace. Access is granted per
GroupResource, identity, and other properties.
items:
description: AcceptablePermissionClaim is a PermissionClaim that
records if the user accepts or rejects it.
properties:
all:
description: |-
all claims all resources for the given group/resource.
This is mutually exclusive with resourceSelector.
type: boolean
group:
description: |-
group is the name of an API group.
For core groups this is the empty string '""'.
pattern: ^(|[a-z0-9]([-a-z0-9]*[a-z0-9](\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*)?)$
type: string
identityHash:
description: |-
This is the identity for a given APIExport that the APIResourceSchema belongs to.
The hash can be found on APIExport and APIResourceSchema's status.
It will be empty for core types.
Note that one must look this up for a particular kcp instance.
type: string
resource:
description: |-
resource is the name of the resource.
Note: it is worth noting that you can not ask for permissions for resource provided by a CRD
not provided by an api export.
pattern: ^[a-z][-a-z0-9]*[a-z0-9]$
type: string
resourceSelector:
description: resourceSelector is a list of claimed resource
selectors.
items:
properties:
name:
description: |-
name of an object within a claimed group/resource.
It matches the metadata.name field of the underlying object.
If namespace is unset, all objects matching that name will be claimed.
maxLength: 253
minLength: 1
pattern: ^([a-z0-9][-a-z0-9_.]*)?[a-z0-9]$
type: string
namespace:
description: |-
namespace containing the named object. Matches metadata.namespace field.
If "name" is unset, all objects from the namespace are being claimed.
minLength: 1
type: string
type: object
x-kubernetes-validations:
- message: at least one field must be set
rule: has(self.__namespace__) || has(self.name)
type: array
state:
enum:
- Accepted
- Rejected
type: string
required:
- resource
- state
type: object
x-kubernetes-validations:
- message: either "all" or "resourceSelector" must be set
rule: (has(self.all) && self.all) != (has(self.resourceSelector)
&& size(self.resourceSelector) > 0)
type: array
reference:
description: reference uniquely identifies an API to bind to.
oneOf:
- required:
- export
properties:
export:
description: |-
export is a reference to an APIExport by cluster name and export name.
The creator of the APIBinding needs to have access to the APIExport with the
verb `bind` in order to bind to it.
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
type: object
x-kubernetes-validations:
- message: APIExport reference must not be changed
rule: self == oldSelf
required:
- reference
type: object
status:
description: Status communicates the observed state.
properties:
apiExportClusterName:
description: APIExportClusterName records the name (not path) of the
logical cluster that contains the APIExport.
type: string
appliedPermissionClaims:
description: |-
appliedPermissionClaims is a list of the permission claims the system has seen and applied,
according to the requests of the API service provider in the APIExport and the acceptance
state in spec.permissionClaims.
items:
description: |-
PermissionClaim identifies an object by GR and identity hash.
Its purpose is to determine the added permissions that a service provider may
request and that a consumer may accept and allow the service provider access to.
properties:
all:
description: |-
all claims all resources for the given group/resource.
This is mutually exclusive with resourceSelector.
type: boolean
group:
description: |-
group is the name of an API group.
For core groups this is the empty string '""'.
pattern: ^(|[a-z0-9]([-a-z0-9]*[a-z0-9](\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*)?)$
type: string
identityHash:
description: |-
This is the identity for a given APIExport that the APIResourceSchema belongs to.
The hash can be found on APIExport and APIResourceSchema's status.
It will be empty for core types.
Note that one must look this up for a particular kcp instance.
type: string
resource:
description: |-
resource is the name of the resource.
Note: it is worth noting that you can not ask for permissions for resource provided by a CRD
not provided by an api export.
pattern: ^[a-z][-a-z0-9]*[a-z0-9]$
type: string
resourceSelector:
description: resourceSelector is a list of claimed resource
selectors.
items:
properties:
name:
description: |-
name of an object within a claimed group/resource.
It matches the metadata.name field of the underlying object.
If namespace is unset, all objects matching that name will be claimed.
maxLength: 253
minLength: 1
pattern: ^([a-z0-9][-a-z0-9_.]*)?[a-z0-9]$
type: string
namespace:
description: |-
namespace containing the named object. Matches metadata.namespace field.
If "name" is unset, all objects from the namespace are being claimed.
minLength: 1
type: string
type: object
x-kubernetes-validations:
- message: at least one field must be set
rule: has(self.__namespace__) || has(self.name)
type: array
required:
- resource
type: object
x-kubernetes-validations:
- message: either "all" or "resourceSelector" must be set
rule: (has(self.all) && self.all) != (has(self.resourceSelector)
&& size(self.resourceSelector) > 0)
type: array
boundResources:
description: boundResources records the state of bound APIs.
items:
description: BoundAPIResource describes a bound GroupVersionResource
through an APIResourceSchema of an APIExport..
properties:
group:
description: group is the group of the bound API. Empty string
for the core API group.
type: string
resource:
description: |-
resource is the resource of the bound API.
kubebuilder:validation:MinLength=1
type: string
schema:
description: Schema references the APIResourceSchema that is
bound to this API.
properties:
UID:
description: UID is the UID of the APIResourceSchema that
is bound to this API.
minLength: 1
type: string
identityHash:
description: |-
identityHash is the hash of the API identity that this schema is bound to.
The API identity determines the etcd prefix used to persist the object.
Different identity means that the objects are effectively served and stored
under a distinct resource. A CRD of the same GroupVersionResource uses a
different identity and hence a separate etcd prefix.
minLength: 1
type: string
name:
description: name is the bound APIResourceSchema name.
minLength: 1
type: string
required:
- UID
- identityHash
- name
type: object
storageVersions:
description: |-
storageVersions lists all versions of a resource that were ever persisted. Tracking these
versions allows a migration path for stored versions in etcd. The field is mutable
so a migration controller can finish a migration to another version (ensuring
no old objects are left in storage), and then remove the rest of the
versions from this list.
Versions may not be removed while they exist in this list.
items:
type: string
type: array
x-kubernetes-list-type: set
required:
- group
- resource
- schema
type: object
type: array
x-kubernetes-list-map-keys:
- group
- resource
x-kubernetes-list-type: map
conditions:
description: conditions is a list of conditions that apply to the
APIBinding.
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
exportPermissionClaims:
description: |-
exportPermissionClaims records the permissions that the export provider is asking for
the binding to grant.
items:
description: |-
PermissionClaim identifies an object by GR and identity hash.
Its purpose is to determine the added permissions that a service provider may
request and that a consumer may accept and allow the service provider access to.
properties:
all:
description: |-
all claims all resources for the given group/resource.
This is mutually exclusive with resourceSelector.
type: boolean
group:
description: |-
group is the name of an API group.
For core groups this is the empty string '""'.
pattern: ^(|[a-z0-9]([-a-z0-9]*[a-z0-9](\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*)?)$
type: string
identityHash:
description: |-
This is the identity for a given APIExport that the APIResourceSchema belongs to.
The hash can be found on APIExport and APIResourceSchema's status.
It will be empty for core types.
Note that one must look this up for a particular kcp instance.
type: string
resource:
description: |-
resource is the name of the resource.
Note: it is worth noting that you can not ask for permissions for resource provided by a CRD
not provided by an api export.
pattern: ^[a-z][-a-z0-9]*[a-z0-9]$
type: string
resourceSelector:
description: resourceSelector is a list of claimed resource
selectors.
items:
properties:
name:
description: |-
name of an object within a claimed group/resource.
It matches the metadata.name field of the underlying object.
If namespace is unset, all objects matching that name will be claimed.
maxLength: 253
minLength: 1
pattern: ^([a-z0-9][-a-z0-9_.]*)?[a-z0-9]$
type: string
namespace:
description: |-
namespace containing the named object. Matches metadata.namespace field.
If "name" is unset, all objects from the namespace are being claimed.
minLength: 1
type: string
type: object
x-kubernetes-validations:
- message: at least one field must be set
rule: has(self.__namespace__) || has(self.name)
type: array
required:
- resource
type: object
x-kubernetes-validations:
- message: either "all" or "resourceSelector" must be set
rule: (has(self.all) && self.all) != (has(self.resourceSelector)
&& size(self.resourceSelector) > 0)
type: array
phase:
description: |-
phase is the current phase of the APIBinding:
- "": the APIBinding has just been created, waiting to be bound.
- Binding: the APIBinding is being bound.
- Bound: the APIBinding is bound and the referenced APIs are available in the workspace.
enum:
- ""
- Binding
- Bound
type: string
type: object
required:
- spec
type: object
served: true
storage: false
subresources:
status: {}
- additionalPrinterColumns:
- jsonPath: .metadata.creationTimestamp
name: Age
type: date
- jsonPath: .status.conditions[?(@.type=="Ready")].status
name: Ready
type: string
name: v1alpha2
schema:
openAPIV3Schema:
description: |-
APIBinding enables a set of resources and their behaviour through an external
service provider in this workspace.
The service provider uses an APIExport to expose the API.
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.
properties:
deletionPolicy:
default: Delete
description: |-
deletionPolicy controls what happens to instances of bound resources when
this APIBinding is deleted and no other APIBinding adopts them.
"Delete" (the default) deletes all instances of all bound resources.
"WaitForSuccessor" holds the APIBinding's finalizer until every bound
group/resource that still has instances gains a successor APIBinding to
adopt them: the binding stays in deletion with condition
BindingResourceDeleteSuccess=False, reason WaitingForSuccessor, and the
instances remain in storage, covered by this binding, until the handover
completes. Patch the policy back to "Delete" to let deletion proceed
destructively.
Independent of this policy, instances of a bound group/resource are never
deleted if, at deletion time, another APIBinding in the workspace
references an APIExport serving the same group/resource with the same
APIResourceSchema (by UID) and the same identity: that binding adopts the
instances instead.
enum:
- Delete
- WaitForSuccessor
type: string
permissionClaims:
description: |-
permissionClaims records decisions about permission claims requested by the API service provider.
Individual claims can be accepted or rejected. If accepted, the API service provider gets the
requested access to the specified resources in this workspace. Access is granted per
GroupResource, identity, and other properties.
items:
description: AcceptablePermissionClaim is a PermissionClaim that
records if the user accepts or rejects it.
properties:
defaultSelector:
description: |-
defaultSelector is the default selector to use when creating APIBindings
via WorkspaceType's defaultAPIBindings. If not set, the APIBinding will
default to matchAll: true.
This allows API providers to suggest a default scope for permission claims
that will be used when workspaces are automatically created with default
APIBindings. Users can always override the default selector by accepting the
claim with a different selector or by manually creating APIBindings with a custom selector.
properties:
matchAll:
description: matchAll grants access to all objects of the
claimed resource.
type: boolean
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
group:
default: ""
description: |-
group is the name of an API group.
For core groups this is the empty string '""'.
pattern: ^(|[a-z0-9]([-a-z0-9]*[a-z0-9](\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*)?)$
type: string
identityHash:
default: ""
description: |-
This is the identity for a given APIExport that the APIResourceSchema belongs to.
The hash can be found on APIExport and APIResourceSchema's status.
It will be empty for core types.
Note that one must look this up for a particular kcp instance.
type: string
resource:
description: |-
resource is the name of the resource.
Note: it is worth noting that you can not ask for permissions for resource provided by a CRD
not provided by an api export.
pattern: ^[a-z][-a-z0-9]*[a-z0-9]$
type: string
selector:
description: |-
PermissionClaimSelector configures scoped access to objects
of a claimed resource.
properties:
matchAll:
description: matchAll grants access to all objects of the
claimed resource.
type: boolean
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
x-kubernetes-validations:
- message: Permission claim selector is immutable
rule: self == oldSelf
state:
enum:
- Accepted
- Rejected
type: string
verbs:
description: |-
verbs is a list of supported API operation types (this includes
but is not limited to get, list, watch, create, update, patch,
delete, deletecollection, and proxy).
items:
type: string
minItems: 1
type: array
x-kubernetes-list-type: set
required:
- resource
- selector
- state
- verbs
type: object
type: array
x-kubernetes-list-map-keys:
- group
- resource
- identityHash
x-kubernetes-list-type: map
reference:
description: reference uniquely identifies an API to bind to.
properties:
export:
description: |-
export is a reference to an APIExport by cluster name and export name.
The creator of the APIBinding needs to have access to the APIExport with the
verb `bind` in order to bind to it.
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
type: object
x-kubernetes-validations:
- message: APIExport reference must not be changed
rule: self == oldSelf
required:
- reference
type: object
status:
description: Status communicates the observed state.
properties:
apiExportClusterName:
description: APIExportClusterName records the name (not path) of the
logical cluster that contains the APIExport.
type: string
appliedPermissionClaims:
description: |-
appliedPermissionClaims is a list of the permission claims the system has seen and applied,
according to the requests of the API service provider in the APIExport and the acceptance
state in spec.permissionClaims.
items:
description: |-
ScopedPermissionClaim embeds a PermissionClaim and adds a selector to
scope down access to objects of the claimed resource.
properties:
defaultSelector:
description: |-
defaultSelector is the default selector to use when creating APIBindings
via WorkspaceType's defaultAPIBindings. If not set, the APIBinding will
default to matchAll: true.
This allows API providers to suggest a default scope for permission claims
that will be used when workspaces are automatically created with default
APIBindings. Users can always override the default selector by accepting the
claim with a different selector or by manually creating APIBindings with a custom selector.
properties:
matchAll:
description: matchAll grants access to all objects of the
claimed resource.
type: boolean
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
group:
default: ""
description: |-
group is the name of an API group.
For core groups this is the empty string '""'.
pattern: ^(|[a-z0-9]([-a-z0-9]*[a-z0-9](\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*)?)$
type: string
identityHash:
default: ""
description: |-
This is the identity for a given APIExport that the APIResourceSchema belongs to.
The hash can be found on APIExport and APIResourceSchema's status.
It will be empty for core types.
Note that one must look this up for a particular kcp instance.
type: string
resource:
description: |-
resource is the name of the resource.
Note: it is worth noting that you can not ask for permissions for resource provided by a CRD
not provided by an api export.
pattern: ^[a-z][-a-z0-9]*[a-z0-9]$
type: string
selector:
description: |-
PermissionClaimSelector configures scoped access to objects
of a claimed resource.
properties:
matchAll:
description: matchAll grants access to all objects of the
claimed resource.
type: boolean
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
x-kubernetes-validations:
- message: Permission claim selector is immutable
rule: self == oldSelf
verbs:
description: |-
verbs is a list of supported API operation types (this includes
but is not limited to get, list, watch, create, update, patch,
delete, deletecollection, and proxy).
items:
type: string
minItems: 1
type: array
x-kubernetes-list-type: set
required:
- resource
- selector
- verbs
type: object
type: array
x-kubernetes-list-map-keys:
- group
- resource
- identityHash
x-kubernetes-list-type: map
boundResources:
description: boundResources records the state of bound APIs.
items:
description: BoundAPIResource describes a bound GroupVersionResource
through an APIResourceSchema of an APIExport..
properties:
group:
description: group is the group of the bound API. Empty string
for the core API group.
type: string
resource:
description: |-
resource is the resource of the bound API.
kubebuilder:validation:MinLength=1
type: string
schema:
description: Schema references the APIResourceSchema that is
bound to this API.
properties:
UID:
description: UID is the UID of the APIResourceSchema that
is bound to this API.
minLength: 1
type: string
identityHash:
description: |-
identityHash is the hash of the API identity that this schema is bound to.
The API identity determines the etcd prefix used to persist the object.
Different identity means that the objects are effectively served and stored
under a distinct resource. A CRD of the same GroupVersionResource uses a
different identity and hence a separate etcd prefix.
minLength: 1
type: string
name:
description: name is the bound APIResourceSchema name.
minLength: 1
type: string
required:
- UID
- identityHash
- name
type: object
storageVersions:
description: |-
storageVersions lists all versions of a resource that were ever persisted. Tracking these
versions allows a migration path for stored versions in etcd. The field is mutable
so a migration controller can finish a migration to another version (ensuring
no old objects are left in storage), and then remove the rest of the
versions from this list.
Versions may not be removed while they exist in this list.
items:
type: string
type: array
x-kubernetes-list-type: set
required:
- group
- resource
- schema
type: object
type: array
x-kubernetes-list-map-keys:
- group
- resource
x-kubernetes-list-type: map
conditions:
description: conditions is a list of conditions that apply to the
APIBinding.
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
exportPermissionClaims:
description: |-
exportPermissionClaims records the permissions that the export provider is asking for
the binding to grant.
items:
description: |-
PermissionClaim identifies an object by GR and identity hash.
Its purpose is to determine the added permissions that a service provider may
request and that a consumer may accept and allow the service provider access to.
properties:
defaultSelector:
description: |-
defaultSelector is the default selector to use when creating APIBindings
via WorkspaceType's defaultAPIBindings. If not set, the APIBinding will
default to matchAll: true.
This allows API providers to suggest a default scope for permission claims
that will be used when workspaces are automatically created with default
APIBindings. Users can always override the default selector by accepting the
claim with a different selector or by manually creating APIBindings with a custom selector.
properties:
matchAll:
description: matchAll grants access to all objects of the
claimed resource.
type: boolean
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
group:
default: ""
description: |-
group is the name of an API group.
For core groups this is the empty string '""'.
pattern: ^(|[a-z0-9]([-a-z0-9]*[a-z0-9](\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*)?)$
type: string
identityHash:
default: ""
description: |-
This is the identity for a given APIExport that the APIResourceSchema belongs to.
The hash can be found on APIExport and APIResourceSchema's status.
It will be empty for core types.
Note that one must look this up for a particular kcp instance.
type: string
resource:
description: |-
resource is the name of the resource.
Note: it is worth noting that you can not ask for permissions for resource provided by a CRD
not provided by an api export.
pattern: ^[a-z][-a-z0-9]*[a-z0-9]$
type: string
verbs:
description: |-
verbs is a list of supported API operation types (this includes
but is not limited to get, list, watch, create, update, patch,
delete, deletecollection, and proxy).
items:
type: string
minItems: 1
type: array
x-kubernetes-list-type: set
required:
- resource
- verbs
type: object
type: array
phase:
description: |-
phase is the current phase of the APIBinding:
- "": the APIBinding has just been created, waiting to be bound.
- Binding: the APIBinding is being bound.
- Bound: the APIBinding is bound and the referenced APIs are available in the workspace.
enum:
- ""
- Binding
- Bound
type: string
type: object
required:
- spec
type: object
served: true
storage: true
subresources:
status: {}