diff --git a/charts/vela-core/templates/defwithtemplate/annotations.yaml b/charts/vela-core/templates/defwithtemplate/annotations.yaml index b39e984f4..f1047e82c 100644 --- a/charts/vela-core/templates/defwithtemplate/annotations.yaml +++ b/charts/vela-core/templates/defwithtemplate/annotations.yaml @@ -5,8 +5,6 @@ kind: TraitDefinition metadata: annotations: definition.oam.dev/description: Add annotations on your workload. if it generates pod, add same annotations for generated pods. - labels: - custom.definition.oam.dev/ui-hidden: "true" name: annotations namespace: {{ include "systemDefinitionNamespace" . }} spec: diff --git a/charts/vela-core/templates/defwithtemplate/command.yaml b/charts/vela-core/templates/defwithtemplate/command.yaml index ebaf7c882..751451696 100644 --- a/charts/vela-core/templates/defwithtemplate/command.yaml +++ b/charts/vela-core/templates/defwithtemplate/command.yaml @@ -5,8 +5,6 @@ kind: TraitDefinition metadata: annotations: definition.oam.dev/description: Add command on K8s pod for your workload which follows the pod spec in path 'spec.template' - labels: - custom.definition.oam.dev/ui-hidden: "true" name: command namespace: {{ include "systemDefinitionNamespace" . }} spec: diff --git a/charts/vela-core/templates/defwithtemplate/container-image.yaml b/charts/vela-core/templates/defwithtemplate/container-image.yaml index c8dc22807..05eae9641 100644 --- a/charts/vela-core/templates/defwithtemplate/container-image.yaml +++ b/charts/vela-core/templates/defwithtemplate/container-image.yaml @@ -5,8 +5,6 @@ kind: TraitDefinition metadata: annotations: definition.oam.dev/description: Set the image of the container. - labels: - custom.definition.oam.dev/ui-hidden: "true" name: container-image namespace: {{ include "systemDefinitionNamespace" . }} spec: diff --git a/charts/vela-core/templates/defwithtemplate/cpuscaler.yaml b/charts/vela-core/templates/defwithtemplate/cpuscaler.yaml index 30f6d73f5..b12b743a3 100644 --- a/charts/vela-core/templates/defwithtemplate/cpuscaler.yaml +++ b/charts/vela-core/templates/defwithtemplate/cpuscaler.yaml @@ -5,8 +5,6 @@ kind: TraitDefinition metadata: annotations: definition.oam.dev/description: Automatically scale the component based on CPU usage. - labels: - custom.definition.oam.dev/ui-hidden: "true" name: cpuscaler namespace: {{ include "systemDefinitionNamespace" . }} spec: diff --git a/charts/vela-core/templates/defwithtemplate/env.yaml b/charts/vela-core/templates/defwithtemplate/env.yaml index b30f4230e..de5e8f466 100644 --- a/charts/vela-core/templates/defwithtemplate/env.yaml +++ b/charts/vela-core/templates/defwithtemplate/env.yaml @@ -5,8 +5,6 @@ kind: TraitDefinition metadata: annotations: definition.oam.dev/description: Add env on K8s pod for your workload which follows the pod spec in path 'spec.template' - labels: - custom.definition.oam.dev/ui-hidden: "true" name: env namespace: {{ include "systemDefinitionNamespace" . }} spec: diff --git a/charts/vela-core/templates/defwithtemplate/expose.yaml b/charts/vela-core/templates/defwithtemplate/expose.yaml index a36753eed..d3bfb755a 100644 --- a/charts/vela-core/templates/defwithtemplate/expose.yaml +++ b/charts/vela-core/templates/defwithtemplate/expose.yaml @@ -5,8 +5,6 @@ kind: TraitDefinition metadata: annotations: definition.oam.dev/description: Expose port to enable web traffic for your component. - labels: - custom.definition.oam.dev/ui-hidden: "true" name: expose namespace: {{ include "systemDefinitionNamespace" . }} spec: diff --git a/charts/vela-core/templates/defwithtemplate/hostalias.yaml b/charts/vela-core/templates/defwithtemplate/hostalias.yaml index a28f41908..646d01211 100644 --- a/charts/vela-core/templates/defwithtemplate/hostalias.yaml +++ b/charts/vela-core/templates/defwithtemplate/hostalias.yaml @@ -5,8 +5,6 @@ kind: TraitDefinition metadata: annotations: definition.oam.dev/description: Add host aliases on K8s pod for your workload which follows the pod spec in path 'spec.template'. - labels: - custom.definition.oam.dev/ui-hidden: "true" name: hostalias namespace: {{ include "systemDefinitionNamespace" . }} spec: diff --git a/charts/vela-core/templates/defwithtemplate/import-grafana-dashboard.yaml b/charts/vela-core/templates/defwithtemplate/import-grafana-dashboard.yaml deleted file mode 100644 index df92f54d6..000000000 --- a/charts/vela-core/templates/defwithtemplate/import-grafana-dashboard.yaml +++ /dev/null @@ -1,41 +0,0 @@ -# Code generated by KubeVela templates. DO NOT EDIT. Please edit the original cue file. -# Definition source cue file: vela-templates/definitions/internal/import-grafana-dashboard.cue -apiVersion: core.oam.dev/v1beta1 -kind: TraitDefinition -metadata: - annotations: - definition.oam.dev/description: Import dashboards to Grafana - labels: - custom.definition.oam.dev/ui-hidden: "true" - name: import-grafana-dashboard - namespace: {{ include "systemDefinitionNamespace" . }} -spec: - appliesToWorkloads: [] - conflictsWith: [] - podDisruptive: false - schematic: - cue: - template: | - outputs: registerdatasource: { - apiVersion: "grafana.extension.oam.dev/v1alpha1" - kind: "ImportDashboard" - spec: { - grafana: { - service: parameter.grafanaServiceName - namespace: parameter.grafanaServiceNamespace - credentialSecret: parameter.credentialSecret - credentialSecretNamespace: parameter.credentialSecretNamespace - } - urls: parameter.urls - } - } - parameter: { - grafanaServiceName: string - grafanaServiceNamespace: *"default" | string - credentialSecret: string - credentialSecretNamespace: *"default" | string - urls: [...string] - - } - workloadRefPath: "" - diff --git a/charts/vela-core/templates/defwithtemplate/init-container.yaml b/charts/vela-core/templates/defwithtemplate/init-container.yaml index 1a699d084..8a3b7f990 100644 --- a/charts/vela-core/templates/defwithtemplate/init-container.yaml +++ b/charts/vela-core/templates/defwithtemplate/init-container.yaml @@ -5,8 +5,6 @@ kind: TraitDefinition metadata: annotations: definition.oam.dev/description: add an init container and use shared volume with pod - labels: - custom.definition.oam.dev/ui-hidden: "true" name: init-container namespace: {{ include "systemDefinitionNamespace" . }} spec: diff --git a/charts/vela-core/templates/defwithtemplate/labels.yaml b/charts/vela-core/templates/defwithtemplate/labels.yaml index 50742ca52..ca4301688 100644 --- a/charts/vela-core/templates/defwithtemplate/labels.yaml +++ b/charts/vela-core/templates/defwithtemplate/labels.yaml @@ -5,8 +5,6 @@ kind: TraitDefinition metadata: annotations: definition.oam.dev/description: Add labels on your workload. if it generates pod, add same label for generated pods. - labels: - custom.definition.oam.dev/ui-hidden: "true" name: labels namespace: {{ include "systemDefinitionNamespace" . }} spec: diff --git a/charts/vela-core/templates/defwithtemplate/lifecycle.yaml b/charts/vela-core/templates/defwithtemplate/lifecycle.yaml index 6a8aec435..f0e6f0067 100644 --- a/charts/vela-core/templates/defwithtemplate/lifecycle.yaml +++ b/charts/vela-core/templates/defwithtemplate/lifecycle.yaml @@ -5,8 +5,6 @@ kind: TraitDefinition metadata: annotations: definition.oam.dev/description: Add lifecycle hooks for every container of K8s pod for your workload which follows the pod spec in path 'spec.template'. - labels: - custom.definition.oam.dev/ui-hidden: "true" name: lifecycle namespace: {{ include "systemDefinitionNamespace" . }} spec: diff --git a/charts/vela-core/templates/defwithtemplate/register-grafana-datasource.yaml b/charts/vela-core/templates/defwithtemplate/register-grafana-datasource.yaml deleted file mode 100644 index c67e2815b..000000000 --- a/charts/vela-core/templates/defwithtemplate/register-grafana-datasource.yaml +++ /dev/null @@ -1,51 +0,0 @@ -# Code generated by KubeVela templates. DO NOT EDIT. Please edit the original cue file. -# Definition source cue file: vela-templates/definitions/internal/register-grafana-datasource.cue -apiVersion: core.oam.dev/v1beta1 -kind: TraitDefinition -metadata: - annotations: - definition.oam.dev/description: Add a datasource to Grafana - labels: - custom.definition.oam.dev/deprecated: "true" - custom.definition.oam.dev/ui-hidden: "true" - name: register-grafana-datasource - namespace: {{ include "systemDefinitionNamespace" . }} -spec: - appliesToWorkloads: [] - conflictsWith: [] - podDisruptive: false - schematic: - cue: - template: | - outputs: registerdatasource: { - apiVersion: "grafana.extension.oam.dev/v1alpha1" - kind: "DatasourceRegistration" - spec: { - grafana: { - service: parameter.grafanaServiceName - namespace: parameter.grafanaServiceNamespace - credentialSecret: parameter.credentialSecret - credentialSecretNamespace: parameter.credentialSecretNamespace - } - datasource: { - name: parameter.name - type: parameter.type - access: parameter.access - service: parameter.service - namespace: parameter.namespace - } - } - } - parameter: { - grafanaServiceName: string - grafanaServiceNamespace: *"default" | string - credentialSecret: string - credentialSecretNamespace: string - name: string - type: string - access: *"proxy" | string - service: string - namespace: *"default" | string - } - workloadRefPath: "" - diff --git a/charts/vela-core/templates/defwithtemplate/resource.yaml b/charts/vela-core/templates/defwithtemplate/resource.yaml index dff9c731f..b94022809 100644 --- a/charts/vela-core/templates/defwithtemplate/resource.yaml +++ b/charts/vela-core/templates/defwithtemplate/resource.yaml @@ -5,8 +5,6 @@ kind: TraitDefinition metadata: annotations: definition.oam.dev/description: Add resource requests and limits on K8s pod for your workload which follows the pod spec in path 'spec.template.' - labels: - custom.definition.oam.dev/ui-hidden: "true" name: resource namespace: {{ include "systemDefinitionNamespace" . }} spec: diff --git a/charts/vela-core/templates/defwithtemplate/sidecar.yaml b/charts/vela-core/templates/defwithtemplate/sidecar.yaml index bd52fff4a..4f725ebbe 100644 --- a/charts/vela-core/templates/defwithtemplate/sidecar.yaml +++ b/charts/vela-core/templates/defwithtemplate/sidecar.yaml @@ -5,8 +5,6 @@ kind: TraitDefinition metadata: annotations: definition.oam.dev/description: Inject a sidecar container to K8s pod for your workload which follows the pod spec in path 'spec.template'. - labels: - custom.definition.oam.dev/ui-hidden: "true" name: sidecar namespace: {{ include "systemDefinitionNamespace" . }} spec: diff --git a/charts/vela-minimal/templates/defwithtemplate/annotations.yaml b/charts/vela-minimal/templates/defwithtemplate/annotations.yaml index b39e984f4..f1047e82c 100644 --- a/charts/vela-minimal/templates/defwithtemplate/annotations.yaml +++ b/charts/vela-minimal/templates/defwithtemplate/annotations.yaml @@ -5,8 +5,6 @@ kind: TraitDefinition metadata: annotations: definition.oam.dev/description: Add annotations on your workload. if it generates pod, add same annotations for generated pods. - labels: - custom.definition.oam.dev/ui-hidden: "true" name: annotations namespace: {{ include "systemDefinitionNamespace" . }} spec: diff --git a/charts/vela-minimal/templates/defwithtemplate/command.yaml b/charts/vela-minimal/templates/defwithtemplate/command.yaml index ebaf7c882..751451696 100644 --- a/charts/vela-minimal/templates/defwithtemplate/command.yaml +++ b/charts/vela-minimal/templates/defwithtemplate/command.yaml @@ -5,8 +5,6 @@ kind: TraitDefinition metadata: annotations: definition.oam.dev/description: Add command on K8s pod for your workload which follows the pod spec in path 'spec.template' - labels: - custom.definition.oam.dev/ui-hidden: "true" name: command namespace: {{ include "systemDefinitionNamespace" . }} spec: diff --git a/charts/vela-minimal/templates/defwithtemplate/container-image.yaml b/charts/vela-minimal/templates/defwithtemplate/container-image.yaml index c8dc22807..05eae9641 100644 --- a/charts/vela-minimal/templates/defwithtemplate/container-image.yaml +++ b/charts/vela-minimal/templates/defwithtemplate/container-image.yaml @@ -5,8 +5,6 @@ kind: TraitDefinition metadata: annotations: definition.oam.dev/description: Set the image of the container. - labels: - custom.definition.oam.dev/ui-hidden: "true" name: container-image namespace: {{ include "systemDefinitionNamespace" . }} spec: diff --git a/charts/vela-minimal/templates/defwithtemplate/cpuscaler.yaml b/charts/vela-minimal/templates/defwithtemplate/cpuscaler.yaml index 30f6d73f5..b12b743a3 100644 --- a/charts/vela-minimal/templates/defwithtemplate/cpuscaler.yaml +++ b/charts/vela-minimal/templates/defwithtemplate/cpuscaler.yaml @@ -5,8 +5,6 @@ kind: TraitDefinition metadata: annotations: definition.oam.dev/description: Automatically scale the component based on CPU usage. - labels: - custom.definition.oam.dev/ui-hidden: "true" name: cpuscaler namespace: {{ include "systemDefinitionNamespace" . }} spec: diff --git a/charts/vela-minimal/templates/defwithtemplate/env.yaml b/charts/vela-minimal/templates/defwithtemplate/env.yaml index b30f4230e..de5e8f466 100644 --- a/charts/vela-minimal/templates/defwithtemplate/env.yaml +++ b/charts/vela-minimal/templates/defwithtemplate/env.yaml @@ -5,8 +5,6 @@ kind: TraitDefinition metadata: annotations: definition.oam.dev/description: Add env on K8s pod for your workload which follows the pod spec in path 'spec.template' - labels: - custom.definition.oam.dev/ui-hidden: "true" name: env namespace: {{ include "systemDefinitionNamespace" . }} spec: diff --git a/charts/vela-minimal/templates/defwithtemplate/expose.yaml b/charts/vela-minimal/templates/defwithtemplate/expose.yaml index a36753eed..d3bfb755a 100644 --- a/charts/vela-minimal/templates/defwithtemplate/expose.yaml +++ b/charts/vela-minimal/templates/defwithtemplate/expose.yaml @@ -5,8 +5,6 @@ kind: TraitDefinition metadata: annotations: definition.oam.dev/description: Expose port to enable web traffic for your component. - labels: - custom.definition.oam.dev/ui-hidden: "true" name: expose namespace: {{ include "systemDefinitionNamespace" . }} spec: diff --git a/charts/vela-minimal/templates/defwithtemplate/hostalias.yaml b/charts/vela-minimal/templates/defwithtemplate/hostalias.yaml index a28f41908..646d01211 100644 --- a/charts/vela-minimal/templates/defwithtemplate/hostalias.yaml +++ b/charts/vela-minimal/templates/defwithtemplate/hostalias.yaml @@ -5,8 +5,6 @@ kind: TraitDefinition metadata: annotations: definition.oam.dev/description: Add host aliases on K8s pod for your workload which follows the pod spec in path 'spec.template'. - labels: - custom.definition.oam.dev/ui-hidden: "true" name: hostalias namespace: {{ include "systemDefinitionNamespace" . }} spec: diff --git a/charts/vela-minimal/templates/defwithtemplate/init-container.yaml b/charts/vela-minimal/templates/defwithtemplate/init-container.yaml index 1a699d084..8a3b7f990 100644 --- a/charts/vela-minimal/templates/defwithtemplate/init-container.yaml +++ b/charts/vela-minimal/templates/defwithtemplate/init-container.yaml @@ -5,8 +5,6 @@ kind: TraitDefinition metadata: annotations: definition.oam.dev/description: add an init container and use shared volume with pod - labels: - custom.definition.oam.dev/ui-hidden: "true" name: init-container namespace: {{ include "systemDefinitionNamespace" . }} spec: diff --git a/charts/vela-minimal/templates/defwithtemplate/labels.yaml b/charts/vela-minimal/templates/defwithtemplate/labels.yaml index 50742ca52..ca4301688 100644 --- a/charts/vela-minimal/templates/defwithtemplate/labels.yaml +++ b/charts/vela-minimal/templates/defwithtemplate/labels.yaml @@ -5,8 +5,6 @@ kind: TraitDefinition metadata: annotations: definition.oam.dev/description: Add labels on your workload. if it generates pod, add same label for generated pods. - labels: - custom.definition.oam.dev/ui-hidden: "true" name: labels namespace: {{ include "systemDefinitionNamespace" . }} spec: diff --git a/charts/vela-minimal/templates/defwithtemplate/lifecycle.yaml b/charts/vela-minimal/templates/defwithtemplate/lifecycle.yaml index 6a8aec435..f0e6f0067 100644 --- a/charts/vela-minimal/templates/defwithtemplate/lifecycle.yaml +++ b/charts/vela-minimal/templates/defwithtemplate/lifecycle.yaml @@ -5,8 +5,6 @@ kind: TraitDefinition metadata: annotations: definition.oam.dev/description: Add lifecycle hooks for every container of K8s pod for your workload which follows the pod spec in path 'spec.template'. - labels: - custom.definition.oam.dev/ui-hidden: "true" name: lifecycle namespace: {{ include "systemDefinitionNamespace" . }} spec: diff --git a/charts/vela-minimal/templates/defwithtemplate/resource.yaml b/charts/vela-minimal/templates/defwithtemplate/resource.yaml index dff9c731f..b94022809 100644 --- a/charts/vela-minimal/templates/defwithtemplate/resource.yaml +++ b/charts/vela-minimal/templates/defwithtemplate/resource.yaml @@ -5,8 +5,6 @@ kind: TraitDefinition metadata: annotations: definition.oam.dev/description: Add resource requests and limits on K8s pod for your workload which follows the pod spec in path 'spec.template.' - labels: - custom.definition.oam.dev/ui-hidden: "true" name: resource namespace: {{ include "systemDefinitionNamespace" . }} spec: diff --git a/charts/vela-minimal/templates/defwithtemplate/sidecar.yaml b/charts/vela-minimal/templates/defwithtemplate/sidecar.yaml index bd52fff4a..4f725ebbe 100644 --- a/charts/vela-minimal/templates/defwithtemplate/sidecar.yaml +++ b/charts/vela-minimal/templates/defwithtemplate/sidecar.yaml @@ -5,8 +5,6 @@ kind: TraitDefinition metadata: annotations: definition.oam.dev/description: Inject a sidecar container to K8s pod for your workload which follows the pod spec in path 'spec.template'. - labels: - custom.definition.oam.dev/ui-hidden: "true" name: sidecar namespace: {{ include "systemDefinitionNamespace" . }} spec: diff --git a/vela-templates/definitions/internal/trait/annotations.cue b/vela-templates/definitions/internal/trait/annotations.cue index 22a1f0c43..bf8e874f7 100644 --- a/vela-templates/definitions/internal/trait/annotations.cue +++ b/vela-templates/definitions/internal/trait/annotations.cue @@ -1,9 +1,6 @@ annotations: { type: "trait" annotations: {} - labels: { - "ui-hidden": "true" - } description: "Add annotations on your workload. if it generates pod, add same annotations for generated pods." attributes: { podDisruptive: true diff --git a/vela-templates/definitions/internal/trait/command.cue b/vela-templates/definitions/internal/trait/command.cue index 91944d9ab..a11f766a5 100644 --- a/vela-templates/definitions/internal/trait/command.cue +++ b/vela-templates/definitions/internal/trait/command.cue @@ -1,9 +1,6 @@ command: { type: "trait" annotations: {} - labels: { - "ui-hidden": "true" - } description: "Add command on K8s pod for your workload which follows the pod spec in path 'spec.template'" attributes: { appliesToWorkloads: ["deployments.apps", "statefulsets.apps", "daemonsets.apps", "jobs.batch"] diff --git a/vela-templates/definitions/internal/trait/container-image.cue b/vela-templates/definitions/internal/trait/container-image.cue index d6c986be7..7e29dff3e 100644 --- a/vela-templates/definitions/internal/trait/container-image.cue +++ b/vela-templates/definitions/internal/trait/container-image.cue @@ -1,9 +1,6 @@ "container-image": { type: "trait" annotations: {} - labels: { - "ui-hidden": "true" - } description: "Set the image of the container." attributes: { podDisruptive: true diff --git a/vela-templates/definitions/internal/trait/cpuscaler.cue b/vela-templates/definitions/internal/trait/cpuscaler.cue index d28b990d9..8ece24eb0 100644 --- a/vela-templates/definitions/internal/trait/cpuscaler.cue +++ b/vela-templates/definitions/internal/trait/cpuscaler.cue @@ -1,9 +1,6 @@ cpuscaler: { type: "trait" annotations: {} - labels: { - "ui-hidden": "true" - } description: "Automatically scale the component based on CPU usage." attributes: { appliesToWorkloads: ["deployments.apps", "statefulsets.apps"] diff --git a/vela-templates/definitions/internal/trait/env.cue b/vela-templates/definitions/internal/trait/env.cue index ffe1d9a1a..b10617fa8 100644 --- a/vela-templates/definitions/internal/trait/env.cue +++ b/vela-templates/definitions/internal/trait/env.cue @@ -1,9 +1,6 @@ env: { type: "trait" annotations: {} - labels: { - "ui-hidden": "true" - } description: "Add env on K8s pod for your workload which follows the pod spec in path 'spec.template'" attributes: { appliesToWorkloads: ["deployments.apps", "statefulsets.apps", "daemonsets.apps", "jobs.batch"] diff --git a/vela-templates/definitions/internal/trait/expose.cue b/vela-templates/definitions/internal/trait/expose.cue index 4ae7a5c2a..4c91dbbfb 100644 --- a/vela-templates/definitions/internal/trait/expose.cue +++ b/vela-templates/definitions/internal/trait/expose.cue @@ -5,9 +5,6 @@ import ( expose: { type: "trait" annotations: {} - labels: { - "ui-hidden": "true" - } description: "Expose port to enable web traffic for your component." attributes: { podDisruptive: false diff --git a/vela-templates/definitions/internal/trait/hostalias.cue b/vela-templates/definitions/internal/trait/hostalias.cue index 6a17a41bd..d3b344930 100644 --- a/vela-templates/definitions/internal/trait/hostalias.cue +++ b/vela-templates/definitions/internal/trait/hostalias.cue @@ -1,9 +1,6 @@ hostalias: { type: "trait" annotations: {} - labels: { - "ui-hidden": "true" - } description: "Add host aliases on K8s pod for your workload which follows the pod spec in path 'spec.template'." attributes: { podDisruptive: false diff --git a/vela-templates/definitions/internal/trait/import-grafana-dashboard.cue b/vela-templates/definitions/internal/trait/import-grafana-dashboard.cue deleted file mode 100644 index f204fd0b3..000000000 --- a/vela-templates/definitions/internal/trait/import-grafana-dashboard.cue +++ /dev/null @@ -1,37 +0,0 @@ -"import-grafana-dashboard": { - attributes: { - appliesToWorkloads: [] - conflictsWith: [] - podDisruptive: false - workloadRefPath: "" - } - description: "Import dashboards to Grafana" - labels: { - "ui-hidden": "true" - } - type: "trait" -} - -template: { - outputs: registerdatasource: { - apiVersion: "grafana.extension.oam.dev/v1alpha1" - kind: "ImportDashboard" - spec: { - grafana: { - service: parameter.grafanaServiceName - namespace: parameter.grafanaServiceNamespace - credentialSecret: parameter.credentialSecret - credentialSecretNamespace: parameter.credentialSecretNamespace - } - urls: parameter.urls - } - } - parameter: { - grafanaServiceName: string - grafanaServiceNamespace: *"default" | string - credentialSecret: string - credentialSecretNamespace: *"default" | string - urls: [...string] - - } -} diff --git a/vela-templates/definitions/internal/trait/init-container.cue b/vela-templates/definitions/internal/trait/init-container.cue index 40d5f5250..197be9583 100644 --- a/vela-templates/definitions/internal/trait/init-container.cue +++ b/vela-templates/definitions/internal/trait/init-container.cue @@ -1,9 +1,6 @@ "init-container": { type: "trait" annotations: {} - labels: { - "ui-hidden": "true" - } description: "add an init container and use shared volume with pod" attributes: { podDisruptive: true diff --git a/vela-templates/definitions/internal/trait/labels.cue b/vela-templates/definitions/internal/trait/labels.cue index 7c84d55f0..48d5549fb 100644 --- a/vela-templates/definitions/internal/trait/labels.cue +++ b/vela-templates/definitions/internal/trait/labels.cue @@ -1,9 +1,6 @@ labels: { type: "trait" annotations: {} - labels: { - "ui-hidden": "true" - } description: "Add labels on your workload. if it generates pod, add same label for generated pods." attributes: { podDisruptive: true diff --git a/vela-templates/definitions/internal/trait/lifecycle.cue b/vela-templates/definitions/internal/trait/lifecycle.cue index 5ef835aa8..5a68b8b5f 100644 --- a/vela-templates/definitions/internal/trait/lifecycle.cue +++ b/vela-templates/definitions/internal/trait/lifecycle.cue @@ -1,9 +1,6 @@ lifecycle: { type: "trait" annotations: {} - labels: { - "ui-hidden": "true" - } description: "Add lifecycle hooks for every container of K8s pod for your workload which follows the pod spec in path 'spec.template'." attributes: { podDisruptive: true diff --git a/vela-templates/definitions/internal/trait/register-grafana-datasource.cue b/vela-templates/definitions/internal/trait/register-grafana-datasource.cue deleted file mode 100644 index 7be7ff071..000000000 --- a/vela-templates/definitions/internal/trait/register-grafana-datasource.cue +++ /dev/null @@ -1,49 +0,0 @@ -"register-grafana-datasource": { - annotations: {} - attributes: { - appliesToWorkloads: [] - conflictsWith: [] - podDisruptive: false - workloadRefPath: "" - } - description: "Add a datasource to Grafana" - labels: { - "ui-hidden": "true" - "deprecated": "true" - } - type: "trait" -} - -template: { - outputs: registerdatasource: { - apiVersion: "grafana.extension.oam.dev/v1alpha1" - kind: "DatasourceRegistration" - spec: { - grafana: { - service: parameter.grafanaServiceName - namespace: parameter.grafanaServiceNamespace - credentialSecret: parameter.credentialSecret - credentialSecretNamespace: parameter.credentialSecretNamespace - } - datasource: { - name: parameter.name - type: parameter.type - access: parameter.access - service: parameter.service - namespace: parameter.namespace - } - } - } - parameter: { - grafanaServiceName: string - grafanaServiceNamespace: *"default" | string - credentialSecret: string - credentialSecretNamespace: string - name: string - type: string - access: *"proxy" | string - service: string - namespace: *"default" | string - } - -} diff --git a/vela-templates/definitions/internal/trait/resource.cue b/vela-templates/definitions/internal/trait/resource.cue index cf8dc4a44..cdf6ac827 100644 --- a/vela-templates/definitions/internal/trait/resource.cue +++ b/vela-templates/definitions/internal/trait/resource.cue @@ -1,9 +1,6 @@ resource: { type: "trait" annotations: {} - labels: { - "ui-hidden": "true" - } description: "Add resource requests and limits on K8s pod for your workload which follows the pod spec in path 'spec.template.'" attributes: { podDisruptive: true diff --git a/vela-templates/definitions/internal/trait/sidecar.cue b/vela-templates/definitions/internal/trait/sidecar.cue index 4a6e755fd..966fdc306 100644 --- a/vela-templates/definitions/internal/trait/sidecar.cue +++ b/vela-templates/definitions/internal/trait/sidecar.cue @@ -1,9 +1,6 @@ sidecar: { type: "trait" annotations: {} - labels: { - "ui-hidden": "true" - } description: "Inject a sidecar container to K8s pod for your workload which follows the pod spec in path 'spec.template'." attributes: { podDisruptive: true