github.com/oam-dev/kubevela@v1.9.11/charts/vela-core/templates/defwithtemplate/topology.yaml (about)

     1  # Code generated by KubeVela templates. DO NOT EDIT. Please edit the original cue file.
     2  # Definition source cue file: vela-templates/definitions/internal/topology.cue
     3  apiVersion: core.oam.dev/v1beta1
     4  kind: PolicyDefinition
     5  metadata:
     6    annotations:
     7      definition.oam.dev/description: Describe the destination where components should be deployed to.
     8    name: topology
     9    namespace: {{ include "systemDefinitionNamespace" . }}
    10  spec:
    11    schematic:
    12      cue:
    13        template: |
    14          parameter: {
    15          	// +usage=Specify the names of the clusters to select.
    16          	clusters?: [...string]
    17          	// +usage=Specify the label selector for clusters
    18          	clusterLabelSelector?: [string]: string
    19          	// +usage=Ignore empty cluster error
    20          	allowEmpty?: bool
    21          	// +usage=Deprecated: Use clusterLabelSelector instead.
    22          	clusterSelector?: [string]: string
    23          	// +usage=Specify the target namespace to deploy in the selected clusters, default inherit the original namespace.
    24          	namespace?: string
    25          }
    26