mirror of
https://github.com/kubevela/kubevela.git
synced 2026-05-21 08:43:35 +00:00
after PR https://github.com/crossplane/oam-kubernetes-runtime/pull/162 is merged, this workround should be removed
96 lines
6.5 KiB
YAML
96 lines
6.5 KiB
YAML
apiVersion: apiextensions.k8s.io/v1
|
|
kind: CustomResourceDefinition
|
|
metadata:
|
|
annotations:
|
|
controller-gen.kubebuilder.io/version: v0.2.4
|
|
kubectl.kubernetes.io/last-applied-configuration: |
|
|
{"apiVersion":"apiextensions.k8s.io/v1","kind":"CustomResourceDefinition","metadata":{"annotations":{"controller-gen.kubebuilder.io/version":"v0.2.4"},"creationTimestamp":null,"name":"workloaddefinitions.core.oam.dev"},"spec":{"group":"core.oam.dev","names":{"categories":["crossplane","oam"],"kind":"WorkloadDefinition","listKind":"WorkloadDefinitionList","plural":"workloaddefinitions","singular":"workloaddefinition"},"scope":"Cluster","versions":[{"additionalPrinterColumns":[{"jsonPath":".spec.definitionRef.name","name":"DEFINITION-NAME","type":"string"}],"name":"v1alpha2","schema":{"openAPIV3Schema":{"description":"A WorkloadDefinition registers a kind of Kubernetes custom resource as a valid OAM workload kind by referencing its CustomResourceDefinition. The CRD is used to validate the schema of the workload when it is embedded in an OAM Component.","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":"A WorkloadDefinitionSpec defines the desired state of a WorkloadDefinition.","properties":{"childResourceKinds":{"description":"ChildResourceKinds are the list of GVK of the child resources this workload generates","items":{"description":"A ChildResourceKind defines a child Kubernetes resource kind with a selector","properties":{"apiVersion":{"description":"APIVersion of the child resource","type":"string"},"kind":{"description":"Kind of the child resource","type":"string"},"selector":{"additionalProperties":{"type":"string"},"description":"Selector to select the child resources that the workload wants to expose to traits","type":"object"}},"required":["apiVersion","kind"],"type":"object"},"type":"array"},"definitionRef":{"description":"Reference to the CustomResourceDefinition that defines this workload kind.","properties":{"name":{"description":"Name of the referenced CustomResourceDefinition.","type":"string"}},"required":["name"],"type":"object"},"extension":{"description":"Extension is used for extension needs by OAM platform builders","type":"object","x-kubernetes-preserve-unknown-fields":true}},"required":["definitionRef"],"type":"object"}},"type":"object"}},"served":true,"storage":true,"subresources":{}}]},"status":{"acceptedNames":{"kind":"","plural":""},"conditions":[],"storedVersions":[]}}
|
|
name: workloaddefinitions.core.oam.dev
|
|
spec:
|
|
conversion:
|
|
strategy: None
|
|
group: core.oam.dev
|
|
names:
|
|
categories:
|
|
- crossplane
|
|
- oam
|
|
kind: WorkloadDefinition
|
|
listKind: WorkloadDefinitionList
|
|
plural: workloaddefinitions
|
|
singular: workloaddefinition
|
|
scope: Cluster
|
|
versions:
|
|
- additionalPrinterColumns:
|
|
- jsonPath: .spec.definitionRef.name
|
|
name: DEFINITION-NAME
|
|
type: string
|
|
name: v1alpha2
|
|
schema:
|
|
openAPIV3Schema:
|
|
description: A WorkloadDefinition registers a kind of Kubernetes custom resource
|
|
as a valid OAM workload kind by referencing its CustomResourceDefinition.
|
|
The CRD is used to validate the schema of the workload when it is embedded
|
|
in an OAM Component.
|
|
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: A WorkloadDefinitionSpec defines the desired state of a WorkloadDefinition.
|
|
properties:
|
|
childResourceKinds:
|
|
description: ChildResourceKinds are the list of GVK of the child resources
|
|
this workload generates
|
|
items:
|
|
description: A ChildResourceKind defines a child Kubernetes resource
|
|
kind with a selector
|
|
properties:
|
|
apiVersion:
|
|
description: APIVersion of the child resource
|
|
type: string
|
|
kind:
|
|
description: Kind of the child resource
|
|
type: string
|
|
selector:
|
|
additionalProperties:
|
|
type: string
|
|
description: Selector to select the child resources that the
|
|
workload wants to expose to traits
|
|
type: object
|
|
required:
|
|
- apiVersion
|
|
- kind
|
|
type: object
|
|
type: array
|
|
definitionRef:
|
|
description: Reference to the CustomResourceDefinition that defines
|
|
this workload kind.
|
|
properties:
|
|
name:
|
|
description: Name of the referenced CustomResourceDefinition.
|
|
type: string
|
|
required:
|
|
- name
|
|
type: object
|
|
extension:
|
|
description: Extension is used for extension needs by OAM platform
|
|
builders
|
|
type: object
|
|
x-kubernetes-preserve-unknown-fields: true
|
|
required:
|
|
- definitionRef
|
|
type: object
|
|
type: object
|
|
served: true
|
|
storage: true
|
|
subresources: {}
|