Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set all parameters in es consumer to the default empty string #372

Merged
merged 1 commit into from
Sep 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 18 additions & 16 deletions components/consumers/elasticsearch/task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: ""
Expand All @@ -20,25 +20,27 @@ spec:
- name: consumer-elasticsearch-index-name
type: string
default: ""
- name: consumer-elasticsearch-index
type: string
default: ""
- name: consumer-elasticsearch-cloud-id
type: string
default: ""
workspaces:
- 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)"