apiVersion: core.oam.dev/v1beta1
kind: ComponentDefinition
metadata:
  annotations:
    definition.oam.dev/description: Dex config allow users to specify dex config in properties
  labels:
    custom.definition.oam.dev/ui-hidden: "true"
  name: dex-config
  namespace: vela-system
spec:
  schematic:
    cue:
      template: |
        import "encoding/yaml"

        output: {
                apiVersion: "v1"
                kind:       "Secret"
                metadata: name: context.name
                namespace: context.namespace
                type:      "Opaque"
                stringData: "config.yaml": yaml.Marshal(parameter)
        }
        parameter: {}
  workload:
    type: autodetects.core.oam.dev