github.com/oam-dev/kubevela@v1.9.11/charts/vela-core/templates/velaql/application-revision.yaml (about)

     1  apiVersion: "v1"
     2  kind: "ConfigMap"
     3  metadata:
     4    name: "application-revision-view"
     5    namespace: {{ include "systemDefinitionNamespace" . }}
     6  data:
     7    template: |
     8      import (
     9         "vela/op"
    10      )
    11  
    12      output: {
    13        op.#Read & {
    14          value: {
    15            apiVersion: "core.oam.dev/v1beta1"
    16              kind:       "ApplicationRevision"
    17              metadata: {
    18                name: parameter.name
    19                namespace: parameter.namespace
    20              }
    21          }
    22        }
    23      }
    24  
    25      parameter: {
    26         // +usage=Specify the name of the object
    27        name: string
    28        // +usage=Specify the namespace of the object
    29        namespace: *"default" | string
    30      }
    31  
    32      status: output.value
    33