From 16559716509d5e6d4ad96472bce1a16d4620dc72 Mon Sep 17 00:00:00 2001 From: Julie Vogelman Date: Mon, 18 Apr 2022 11:39:22 -0700 Subject: [PATCH 1/2] fix: example for trigger template parameterization Signed-off-by: Julie Vogelman --- .../02-parameterization/sensor-05.yaml | 30 +++++++++++-------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/examples/tutorials/02-parameterization/sensor-05.yaml b/examples/tutorials/02-parameterization/sensor-05.yaml index 973bfcedd1..c4ab4bfbb4 100644 --- a/examples/tutorials/02-parameterization/sensor-05.yaml +++ b/examples/tutorials/02-parameterization/sensor-05.yaml @@ -5,6 +5,10 @@ metadata: spec: template: serviceAccountName: operate-workflow-sa + container: + env: + - name: DEBUG_LOG + value: "true" dependencies: - name: test-dep eventSourceName: webhook @@ -41,16 +45,16 @@ spec: dependencyName: THIS_WILL_BE_REPLACED dataKey: THIS_WILL_BE_REPLACED dest: THIS_WILL_BE_REPLACED - parameters: - - src: - dependencyName: test-dep - dataKey: body.dependencyName - dest: k8s.parameters.0.src.dependencyName - - src: - dependencyName: test-dep - dataKey: body.dataKey - dest: k8s.parameters.0.src.dataKey - - src: - dependencyName: test-dep - dataKey: dest - dest: k8s.parameters.0.dest + parameters: + - src: + dependencyName: test-dep + dataKey: body.dependencyName + dest: k8s.parameters.0.src.dependencyName + - src: + dependencyName: test-dep + dataKey: body.dataKey + dest: k8s.parameters.0.src.dataKey + - src: + dependencyName: test-dep + dataKey: body.dest + dest: k8s.parameters.0.dest From 8dfa76639dfa8f2c9998a769a856668347c87452 Mon Sep 17 00:00:00 2001 From: Julie Vogelman Date: Mon, 18 Apr 2022 11:46:30 -0700 Subject: [PATCH 2/2] remove change to log at debug, which I was using for debugging but didn't intend to commit Signed-off-by: Julie Vogelman --- examples/tutorials/02-parameterization/sensor-05.yaml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/examples/tutorials/02-parameterization/sensor-05.yaml b/examples/tutorials/02-parameterization/sensor-05.yaml index c4ab4bfbb4..891222600a 100644 --- a/examples/tutorials/02-parameterization/sensor-05.yaml +++ b/examples/tutorials/02-parameterization/sensor-05.yaml @@ -5,10 +5,6 @@ metadata: spec: template: serviceAccountName: operate-workflow-sa - container: - env: - - name: DEBUG_LOG - value: "true" dependencies: - name: test-dep eventSourceName: webhook