From 9ae9ecbe0d13d621f5677e609bc88aee5739eaac Mon Sep 17 00:00:00 2001 From: Dejan Bosanac Date: Fri, 14 Jul 2023 10:00:36 +0200 Subject: [PATCH] feat: add vex exporter --- chart/dev.yaml | 2 +- .../{ => bombastic}/030-Deployment.yaml | 2 +- .../exporter/vexination/030-Deployment.yaml | 67 +++++++++++++++++++ 3 files changed, 69 insertions(+), 2 deletions(-) rename chart/templates/bombastic/exporter/{ => bombastic}/030-Deployment.yaml (89%) create mode 100644 chart/templates/bombastic/exporter/vexination/030-Deployment.yaml diff --git a/chart/dev.yaml b/chart/dev.yaml index 9861191..f35c9b4 100644 --- a/chart/dev.yaml +++ b/chart/dev.yaml @@ -1,4 +1,4 @@ -release: 0.1.0-nightly.53f4e24d +release: 0.1.0-nightly.2f825aca domain: dev.trustification.dev replicas: 1 imagePullPolicy: IfNotPresent diff --git a/chart/templates/bombastic/exporter/030-Deployment.yaml b/chart/templates/bombastic/exporter/bombastic/030-Deployment.yaml similarity index 89% rename from chart/templates/bombastic/exporter/030-Deployment.yaml rename to chart/templates/bombastic/exporter/bombastic/030-Deployment.yaml index b1fa704..a433d4b 100644 --- a/chart/templates/bombastic/exporter/030-Deployment.yaml +++ b/chart/templates/bombastic/exporter/bombastic/030-Deployment.yaml @@ -28,7 +28,7 @@ spec: imagePullPolicy: {{ .Values.imagePullPolicy }} name: service command: ["/trust"] - args: ["exporter", "--event-bus", "sqs", "--stored-topic", "{{ .Values.bombastic.exporterTopic }}", "--storage-bucket", "{{ .Values.bombastic.bucket }}", "--guac-url", "trustification-nats:4222" ] + args: ["exporter", "--document-type", "sbom", "--event-bus", "sqs", "--stored-topic", "{{ .Values.bombastic.exporterTopic }}", "--storage-bucket", "{{ .Values.bombastic.bucket }}", "--guac-url", "trustification-nats:4222" ] env: - name: RUST_LOG value: info diff --git a/chart/templates/bombastic/exporter/vexination/030-Deployment.yaml b/chart/templates/bombastic/exporter/vexination/030-Deployment.yaml new file mode 100644 index 0000000..fc1e5c8 --- /dev/null +++ b/chart/templates/bombastic/exporter/vexination/030-Deployment.yaml @@ -0,0 +1,67 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: vexination-exporter + labels: + app.kubernetes.io/name: vexination-exporter + app.kubernetes.io/component: exporter + app.kubernetes.io/part-of: vexination +spec: + replicas: 1 + selector: + matchLabels: + app.kubernetes.io/name: vexination-exporter + app.kubernetes.io/component: exporter + app.kubernetes.io/part-of: vexination + template: + metadata: + labels: + app.kubernetes.io/name: vexination-exporter + app.kubernetes.io/component: exporter + app.kubernetes.io/part-of: vexination + spec: + volumes: + - name: data + emptyDir: {} + containers: + - image: ghcr.io/trustification/trust:{{ .Values.release }} + imagePullPolicy: {{ .Values.imagePullPolicy }} + name: service + command: ["/trust"] + args: ["exporter", "--document-type", "vex", "--event-bus", "sqs", "--stored-topic", "{{ .Values.vexination.exporterTopic }}", "--storage-bucket", "{{ .Values.vexination.bucket }}", "--guac-url", "trustification-nats:4222" ] + env: + - name: RUST_LOG + value: info + - name: AWS_ACCESS_KEY_ID + valueFrom: + secretKeyRef: + name: "{{ .Values.vexination.credentials }}" + key: access-key-id + - name: AWS_SECRET_ACCESS_KEY + valueFrom: + secretKeyRef: + name: "{{ .Values.vexination.credentials }}" + key: secret-access-key + - name: REGION + value: "{{ .Values.region }}" + - name: INFRASTRUCTURE_ENABLED + value: "true" + - name: INFRASTRUCTURE_BIND + value: "[::]:9010" + volumeMounts: + - name: data + mountPath: /data + livenessProbe: + httpGet: + path: /health/live + port: 9010 + initialDelaySeconds: 2 + readinessProbe: + httpGet: + path: /health/ready + port: 9010 + initialDelaySeconds: 2 + startupProbe: + httpGet: + path: /health/startup + port: 9010