DataWorkz-NL / KubeETL

ETL controller for Kubernetes
Apache License 2.0
4 stars 0 forks source link

Error on invalid Workflow #64

Open Blokje5 opened 2 years ago

Blokje5 commented 2 years ago

Not sure if this is an issue with the error handling or the parsing of the workflow.

controller-runtime.manager.controller.workflow  Reconciler error        {"reconciler group": "etl.dataworkz.nl", "reconciler kind": "Workflow", "name": "basic-workflow", "namespace": "kubeetl", "error": "error upserting argo workflow: error creating argo workflow spec: InjectInto contains missing template: bash-template"}
github.com/go-logr/zapr.(*zapLogger).Error

Workflow:

apiVersion: etl.dataworkz.nl/v1alpha1
kind: Workflow
metadata:
  name: basic-workflow
spec:
  injectInto:
    - name: bash-template
      injectedValues:
        - injectable-connection
  injectable:
    - name: injectable-connection
      datasetRef:
        name: sessions-dataset
      content: mysql://{{connection.user}}:{{connection.password}}@{{metadata.host}}:{{metadata.port}}/{{metadata.database}}
      envName: MYSQL_URL
  entrypoint: bash-template
  templates:
  - name: bash-template
    inputs:
      parameters:
      - name: args
    container:
      image: busybox:latest
      command: [sh, -c]
      args: ["echo", "$MYSQL_URL"]