apiVersion: apis.kcp.io/v1alpha1 kind: APIResourceSchema metadata: name: v260519-96f2749.workspacetypes.tenancy.kcp.io spec: group: tenancy.kcp.io names: categories: - kcp kind: WorkspaceType listKind: WorkspaceTypeList plural: workspacetypes singular: workspacetype scope: Cluster versions: - name: v1alpha1 schema: description: WorkspaceType specifies behaviour of workspaces of this type. 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: properties: name: maxLength: 63 minLength: 1 not: enum: - system - any pattern: ^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$ type: string type: object spec: properties: additionalWorkspaceLabels: additionalProperties: type: string description: |- additionalWorkspaceLabels are a set of labels that will be added to a Workspace on creation. type: object authenticationConfigurations: description: |- authenticationConfigurations are additional authentication options that should apply to any workspace using this workspace type. items: description: AuthenticationConfigurationReference provides the fields necessary to resolve a WorkspaceAuthenticationConfiguration. properties: name: description: name is the name of the WorkspaceAuthenticationConfiguration. type: string required: - name type: object type: array defaultAPIBindingLifecycle: description: Configure the lifecycle behaviour of defaultAPIBindings. enum: - InitializeOnly - Maintain type: string defaultAPIBindings: description: |- defaultAPIBindings are the APIs to bind during initialization of workspaces created from this type. The APIBinding names will be generated dynamically. items: description: APIExportReference provides the fields necessary to resolve an APIExport. properties: export: description: export is the name of the APIExport. type: string path: description: |- path is the fully-qualified path to the workspace containing the APIExport. If it is empty, the current workspace is assumed. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(:[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$ type: string required: - export type: object type: array defaultChildWorkspaceType: default: name: universal path: root description: |- defaultChildWorkspaceType is the WorkspaceType that will be used by default if another, nested Workspace is created in a workspace of this type. When this field is unset, the user must specify a type when creating nested workspaces. Extending another WorkspaceType does not inherit its defaultChildWorkspaceType. properties: name: description: name is the name of the WorkspaceType pattern: ^[a-z]([a-z0-9-]{0,61}[a-z0-9])? type: string path: description: path is an absolute reference to the workspace that owns this type, e.g. root:org:ws. 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 extend: description: |- extend is a list of other WorkspaceTypes whose initializers and limitAllowedChildren and limitAllowedParents this WorkspaceType inherits. Extension is additive: by (transitively) extending another WorkspaceType, this WorkspaceType is considered to be that other type when evaluating limitAllowedChildren and limitAllowedParents constraints. As a result, a type that extends multiple types satisfies a constraint that allows any one of those types, so the effective allowed set is the union of the extended types and not their intersection. A dependency cycle stop this WorkspaceType from being admitted as the type of a Workspace. A non-existing dependency stop this WorkspaceType from being admitted as the type of a Workspace. properties: with: description: |- with are WorkspaceTypes whose initializers are added to the list for the owning type, and for whom the owning type becomes an alias. items: description: WorkspaceTypeReference is a globally unique, fully qualified reference to a workspace type. properties: name: description: name is the name of the WorkspaceType pattern: ^[a-z]([a-z0-9-]{0,61}[a-z0-9])? type: string path: description: path is an absolute reference to the workspace that owns this type, e.g. root:org:ws. 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: array type: object initializer: description: |- initializer determines if this WorkspaceType has an associated initializing controller. These controllers are used to add functionality to a Workspace; all controllers must finish their work before the Workspace becomes ready for use. One initializing controller is supported per WorkspaceType; the identifier for this initializer will be a colon-delimited string using the workspace in which the WorkspaceType is defined, and the type's name. For example, if a WorkspaceType `example` is created in the `root:org` workspace, the implicit initializer name is `root:org:example`. type: boolean initializerPermissions: description: |- initializerPermissions are the RBAC rules granted to initializer controllers when they access workspace content through the initializing virtual workspace's content proxy. Rules are evaluated in-process by the VW proxy on each request; no ClusterRole or ClusterRoleBinding objects are created inside the workspace. When empty (the default), the VW content proxy falls back to impersonating the workspace owner (full cluster-admin), preserving the historical behavior. Changes take effect immediately for all workspaces of this type. items: description: |- PolicyRule holds information that describes a policy rule, but does not contain information about who the rule applies to or which namespace the rule applies to. properties: apiGroups: description: |- APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. "" represents the core API group and "*" represents all API groups. items: type: string type: array x-kubernetes-list-type: atomic nonResourceURLs: description: |- NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"), but not both. items: type: string type: array x-kubernetes-list-type: atomic resourceNames: description: ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. items: type: string type: array x-kubernetes-list-type: atomic resources: description: Resources is a list of resources this rule applies to. '*' represents all resources. items: type: string type: array x-kubernetes-list-type: atomic verbs: description: Verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs. items: type: string type: array x-kubernetes-list-type: atomic required: - verbs type: object type: array limitAllowedChildren: description: |- limitAllowedChildren specifies constraints for sub-workspaces created in workspaces of this type. These are in addition to child constraints of types this one extends. oneOf: - required: - none - required: - types properties: none: description: none means that no type matches. type: boolean types: description: |- types is a list of WorkspaceTypes that match. A workspace type extending another workspace type automatically is considered as that extended type as well (even transitively). An empty list matches all types. items: description: WorkspaceTypeReference is a globally unique, fully qualified reference to a workspace type. properties: name: description: name is the name of the WorkspaceType pattern: ^[a-z]([a-z0-9-]{0,61}[a-z0-9])? type: string path: description: path is an absolute reference to the workspace that owns this type, e.g. root:org:ws. 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 minItems: 1 type: array type: object limitAllowedParents: description: |- limitAllowedParents specifies constraints for the parent workspace that workspaces of this type are created in. These are in addition to parent constraints of types this one extends. oneOf: - required: - none - required: - types properties: none: description: none means that no type matches. type: boolean types: description: |- types is a list of WorkspaceTypes that match. A workspace type extending another workspace type automatically is considered as that extended type as well (even transitively). An empty list matches all types. items: description: WorkspaceTypeReference is a globally unique, fully qualified reference to a workspace type. properties: name: description: name is the name of the WorkspaceType pattern: ^[a-z]([a-z0-9-]{0,61}[a-z0-9])? type: string path: description: path is an absolute reference to the workspace that owns this type, e.g. root:org:ws. 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 minItems: 1 type: array type: object terminator: description: |- Terminator determines if this WorkspaceType has an associated terminating controller. These controllers are used to add functionality to a Workspace; all controllers must finish their work before the Workspace is being deleted. One terminating controller is supported per WorkspaceType; the identifier for this terminator will be a colon-delimited string using the workspace in which the WorkspaceType is defined, and the type's name. For example, if a WorkspaceType `example` is created in the `root:org` workspace, the implicit terminator name is `root:org:example`. type: boolean terminatorPermissions: description: |- terminatorPermissions are the RBAC rules granted to terminator controllers when they access workspace content through the terminating virtual workspace's content proxy. Rules are evaluated in-process by the VW proxy on each request; no ClusterRole or ClusterRoleBinding objects are created inside the workspace. When empty (the default), the VW content proxy falls back to impersonating the workspace owner (full cluster-admin), preserving the historical behavior. Changes take effect immediately for all workspaces of this type. items: description: |- PolicyRule holds information that describes a policy rule, but does not contain information about who the rule applies to or which namespace the rule applies to. properties: apiGroups: description: |- APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. "" represents the core API group and "*" represents all API groups. items: type: string type: array x-kubernetes-list-type: atomic nonResourceURLs: description: |- NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"), but not both. items: type: string type: array x-kubernetes-list-type: atomic resourceNames: description: ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. items: type: string type: array x-kubernetes-list-type: atomic resources: description: Resources is a list of resources this rule applies to. '*' represents all resources. items: type: string type: array x-kubernetes-list-type: atomic verbs: description: Verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs. items: type: string type: array x-kubernetes-list-type: atomic required: - verbs type: object type: array type: object status: description: WorkspaceTypeStatus defines the observed state of WorkspaceType. properties: conditions: description: conditions is a list of conditions that apply to the APIExport. 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 virtualWorkspaces: description: virtualWorkspaces contains all APIExport virtual workspace URLs. items: properties: type: description: type indicates the type of virtual workspace this URL represents. enum: - initializing - terminating type: string url: description: url is a WorkspaceType initialization virtual workspace URL. minLength: 1 type: string required: - url type: object type: array type: object type: object served: true storage: true subresources: status: {}