apiVersion: core.oam.dev/v1beta1
kind: WorkflowStepDefinition
metadata:
  annotations:
    definition.oam.dev/alias: ""
    definition.oam.dev/description: Apply raw kubernetes objects for your workflow steps
  labels:
    custom.definition.oam.dev/ui-hidden: "true"
  name: log
  namespace: vela-system
spec:
  schematic:
    cue:
      template: |
        import (
                "vela/op"
        )

        apply: op.#Log & {
                parameter
        }
        parameter: {
                data?:   string
                level:   *3 | int
                source?: close({
                        url: string
                }) | close({
                        resources?: [...{
                                name?:      string
                                cluster?:   string
                                namespace?: string
                                labelSelector?: {...}
                        }]
                })
        }
