From d407129858d0475c41a58f80d73e667b35ae6b47 Mon Sep 17 00:00:00 2001 From: sg Date: Mon, 23 Sep 2024 15:47:10 +0100 Subject: [PATCH] set all parameters in es consumer to the default empty string --- components/consumers/elasticsearch/task.yaml | 34 +++++++++++--------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/components/consumers/elasticsearch/task.yaml b/components/consumers/elasticsearch/task.yaml index ad33e59fe..d4c8e084f 100644 --- a/components/consumers/elasticsearch/task.yaml +++ b/components/consumers/elasticsearch/task.yaml @@ -10,7 +10,7 @@ spec: params: - name: consumer-elasticsearch-url type: string - default: "http://dracon-es-http:9200" + default: "" - name: consumer-elasticsearch-description-template type: string default: "" @@ -20,9 +20,6 @@ spec: - name: consumer-elasticsearch-index-name type: string default: "" - - name: consumer-elasticsearch-index - type: string - default: "" - name: consumer-elasticsearch-cloud-id type: string default: "" @@ -30,15 +27,20 @@ spec: - name: output description: The workspace containing the source-code to scan. steps: - - name: run-consumer - imagePullPolicy: IfNotPresent - image: '{{ default "ghcr.io/ocurity/dracon" .Values.image.registry }}/components/consumers/elasticsearch:{{ .Chart.AppVersion }}' - command: ["/app/components/consumers/elasticsearch/elasticsearch"] - args: [ - "-in", "$(workspaces.output.path)/.dracon/enrichers/", - "-descriptionTemplate","$(params.consumer-elasticsearch-description-template)", - "-esIndex", "$(params.consumer-elasticsearch-index-name)", - "-esAPIKey", "$(params.consumer-elasticsearch-api-key)", - "-esURL", "$(params.consumer-elasticsearch-url)", - "-esCloudID", "$(params.consumer-elasticsearch-cloud-id)", - ] + - name: run-consumer + imagePullPolicy: IfNotPresent + image: '{{ default "ghcr.io/ocurity/dracon" .Values.image.registry }}/components/consumers/elasticsearch:{{ .Chart.AppVersion }}' + command: ["/app/components/consumers/elasticsearch/elasticsearch"] + args: + - -in + - "$(workspaces.output.path)/.dracon/enrichers/" + - -descriptionTemplate + - "$(params.consumer-elasticsearch-description-template)" + - -esIndex + - "$(params.consumer-elasticsearch-index-name)" + - -esAPIKey + - "$(params.consumer-elasticsearch-api-key)" + - -esURL + - "$(params.consumer-elasticsearch-url)" + - -esCloudID + - "$(params.consumer-elasticsearch-cloud-id)"