From d4d073a715736841f22e1656eddd0a41a3088974 Mon Sep 17 00:00:00 2001 From: nscuro Date: Fri, 21 Jun 2024 11:11:06 +0200 Subject: [PATCH] Remove Helm chart It has been migrated to our central chart repository: https://github.com/DependencyTrack/helm-charts/tree/main/charts/hyades Closes #1226 Signed-off-by: nscuro --- .github/workflows/helm-ci.yml | 48 --- helm-charts/hyades/Chart.yaml | 19 -- helm-charts/hyades/README.md | 194 ------------ helm-charts/hyades/templates/_helpers.tpl | 292 ------------------ .../templates/api-server/deployment.yaml | 119 ------- .../hyades/templates/api-server/ingress.yaml | 22 -- .../hyades/templates/api-server/service.yaml | 19 -- .../templates/api-server/servicemonitor.yaml | 21 -- .../hyades/templates/frontend/deployment.yaml | 69 ----- .../hyades/templates/frontend/ingress.yaml | 23 -- .../hyades/templates/frontend/service.yaml | 19 -- .../templates/mirror-service/deployment.yaml | 93 ------ .../notification-publisher/deployment.yaml | 109 ------- .../repo-meta-analyzer/deployment.yaml | 107 ------- helm-charts/hyades/templates/secret.yaml | 14 - .../templates/vuln-analyzer/service.yaml | 13 - .../templates/vuln-analyzer/statefulset.yaml | 110 ------- helm-charts/hyades/values-minikube.yaml | 36 --- helm-charts/hyades/values.yaml | 244 --------------- 19 files changed, 1571 deletions(-) delete mode 100644 .github/workflows/helm-ci.yml delete mode 100644 helm-charts/hyades/Chart.yaml delete mode 100644 helm-charts/hyades/README.md delete mode 100644 helm-charts/hyades/templates/_helpers.tpl delete mode 100644 helm-charts/hyades/templates/api-server/deployment.yaml delete mode 100644 helm-charts/hyades/templates/api-server/ingress.yaml delete mode 100644 helm-charts/hyades/templates/api-server/service.yaml delete mode 100644 helm-charts/hyades/templates/api-server/servicemonitor.yaml delete mode 100644 helm-charts/hyades/templates/frontend/deployment.yaml delete mode 100644 helm-charts/hyades/templates/frontend/ingress.yaml delete mode 100644 helm-charts/hyades/templates/frontend/service.yaml delete mode 100644 helm-charts/hyades/templates/mirror-service/deployment.yaml delete mode 100644 helm-charts/hyades/templates/notification-publisher/deployment.yaml delete mode 100644 helm-charts/hyades/templates/repo-meta-analyzer/deployment.yaml delete mode 100644 helm-charts/hyades/templates/secret.yaml delete mode 100644 helm-charts/hyades/templates/vuln-analyzer/service.yaml delete mode 100644 helm-charts/hyades/templates/vuln-analyzer/statefulset.yaml delete mode 100644 helm-charts/hyades/values-minikube.yaml delete mode 100644 helm-charts/hyades/values.yaml diff --git a/.github/workflows/helm-ci.yml b/.github/workflows/helm-ci.yml deleted file mode 100644 index f9a3f774f..000000000 --- a/.github/workflows/helm-ci.yml +++ /dev/null @@ -1,48 +0,0 @@ -# This file is part of Dependency-Track. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# SPDX-License-Identifier: Apache-2.0 -# Copyright (c) OWASP Foundation. All Rights Reserved. -name: Helm CI - -on: - pull_request: - branches: - - main - - "feature-**" - paths: - - helm-charts/** - -permissions: { } - -jobs: - lint: - name: Lint - runs-on: ubuntu-latest - timeout-minutes: 5 - steps: - - name: Checkout Repository - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # tag=v4.1.7 - - name: Set up Helm - uses: azure/setup-helm@fe7b79cd5ee1e45176fcad797de68ecaf3ca4814 # tag=v4.2.0 - - name: Set up Python - uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # tag=v5.1.0 - with: - python-version: "3.9" - check-latest: true - - name: Set up Chart Testing - uses: helm/chart-testing-action@e6669bcd63d7cb57cb4380c33043eebe5d111992 # tag=v2.6.1 - - name: Lint Chart - run: |- - ct lint --charts ./helm-charts/hyades diff --git a/helm-charts/hyades/Chart.yaml b/helm-charts/hyades/Chart.yaml deleted file mode 100644 index aa9ac52e1..000000000 --- a/helm-charts/hyades/Chart.yaml +++ /dev/null @@ -1,19 +0,0 @@ -apiVersion: v2 -name: hyades -version: 0.1.1 -type: application -appVersion: 1.0.0-SNAPSHOT -home: https://github.com/DependencyTrack/hyades -maintainers: -- name: nscuro - email: nscuro@protonmail.com - url: https://github.com/nscuro -- name: mehab - email: meha.bhargava@citi.com - url: https://github.com/mehab -- name: sahibamittal - email: sahiba.mittal@citi.com - url: https://github.com/sahibamittal -- name: VithikaS - email: vithika.shukla@citi.com - url: https://github.com/VithikaS diff --git a/helm-charts/hyades/README.md b/helm-charts/hyades/README.md deleted file mode 100644 index 2c1c91248..000000000 --- a/helm-charts/hyades/README.md +++ /dev/null @@ -1,194 +0,0 @@ -# hyades - -![Version: 0.1.1](https://img.shields.io/badge/Version-0.1.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.0.0-SNAPSHOT](https://img.shields.io/badge/AppVersion-1.0.0--SNAPSHOT-informational?style=flat-square) - -**Homepage:** - -## Maintainers - -| Name | Email | Url | -| ---- | ------ | --- | -| nscuro | | | -| mehab | | | -| sahibamittal | | | -| VithikaS | | | - -## Values - -| Key | Type | Default | Description | -|-----|------|---------|-------------| -| apiServer.annotations | object | `{}` | | -| apiServer.args | list | `[]` | | -| apiServer.command | list | `[]` | | -| apiServer.enabled | bool | `false` | | -| apiServer.extraEnv | object | `{}` | | -| apiServer.extraEnvFrom | list | `[]` | | -| apiServer.image.pullPolicy | string | `"Always"` | | -| apiServer.image.repository | string | `"dependencytrack/hyades-apiserver"` | | -| apiServer.image.tag | string | `"latest"` | | -| apiServer.ingress.annotations | object | `{}` | | -| apiServer.ingress.enabled | bool | `false` | | -| apiServer.ingress.hostname | string | `"example.com"` | | -| apiServer.probes.liveness.failureThreshold | int | `3` | | -| apiServer.probes.liveness.initialDelaySeconds | int | `10` | | -| apiServer.probes.liveness.periodSeconds | int | `15` | | -| apiServer.probes.liveness.successThreshold | int | `1` | | -| apiServer.probes.liveness.timeoutSeconds | int | `5` | | -| apiServer.probes.readiness.failureThreshold | int | `3` | | -| apiServer.probes.readiness.initialDelaySeconds | int | `10` | | -| apiServer.probes.readiness.periodSeconds | int | `15` | | -| apiServer.probes.readiness.successThreshold | int | `1` | | -| apiServer.probes.readiness.timeoutSeconds | int | `5` | | -| apiServer.replicaCount | int | `1` | | -| apiServer.resources.limits.cpu | string | `"4"` | | -| apiServer.resources.limits.memory | string | `"8Gi"` | | -| apiServer.resources.requests.cpu | string | `"2"` | | -| apiServer.resources.requests.memory | string | `"4Gi"` | | -| apiServer.service.nodePort | string | `nil` | | -| apiServer.service.type | string | `"ClusterIP"` | | -| apiServer.serviceMonitor.enabled | bool | `false` | | -| apiServer.serviceMonitor.namespace | string | `"monitoring"` | | -| apiServer.serviceMonitor.scrapeInternal | string | `"15s"` | | -| apiServer.serviceMonitor.scrapeTimeout | string | `"30s"` | | -| apiServer.terminationGracePeriodSeconds | int | `60` | Grace period for pod termination in seconds. Should always be equal to or greater than the sum of `_DRAIN_TIMEOUT` configurations to ensure graceful shutdown. Refer to https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/ for details. | -| common.database.jdbcUrl | string | `""` | | -| common.database.password | string | `""` | | -| common.database.username | string | `""` | | -| common.fullnameOverride | string | `""` | | -| common.image.pullSecrets | list | `[]` | | -| common.image.registry | string | `"ghcr.io"` | | -| common.kafka.bootstrapServers | string | `""` | | -| common.kafka.topicPrefix | string | `""` | | -| common.nameOverride | string | `""` | | -| common.secretKey.createSecret | bool | `false` | Whether the chart should generate a secret key upon deployment. | -| common.secretKey.existingSecretName | string | `""` | Use the secret key defined in an existing secret. | -| frontend.annotations | object | `{}` | | -| frontend.apiBaseUrl | string | `""` | | -| frontend.args | list | `[]` | | -| frontend.command | list | `[]` | | -| frontend.enabled | bool | `false` | | -| frontend.extraEnv | object | `{}` | | -| frontend.extraEnvFrom | list | `[]` | | -| frontend.image.pullPolicy | string | `"Always"` | | -| frontend.image.repository | string | `"dependencytrack/hyades-frontend"` | | -| frontend.image.tag | string | `"4.9.1"` | | -| frontend.ingress.annotations | object | `{}` | | -| frontend.ingress.enabled | bool | `false` | | -| frontend.ingress.hostname | string | `"example.com"` | | -| frontend.probes.liveness.failureThreshold | int | `3` | | -| frontend.probes.liveness.initialDelaySeconds | int | `5` | | -| frontend.probes.liveness.periodSeconds | int | `15` | | -| frontend.probes.liveness.successThreshold | int | `1` | | -| frontend.probes.liveness.timeoutSeconds | int | `5` | | -| frontend.probes.readiness.failureThreshold | int | `3` | | -| frontend.probes.readiness.initialDelaySeconds | int | `5` | | -| frontend.probes.readiness.periodSeconds | int | `15` | | -| frontend.probes.readiness.successThreshold | int | `1` | | -| frontend.probes.readiness.timeoutSeconds | int | `5` | | -| frontend.replicaCount | int | `1` | | -| frontend.resources.limits.cpu | string | `"500m"` | | -| frontend.resources.limits.memory | string | `"128Mi"` | | -| frontend.resources.requests.cpu | string | `"150m"` | | -| frontend.resources.requests.memory | string | `"64Mi"` | | -| frontend.service.nodePort | string | `nil` | | -| frontend.service.type | string | `"ClusterIP"` | | -| mirrorService.annotations | object | `{}` | | -| mirrorService.args | list | `[]` | | -| mirrorService.command | list | `[]` | | -| mirrorService.enabled | bool | `true` | | -| mirrorService.extraEnv | object | `{}` | | -| mirrorService.extraEnvFrom | list | `[]` | | -| mirrorService.image.pullPolicy | string | `"Always"` | | -| mirrorService.image.repository | string | `"dependencytrack/hyades-mirror-service"` | | -| mirrorService.image.tag | string | `"latest-native"` | | -| mirrorService.probes.liveness.failureThreshold | int | `3` | | -| mirrorService.probes.liveness.initialDelaySeconds | int | `10` | | -| mirrorService.probes.liveness.periodSeconds | int | `15` | | -| mirrorService.probes.liveness.successThreshold | int | `1` | | -| mirrorService.probes.liveness.timeoutSeconds | int | `5` | | -| mirrorService.probes.readiness.failureThreshold | int | `3` | | -| mirrorService.probes.readiness.initialDelaySeconds | int | `10` | | -| mirrorService.probes.readiness.periodSeconds | int | `15` | | -| mirrorService.probes.readiness.successThreshold | int | `1` | | -| mirrorService.probes.readiness.timeoutSeconds | int | `5` | | -| mirrorService.replicaCount | int | `1` | Number of replicas. Should be <= 1. | -| mirrorService.resources.limits.cpu | string | `"2"` | | -| mirrorService.resources.limits.memory | string | `"2Gi"` | | -| mirrorService.resources.requests.cpu | string | `"500m"` | | -| mirrorService.resources.requests.memory | string | `"512Mi"` | | -| notificationPublisher.annotations | object | `{}` | | -| notificationPublisher.args | list | `[]` | | -| notificationPublisher.command | list | `[]` | | -| notificationPublisher.enabled | bool | `true` | | -| notificationPublisher.extraEnv | object | `{}` | | -| notificationPublisher.extraEnvFrom | list | `[]` | | -| notificationPublisher.image.pullPolicy | string | `"Always"` | | -| notificationPublisher.image.repository | string | `"dependencytrack/hyades-notification-publisher"` | | -| notificationPublisher.image.tag | string | `"latest-native"` | | -| notificationPublisher.probes.liveness.failureThreshold | int | `3` | | -| notificationPublisher.probes.liveness.initialDelaySeconds | int | `10` | | -| notificationPublisher.probes.liveness.periodSeconds | int | `15` | | -| notificationPublisher.probes.liveness.successThreshold | int | `1` | | -| notificationPublisher.probes.liveness.timeoutSeconds | int | `5` | | -| notificationPublisher.probes.readiness.failureThreshold | int | `3` | | -| notificationPublisher.probes.readiness.initialDelaySeconds | int | `10` | | -| notificationPublisher.probes.readiness.periodSeconds | int | `15` | | -| notificationPublisher.probes.readiness.successThreshold | int | `1` | | -| notificationPublisher.probes.readiness.timeoutSeconds | int | `5` | | -| notificationPublisher.replicaCount | int | `1` | | -| notificationPublisher.resources.limits.cpu | string | `"2"` | | -| notificationPublisher.resources.limits.memory | string | `"2Gi"` | | -| notificationPublisher.resources.requests.cpu | string | `"500m"` | | -| notificationPublisher.resources.requests.memory | string | `"512Mi"` | | -| repoMetaAnalyzer.annotations | object | `{}` | | -| repoMetaAnalyzer.args | list | `[]` | | -| repoMetaAnalyzer.command | list | `[]` | | -| repoMetaAnalyzer.extraEnv | object | `{}` | | -| repoMetaAnalyzer.extraEnvFrom | list | `[]` | | -| repoMetaAnalyzer.image.pullPolicy | string | `"Always"` | | -| repoMetaAnalyzer.image.repository | string | `"dependencytrack/hyades-repository-meta-analyzer"` | | -| repoMetaAnalyzer.image.tag | string | `"latest-native"` | | -| repoMetaAnalyzer.probes.liveness.failureThreshold | int | `3` | | -| repoMetaAnalyzer.probes.liveness.initialDelaySeconds | int | `10` | | -| repoMetaAnalyzer.probes.liveness.periodSeconds | int | `15` | | -| repoMetaAnalyzer.probes.liveness.successThreshold | int | `1` | | -| repoMetaAnalyzer.probes.liveness.timeoutSeconds | int | `5` | | -| repoMetaAnalyzer.probes.readiness.failureThreshold | int | `3` | | -| repoMetaAnalyzer.probes.readiness.initialDelaySeconds | int | `10` | | -| repoMetaAnalyzer.probes.readiness.periodSeconds | int | `15` | | -| repoMetaAnalyzer.probes.readiness.successThreshold | int | `1` | | -| repoMetaAnalyzer.probes.readiness.timeoutSeconds | int | `5` | | -| repoMetaAnalyzer.replicaCount | int | `1` | | -| repoMetaAnalyzer.resources.limits.cpu | string | `"2"` | | -| repoMetaAnalyzer.resources.limits.memory | string | `"2Gi"` | | -| repoMetaAnalyzer.resources.requests.cpu | string | `"500m"` | | -| repoMetaAnalyzer.resources.requests.memory | string | `"512Mi"` | | -| vulnAnalyzer.annotations | object | `{}` | | -| vulnAnalyzer.args | list | `[]` | | -| vulnAnalyzer.command | list | `[]` | | -| vulnAnalyzer.extraEnv | object | `{}` | | -| vulnAnalyzer.extraEnvFrom | list | `[]` | | -| vulnAnalyzer.image.pullPolicy | string | `"Always"` | | -| vulnAnalyzer.image.repository | string | `"dependencytrack/hyades-vulnerability-analyzer"` | | -| vulnAnalyzer.image.tag | string | `"latest-native"` | | -| vulnAnalyzer.persistentVolume.className | string | `""` | | -| vulnAnalyzer.persistentVolume.enabled | bool | `false` | | -| vulnAnalyzer.persistentVolume.size | string | `"2Gi"` | | -| vulnAnalyzer.probes.liveness.failureThreshold | int | `3` | | -| vulnAnalyzer.probes.liveness.initialDelaySeconds | int | `10` | | -| vulnAnalyzer.probes.liveness.periodSeconds | int | `15` | | -| vulnAnalyzer.probes.liveness.successThreshold | int | `1` | | -| vulnAnalyzer.probes.liveness.timeoutSeconds | int | `5` | | -| vulnAnalyzer.probes.readiness.failureThreshold | int | `3` | | -| vulnAnalyzer.probes.readiness.initialDelaySeconds | int | `10` | | -| vulnAnalyzer.probes.readiness.periodSeconds | int | `15` | | -| vulnAnalyzer.probes.readiness.successThreshold | int | `1` | | -| vulnAnalyzer.probes.readiness.timeoutSeconds | int | `5` | | -| vulnAnalyzer.replicaCount | int | `1` | | -| vulnAnalyzer.resources.limits.cpu | string | `"2"` | | -| vulnAnalyzer.resources.limits.memory | string | `"2Gi"` | | -| vulnAnalyzer.resources.requests.cpu | string | `"500m"` | | -| vulnAnalyzer.resources.requests.memory | string | `"512Mi"` | | - ----------------------------------------------- -Autogenerated from chart metadata using [helm-docs v1.13.1](https://github.com/norwoodj/helm-docs/releases/v1.13.1) diff --git a/helm-charts/hyades/templates/_helpers.tpl b/helm-charts/hyades/templates/_helpers.tpl deleted file mode 100644 index 2e40f8f80..000000000 --- a/helm-charts/hyades/templates/_helpers.tpl +++ /dev/null @@ -1,292 +0,0 @@ -{{/* -Expand the name of the chart. -The name is truncated to 38 characters, as the longest suffix being added to it is 25 characters long. -*/}} -{{- define "hyades.name" -}} -{{- default .Chart.Name .Values.common.nameOverride | trunc 38 | trimSuffix "-" }} -{{- end -}} - -{{/* -Create a default fully qualified app name. -The name is truncated to 38 characters, as the longest suffix being added to it is 25 characters long. -*/}} -{{- define "hyades.fullname" -}} -{{- if .Values.common.fullnameOverride -}} -{{- .Values.common.fullnameOverride | trunc 38 | trimSuffix "-" -}} -{{- else -}} -{{- $name := default .Chart.Name .Values.common.nameOverride -}} -{{- if contains $name .Release.Name -}} -{{- .Release.Name | trunc 38 | trimSuffix "-" -}} -{{- else -}} -{{- printf "%s-%s" .Release.Name $name | trunc 38 | trimSuffix "-" -}} -{{- end -}} -{{- end -}} -{{- end -}} - -{{/* -Create chart name and version as used by the chart label. -*/}} -{{- define "hyades.chart" -}} -{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }} -{{- end }} - -{{/* -Common labels -*/}} -{{- define "hyades.commonLabels" -}} -helm.sh/chart: {{ include "hyades.chart" . }} -app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} -app.kubernetes.io/part-of: {{ include "hyades.name" . }} -app.kubernetes.io/managed-by: {{ .Release.Service }} -{{- end -}} - -{{/* -Common selector labels -*/}} -{{- define "hyades.commonSelectorLabels" -}} -app.kubernetes.io/instance: {{ .Release.Name }} -{{- end -}} - - -{{/* -API server labels -*/}} -{{- define "hyades.apiServerLabels" -}} -{{ include "hyades.commonLabels" . }} -{{ include "hyades.apiServerSelectorLabels" . }} -{{- end -}} - -{{/* -API server selector labels -*/}} -{{- define "hyades.apiServerSelectorLabels" -}} -{{ include "hyades.commonSelectorLabels" . }} -app.kubernetes.io/name: {{ printf "%s-api-server" (include "hyades.name" .) }} -app.kubernetes.io/component: api-server -{{- end -}} - -{{/* -API server name -*/}} -{{- define "hyades.apiServerName" -}} -{{- printf "%s-api-server" (include "hyades.name" .) -}} -{{- end -}} - -{{/* -API server fully qualified name -*/}} -{{- define "hyades.apiServerFullname" -}} -{{- printf "%s-api-server" (include "hyades.fullname" .) -}} -{{- end -}} - -{{/* -API server image -*/}} -{{- define "hyades.apiServerImage" -}} -{{- printf "%s/%s:%s" .Values.common.image.registry .Values.apiServer.image.repository (.Values.apiServer.image.tag | default .Chart.AppVersion) -}} -{{- end -}} - - -{{/* -Frontend labels -*/}} -{{- define "hyades.frontendLabels" -}} -{{ include "hyades.commonLabels" . }} -{{ include "hyades.frontendSelectorLabels" . }} -{{- end -}} - -{{/* -Frontend selector labels -*/}} -{{- define "hyades.frontendSelectorLabels" -}} -{{ include "hyades.commonSelectorLabels" . }} -app.kubernetes.io/name: {{ printf "%s-frontend" (include "hyades.name" .) }} -app.kubernetes.io/component: frontend -{{- end -}} - -{{/* -Frontend name -*/}} -{{- define "hyades.frontendName" -}} -{{- printf "%s-frontend" (include "hyades.name" .) -}} -{{- end -}} - -{{/* -Frontend fully qualified name -*/}} -{{- define "hyades.frontendFullname" -}} -{{- printf "%s-frontend" (include "hyades.fullname" .) -}} -{{- end -}} - -{{/* -Frontend image -*/}} -{{- define "hyades.frontendImage" -}} -{{- printf "%s/%s:%s" .Values.common.image.registry .Values.frontend.image.repository (.Values.frontend.image.tag | default .Chart.AppVersion) -}} -{{- end -}} - - -{{/* -Mirror service labels -*/}} -{{- define "hyades.mirrorServiceLabels" -}} -{{ include "hyades.commonLabels" . }} -{{ include "hyades.mirrorServiceSelectorLabels" . }} -{{- end -}} - -{{/* -Mirror service selector labels -*/}} -{{- define "hyades.mirrorServiceSelectorLabels" -}} -{{ include "hyades.commonSelectorLabels" . }} -app.kubernetes.io/name: {{ printf "%s-mirror-service" (include "hyades.name" .) }} -app.kubernetes.io/component: mirror-service -{{- end -}} - -{{/* -Mirror service name -*/}} -{{- define "hyades.mirrorServiceName" -}} -{{- printf "%s-mirror-service" (include "hyades.name" .) -}} -{{- end -}} - -{{/* -Mirror service fully qualified name -*/}} -{{- define "hyades.mirrorServiceFullname" -}} -{{- printf "%s-mirror-service" (include "hyades.fullname" .) -}} -{{- end -}} - -{{/* -Mirror service image -*/}} -{{- define "hyades.mirrorServiceImage" -}} -{{- printf "%s/%s:%s" .Values.common.image.registry .Values.mirrorService.image.repository (.Values.mirrorService.image.tag | default .Chart.AppVersion) -}} -{{- end -}} - - -{{/* -Notification publisher labels -*/}} -{{- define "hyades.notificationPublisherLabels" -}} -{{ include "hyades.commonLabels" . }} -{{ include "hyades.notificationPublisherSelectorLabels" . }} -{{- end -}} - -{{/* -Notification publisher selector labels -*/}} -{{- define "hyades.notificationPublisherSelectorLabels" -}} -{{ include "hyades.commonSelectorLabels" . }} -app.kubernetes.io/name: {{ printf "%s-notification-publisher" (include "hyades.name" .) }} -app.kubernetes.io/component: notification-publisher -{{- end -}} - -{{/* -Notification publisher name -*/}} -{{- define "hyades.notificationPublisherName" -}} -{{- printf "%s-notification-publisher" (include "hyades.name" .) -}} -{{- end -}} - -{{/* -Notification publisher fully qualified name -*/}} -{{- define "hyades.notificationPublisherFullname" -}} -{{- printf "%s-notification-publisher" (include "hyades.fullname" .) -}} -{{- end -}} - -{{/* -Notification publisher image -*/}} -{{- define "hyades.notificationPublisherImage" -}} -{{- printf "%s/%s:%s" .Values.common.image.registry .Values.notificationPublisher.image.repository (.Values.notificationPublisher.image.tag | default .Chart.AppVersion) -}} -{{- end -}} - - -{{/* -Repository metadata analyzer labels -*/}} -{{- define "hyades.repoMetaAnalyzerLabels" -}} -{{ include "hyades.commonLabels" . }} -{{ include "hyades.repoMetaAnalyzerSelectorLabels" . }} -{{- end -}} - -{{/* -Repository metadata analyzer selector labels -*/}} -{{- define "hyades.repoMetaAnalyzerSelectorLabels" -}} -{{ include "hyades.commonSelectorLabels" . }} -app.kubernetes.io/name: {{ printf "%s-repository-meta-analyzer" (include "hyades.name" .) }} -app.kubernetes.io/component: repository-meta-analyzer -{{- end -}} - -{{/* -Repository metadata analyzer name -*/}} -{{- define "hyades.repoMetaAnalyzerName" -}} -{{- printf "%s-repository-meta-analyzer" (include "hyades.name" .) -}} -{{- end -}} - -{{/* -Repository metadata analyzer fully qualified name -*/}} -{{- define "hyades.repoMetaAnalyzerFullname" -}} -{{- printf "%s-repository-meta-analyzer" (include "hyades.fullname" .) -}} -{{- end -}} - -{{/* -Repository metadata analyzer image -*/}} -{{- define "hyades.repoMetaAnalyzerImage" -}} -{{- printf "%s/%s:%s" .Values.common.image.registry .Values.repoMetaAnalyzer.image.repository (.Values.repoMetaAnalyzer.image.tag | default .Chart.AppVersion) -}} -{{- end -}} - - -{{/* -Vulnerability analyzer labels -*/}} -{{- define "hyades.vulnAnalyzerLabels" -}} -{{ include "hyades.commonLabels" . }} -{{ include "hyades.vulnAnalyzerSelectorLabels" . }} -{{- end -}} - -{{/* -Vulnerability analyzer selector labels -*/}} -{{- define "hyades.vulnAnalyzerSelectorLabels" -}} -{{ include "hyades.commonSelectorLabels" . }} -app.kubernetes.io/name: {{ printf "%s-vulnerability-analyzer" (include "hyades.name" .) }} -app.kubernetes.io/component: vulnerability-analyzer -{{- end -}} - -{{/* -Vulnerability analyzer name -*/}} -{{- define "hyades.vulnAnalyzerName" -}} -{{- printf "%s-vulnerability-analyzer" (include "hyades.name" .) -}} -{{- end -}} - -{{/* -Vulnerability analyzer fully qualified name -*/}} -{{- define "hyades.vulnAnalyzerFullname" -}} -{{- printf "%s-vulnerability-analyzer" (include "hyades.fullname" .) -}} -{{- end -}} - -{{/* -Vulnerability analyzer image -*/}} -{{- define "hyades.vulnAnalyzerImage" -}} -{{- printf "%s/%s:%s" .Values.common.image.registry .Values.vulnAnalyzer.image.repository (.Values.vulnAnalyzer.image.tag | default .Chart.AppVersion) -}} -{{- end -}} - -{{/* -*/}} -{{- define "hyades.secretKeySecretName" -}} -{{- if .Values.common.secretKey.existingSecretName -}} -{{- .Values.common.secretKey.existingSecretName -}} -{{- else if .Values.common.secretKey.createSecret -}} -{{- printf "%s-secret-key" (include "hyades.fullname" .) -}} -{{- end -}} -{{- end -}} diff --git a/helm-charts/hyades/templates/api-server/deployment.yaml b/helm-charts/hyades/templates/api-server/deployment.yaml deleted file mode 100644 index 40bc206a9..000000000 --- a/helm-charts/hyades/templates/api-server/deployment.yaml +++ /dev/null @@ -1,119 +0,0 @@ -{{- if .Values.apiServer.enabled }} ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - name: {{ include "hyades.apiServerFullname" . }} - namespace: {{ .Release.Namespace }} - labels: {{- include "hyades.apiServerLabels" . | nindent 4 }} -spec: - replicas: {{ .Values.apiServer.replicaCount }} - selector: - matchLabels: {{- include "hyades.apiServerSelectorLabels" . | nindent 6 }} - template: - metadata: - labels: {{ include "hyades.apiServerSelectorLabels" . | nindent 8 }} - annotations: - prometheus.io/scrape: "true" - prometheus.io/path: /metrics - {{- with .Values.apiServer.annotations }} - {{ toYaml . | nindent 8 }} - {{- end }} - spec: - {{- with .Values.common.image.pullSecrets }} - imagePullSecrets: {{- toYaml . | nindent 6 }} - {{- end }} - terminationGracePeriodSeconds: {{ .Values.apiServer.terminationGracePeriodSeconds }} - containers: - - name: {{ include "hyades.apiServerName" . }} - image: {{ include "hyades.apiServerImage" . }} - imagePullPolicy: {{ .Values.apiServer.image.pullPolicy }} - {{- with .Values.apiServer.command }} - command: {{ toYaml . | nindent 8 }} - {{- end }} - {{- with .Values.apiServer.args }} - args: {{ toYaml . | nindent 8 }} - {{- end }} - resources: {{- toYaml .Values.apiServer.resources | nindent 10 }} - env: - - name: ALPINE_METRICS_ENABLED - value: "true" - {{- if (include "hyades.secretKeySecretName" .) }} - - name: ALPINE_SECRET_KEY_PATH - value: "/var/run/secrets/secret.key" - {{- end }} - - name: ALPINE_DATABASE_MODE - value: "external" - - name: ALPINE_DATABASE_DRIVER - value: "org.postgresql.Driver" # TODO: Compute correct driver based on JDBC URL - {{- with .Values.common.database.jdbcUrl }} - - name: ALPINE_DATABASE_URL - value: {{ . | quote }} - {{- end}} - {{- with .Values.common.database.username }} - - name: ALPINE_DATABASE_USERNAME - value: {{ . | quote }} - {{- end }} - {{- with .Values.common.database.password }} - - name: ALPINE_DATABASE_PASSWORD - value: {{ . | quote }} - {{- end }} - - name: KAFKA_BOOTSTRAP_SERVERS - value: {{ .Values.common.kafka.bootstrapServers | quote }} - {{- with .Values.common.kafka.topicPrefix }} - - name: KAFKA_TOPIC_PREFIX - value: {{ . | quote }} - {{- end }} - {{- range $k, $v := .Values.apiServer.extraEnv }} - - name: {{ $k }} - value: {{ $v | quote }} - {{- end }} - {{- with .Values.apiServer.extraEnvFrom }} - envFrom: {{ toYaml . | nindent 8 }} - {{- end }} - ports: - - name: web - containerPort: 8080 - protocol: TCP - volumeMounts: - - name: data - mountPath: /data - - name: tmp - mountPath: /tmp - {{- if (include "hyades.secretKeySecretName" .) }} - - name: secret-key - subPath: secret.key - mountPath: /var/run/secrets/secret.key - readOnly: true - {{- end }} - livenessProbe: - httpGet: - scheme: HTTP - port: web - path: /health/live - failureThreshold: {{ .Values.apiServer.probes.liveness.failureThreshold }} - initialDelaySeconds: {{ .Values.apiServer.probes.liveness.initialDelaySeconds }} - periodSeconds: {{ .Values.apiServer.probes.liveness.periodSeconds }} - successThreshold: {{ .Values.apiServer.probes.liveness.successThreshold }} - timeoutSeconds: {{ .Values.apiServer.probes.liveness.timeoutSeconds }} - readinessProbe: - httpGet: - scheme: HTTP - port: web - path: /health/ready - failureThreshold: {{ .Values.apiServer.probes.readiness.failureThreshold }} - initialDelaySeconds: {{ .Values.apiServer.probes.readiness.initialDelaySeconds }} - periodSeconds: {{ .Values.apiServer.probes.readiness.periodSeconds }} - successThreshold: {{ .Values.apiServer.probes.readiness.successThreshold }} - timeoutSeconds: {{ .Values.apiServer.probes.readiness.timeoutSeconds }} - volumes: - - name: data - emptyDir: { } - - name: tmp - emptyDir: { } - {{- with (include "hyades.secretKeySecretName" .) }} - - name: secret-key - secret: - secretName: {{ . }} - {{- end }} -{{- end }} \ No newline at end of file diff --git a/helm-charts/hyades/templates/api-server/ingress.yaml b/helm-charts/hyades/templates/api-server/ingress.yaml deleted file mode 100644 index a03b1547e..000000000 --- a/helm-charts/hyades/templates/api-server/ingress.yaml +++ /dev/null @@ -1,22 +0,0 @@ -{{- if and .Values.apiServer.enabled .Values.apiServer.ingress.enabled }} -apiVersion: networking.k8s.io/v1 -kind: Ingress -metadata: - name: {{ include "hyades.apiServerFullname" . }} - namespace: {{ .Release.Namespace }} - {{- with .Values.apiServer.ingress.annotations }} - annotations: {{- toYaml . | nindent 4 }} - {{- end }} -spec: - rules: - - host: {{ .Values.apiServer.ingress.hostname | quote }} - http: - paths: - - path: /api - pathType: Prefix - backend: - service: - name: {{ include "hyades.apiServerFullname" . }} - port: - name: web -{{- end }} \ No newline at end of file diff --git a/helm-charts/hyades/templates/api-server/service.yaml b/helm-charts/hyades/templates/api-server/service.yaml deleted file mode 100644 index 0d070ede0..000000000 --- a/helm-charts/hyades/templates/api-server/service.yaml +++ /dev/null @@ -1,19 +0,0 @@ -{{- if .Values.apiServer.enabled }} ---- -apiVersion: v1 -kind: Service -metadata: - name: {{ include "hyades.apiServerFullname" . }} - namespace: {{ .Release.Namespace }} - labels: {{- include "hyades.apiServerLabels" . | nindent 4 }} -spec: - type: {{ .Values.apiServer.service.type | quote }} - ports: - - name: web - port: 8080 - targetPort: web - {{- with .Values.apiServer.service.nodePort }} - nodePort: {{ . }} - {{- end }} - selector: {{- include "hyades.apiServerSelectorLabels" . | nindent 4 }} -{{- end }} \ No newline at end of file diff --git a/helm-charts/hyades/templates/api-server/servicemonitor.yaml b/helm-charts/hyades/templates/api-server/servicemonitor.yaml deleted file mode 100644 index f837dee6f..000000000 --- a/helm-charts/hyades/templates/api-server/servicemonitor.yaml +++ /dev/null @@ -1,21 +0,0 @@ -{{- if and .Values.apiServer.enabled .Values.apiServer.serviceMonitor.enabled }} ---- -apiVersion: monitoring.coreos.com/v1 -kind: ServiceMonitor -metadata: - name: {{ include "hyades.apiServerFullname" . }} - namespace: {{ .Values.apiServer.serviceMonitor.namespace }} - labels: {{- include "hyades.apiServerLabels" . | nindent 4 }} -spec: - namespaceSelector: - matchNames: - - {{ .Release.Namespace }} - selector: - matchLabels: {{- include "hyades.apiServerSelectorLabels" . | nindent 6 }} - jobLabel: {{ include "hyades.apiServerFullname" . }} - endpoints: - - port: web - path: /metrics - interval: {{ .Values.apiServer.serviceMonitor.scrapeInternal }} - timeout: {{ .Values.apiServer.serviceMonitor.scrapeTimeout }} -{{- end }} \ No newline at end of file diff --git a/helm-charts/hyades/templates/frontend/deployment.yaml b/helm-charts/hyades/templates/frontend/deployment.yaml deleted file mode 100644 index 00f2a48a9..000000000 --- a/helm-charts/hyades/templates/frontend/deployment.yaml +++ /dev/null @@ -1,69 +0,0 @@ -{{- if .Values.frontend.enabled }} ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - name: {{ include "hyades.frontendFullname" . }} - namespace: {{ .Release.Namespace }} - labels: {{- include "hyades.frontendLabels" . | nindent 4 }} -spec: - replicas: {{ .Values.frontend.replicaCount }} - selector: - matchLabels: {{- include "hyades.frontendSelectorLabels" . | nindent 6 }} - template: - metadata: - labels: {{- include "hyades.frontendSelectorLabels" . | nindent 8 }} - {{- with .Values.frontend.annotations }} - annotations: {{- toYaml . | nindent 8 }} - {{- end }} - spec: - {{- with .Values.common.image.pullSecrets }} - imagePullSecrets: {{- toYaml . | nindent 6 }} - {{- end }} - containers: - - name: {{ include "hyades.frontendName" . }} - image: {{ include "hyades.frontendImage" . }} - imagePullPolicy: {{ .Values.frontend.image.pullPolicy }} - {{- with .Values.frontend.command }} - command: {{ toYaml . | nindent 8 }} - {{- end }} - {{- with .Values.frontend.args }} - args: {{ toYaml . | nindent 8 }} - {{- end }} - resources: - {{- toYaml .Values.frontend.resources | nindent 10 }} - env: - - name: API_BASE_URL - value: {{ .Values.frontend.apiBaseUrl | quote }} - {{- range $k, $v := .Values.frontend.extraEnv }} - - name: {{ $k }} - value: {{ $v | quote }} - {{- end }} - {{- with .Values.frontend.extraEnvFrom }} - envFrom: {{ toYaml . | nindent 8 }} - {{- end }} - ports: - - name: web - containerPort: 8080 - protocol: TCP - livenessProbe: - httpGet: - scheme: HTTP - port: web - path: / - failureThreshold: {{ .Values.frontend.probes.liveness.failureThreshold }} - initialDelaySeconds: {{ .Values.frontend.probes.liveness.initialDelaySeconds }} - periodSeconds: {{ .Values.frontend.probes.liveness.periodSeconds }} - successThreshold: {{ .Values.frontend.probes.liveness.successThreshold }} - timeoutSeconds: {{ .Values.frontend.probes.liveness.timeoutSeconds }} - readinessProbe: - httpGet: - scheme: HTTP - port: web - path: / - failureThreshold: {{ .Values.frontend.probes.readiness.failureThreshold }} - initialDelaySeconds: {{ .Values.frontend.probes.readiness.initialDelaySeconds }} - periodSeconds: {{ .Values.frontend.probes.readiness.periodSeconds }} - successThreshold: {{ .Values.frontend.probes.readiness.successThreshold }} - timeoutSeconds: {{ .Values.frontend.probes.readiness.timeoutSeconds }} - {{- end }} \ No newline at end of file diff --git a/helm-charts/hyades/templates/frontend/ingress.yaml b/helm-charts/hyades/templates/frontend/ingress.yaml deleted file mode 100644 index 501e1a3fb..000000000 --- a/helm-charts/hyades/templates/frontend/ingress.yaml +++ /dev/null @@ -1,23 +0,0 @@ -{{- if and .Values.frontend.enabled .Values.frontend.ingress.enabled }} -apiVersion: networking.k8s.io/v1 -kind: Ingress -metadata: - name: {{ include "hyades.frontendFullname" . }} - namespace: {{ .Release.Namespace }} - labels: {{- include "hyades.frontendLabels" . | nindent 4 }} - {{- with .Values.frontend.ingress.annotations }} - annotations: {{- toYaml . | nindent 4 }} - {{- end }} -spec: - rules: - - host: {{ .Values.frontend.ingress.hostname | quote }} - http: - paths: - - path: / - pathType: Prefix - backend: - service: - name: {{ include "hyades.frontendFullname" . }} - port: - name: web -{{- end }} \ No newline at end of file diff --git a/helm-charts/hyades/templates/frontend/service.yaml b/helm-charts/hyades/templates/frontend/service.yaml deleted file mode 100644 index c9d6a9333..000000000 --- a/helm-charts/hyades/templates/frontend/service.yaml +++ /dev/null @@ -1,19 +0,0 @@ -{{- if .Values.frontend.enabled }} ---- -apiVersion: v1 -kind: Service -metadata: - name: {{ include "hyades.frontendFullname" . }} - namespace: {{ .Release.Namespace }} - labels: {{- include "hyades.frontendLabels" . | nindent 4 }} -spec: - type: {{ .Values.frontend.service.type | quote }} - ports: - - name: web - port: 8080 - targetPort: web - {{- with .Values.frontend.service.nodePort }} - nodePort: {{ . }} - {{- end }} - selector: {{- include "hyades.frontendSelectorLabels" . | nindent 4 }} -{{- end }} \ No newline at end of file diff --git a/helm-charts/hyades/templates/mirror-service/deployment.yaml b/helm-charts/hyades/templates/mirror-service/deployment.yaml deleted file mode 100644 index 4eec1c60a..000000000 --- a/helm-charts/hyades/templates/mirror-service/deployment.yaml +++ /dev/null @@ -1,93 +0,0 @@ -{{- if .Values.mirrorService.enabled }} ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - name: {{ include "hyades.mirrorServiceFullname" . }} - namespace: {{ .Release.Namespace }} - labels: {{- include "hyades.mirrorServiceLabels" . | nindent 4 }} -spec: - replicas: {{ .Values.mirrorService.replicaCount }} - selector: - matchLabels: {{- include "hyades.mirrorServiceSelectorLabels" . | nindent 6 }} - template: - metadata: - labels: {{- include "hyades.mirrorServiceSelectorLabels" . | nindent 8 }} - annotations: - prometheus.io/scrape: "true" - prometheus.io/path: /q/metrics - {{- with .Values.mirrorService.annotations }} - {{ toYaml . | nindent 8 }} - {{- end }} - spec: - {{- with .Values.common.image.pullSecrets }} - imagePullSecrets: {{- toYaml . | nindent 6 }} - {{- end }} - containers: - - name: {{ include "hyades.mirrorServiceName" . }} - image: {{ include "hyades.mirrorServiceImage" . }} - imagePullPolicy: {{ .Values.mirrorService.image.pullPolicy }} - {{- with .Values.mirrorService.command }} - command: {{ toYaml . | nindent 8 }} - {{- end }} - {{- with .Values.mirrorService.args }} - args: {{ toYaml . | nindent 8 }} - {{- end }} - resources: - {{- toYaml .Values.mirrorService.resources | nindent 10 }} - env: - - name: KAFKA_BOOTSTRAP_SERVERS - value: {{ .Values.common.kafka.bootstrapServers | quote }} - {{- with .Values.common.kafka.topicPrefix }} - - name: KAFKA_TOPIC_PREFIX - value: {{ . | quote }} - {{- end }} - {{- range $k, $v := .Values.mirrorService.extraEnv }} - - name: {{ $k }} - value: {{ $v | quote }} - {{- end }} - {{- with .Values.mirrorService.extraEnvFrom }} - envFrom: {{ toYaml . | nindent 8 }} - {{- end }} - ports: - - name: web - containerPort: 8093 - protocol: TCP - volumeMounts: - - name: tmp - mountPath: /tmp - {{- if (include "hyades.secretKeySecretName" .) }} - - name: secret-key - subPath: secret.key - mountPath: /var/run/secrets/secret.key - readOnly: true - {{- end }} - livenessProbe: - httpGet: - scheme: HTTP - port: web - path: /q/health/live - failureThreshold: {{ .Values.mirrorService.probes.liveness.failureThreshold }} - initialDelaySeconds: {{ .Values.mirrorService.probes.liveness.initialDelaySeconds }} - periodSeconds: {{ .Values.mirrorService.probes.liveness.periodSeconds }} - successThreshold: {{ .Values.mirrorService.probes.liveness.successThreshold }} - timeoutSeconds: {{ .Values.mirrorService.probes.liveness.timeoutSeconds }} - readinessProbe: - httpGet: - scheme: HTTP - port: web - path: /q/health/ready - failureThreshold: {{ .Values.mirrorService.probes.readiness.failureThreshold }} - initialDelaySeconds: {{ .Values.mirrorService.probes.readiness.initialDelaySeconds }} - periodSeconds: {{ .Values.mirrorService.probes.readiness.periodSeconds }} - successThreshold: {{ .Values.mirrorService.probes.readiness.successThreshold }} - timeoutSeconds: {{ .Values.mirrorService.probes.readiness.timeoutSeconds }} - volumes: - - name: tmp - emptyDir: {} - {{- with (include "hyades.secretKeySecretName" .) }} - - name: secret-key - secret: - secretName: {{ . }} - {{- end }} - {{- end }} \ No newline at end of file diff --git a/helm-charts/hyades/templates/notification-publisher/deployment.yaml b/helm-charts/hyades/templates/notification-publisher/deployment.yaml deleted file mode 100644 index 39bc37af7..000000000 --- a/helm-charts/hyades/templates/notification-publisher/deployment.yaml +++ /dev/null @@ -1,109 +0,0 @@ -{{- if .Values.notificationPublisher.enabled }} ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - name: {{ include "hyades.notificationPublisherFullname" . }} - namespace: {{ .Release.Namespace }} - labels: {{- include "hyades.notificationPublisherLabels" . | nindent 4 }} -spec: - replicas: {{ .Values.notificationPublisher.replicaCount }} - selector: - matchLabels: {{- include "hyades.notificationPublisherSelectorLabels" . | nindent 6 }} - template: - metadata: - labels: {{- include "hyades.notificationPublisherSelectorLabels" . | nindent 8 }} - annotations: - prometheus.io/scrape: "true" - prometheus.io/path: /q/metrics - {{- with .Values.notificationPublisher.annotations }} - {{ toYaml . | nindent 8 }} - {{- end }} - spec: - {{- with .Values.common.image.pullSecrets }} - imagePullSecrets: {{- toYaml . | nindent 6 }} - {{- end }} - containers: - - name: {{ include "hyades.notificationPublisherName" . }} - image: {{ include "hyades.notificationPublisherImage" . }} - imagePullPolicy: {{ .Values.notificationPublisher.image.pullPolicy }} - {{- with .Values.notificationPublisher.command }} - command: {{ toYaml . | nindent 8 }} - {{- end }} - {{- with .Values.notificationPublisher.args }} - args: {{ toYaml . | nindent 8 }} - {{- end }} - resources: - {{- toYaml .Values.notificationPublisher.resources | nindent 10 }} - env: - {{- if (include "hyades.secretKeySecretName" .) }} - - name: SECRET_KEY_PATH - value: "/var/run/secrets/secret.key" - {{- end }} - {{- with .Values.common.database.jdbcUrl }} - - name: QUARKUS_DATASOURCE_JDBC_URL - value: {{ . | quote }} - {{- end}} - {{- with .Values.common.database.username }} - - name: QUARKUS_DATASOURCE_USERNAME - value: {{ . | quote }} - {{- end }} - {{- with .Values.common.database.password }} - - name: QUARKUS_DATASOURCE_PASSWORD - value: {{ . | quote }} - {{- end }} - - name: KAFKA_BOOTSTRAP_SERVERS - value: {{ .Values.common.kafka.bootstrapServers | quote }} - {{- with .Values.common.kafka.topicPrefix }} - - name: KAFKA_TOPIC_PREFIX - value: {{ . | quote }} - {{- end }} - {{- range $k, $v := .Values.notificationPublisher.extraEnv }} - - name: {{ $k }} - value: {{ $v | quote }} - {{- end }} - {{- with .Values.notificationPublisher.extraEnvFrom }} - envFrom: {{ toYaml . | nindent 8 }} - {{- end }} - ports: - - name: web - containerPort: 8090 - protocol: TCP - volumeMounts: - - name: tmp - mountPath: /tmp - {{- if (include "hyades.secretKeySecretName" .) }} - - name: secret-key - subPath: secret.key - mountPath: /var/run/secrets/secret.key - readOnly: true - {{- end }} - livenessProbe: - httpGet: - scheme: HTTP - port: web - path: /q/health/live - failureThreshold: {{ .Values.notificationPublisher.probes.liveness.failureThreshold }} - initialDelaySeconds: {{ .Values.notificationPublisher.probes.liveness.initialDelaySeconds }} - periodSeconds: {{ .Values.notificationPublisher.probes.liveness.periodSeconds }} - successThreshold: {{ .Values.notificationPublisher.probes.liveness.successThreshold }} - timeoutSeconds: {{ .Values.notificationPublisher.probes.liveness.timeoutSeconds }} - readinessProbe: - httpGet: - scheme: HTTP - port: web - path: /q/health/ready - failureThreshold: {{ .Values.notificationPublisher.probes.readiness.failureThreshold }} - initialDelaySeconds: {{ .Values.notificationPublisher.probes.readiness.initialDelaySeconds }} - periodSeconds: {{ .Values.notificationPublisher.probes.readiness.periodSeconds }} - successThreshold: {{ .Values.notificationPublisher.probes.readiness.successThreshold }} - timeoutSeconds: {{ .Values.notificationPublisher.probes.readiness.timeoutSeconds }} - volumes: - - name: tmp - emptyDir: {} - {{- with (include "hyades.secretKeySecretName" .) }} - - name: secret-key - secret: - secretName: {{ . }} - {{- end }} -{{- end }} \ No newline at end of file diff --git a/helm-charts/hyades/templates/repo-meta-analyzer/deployment.yaml b/helm-charts/hyades/templates/repo-meta-analyzer/deployment.yaml deleted file mode 100644 index 696da1e2b..000000000 --- a/helm-charts/hyades/templates/repo-meta-analyzer/deployment.yaml +++ /dev/null @@ -1,107 +0,0 @@ ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - name: {{ include "hyades.repoMetaAnalyzerFullname" . }} - namespace: {{ .Release.Namespace }} - labels: {{- include "hyades.repoMetaAnalyzerLabels" . | nindent 4 }} -spec: - replicas: {{ .Values.repoMetaAnalyzer.replicaCount }} - selector: - matchLabels: {{- include "hyades.repoMetaAnalyzerSelectorLabels" . | nindent 6 }} - template: - metadata: - labels: {{- include "hyades.repoMetaAnalyzerSelectorLabels" . | nindent 8 }} - annotations: - prometheus.io/scrape: "true" - prometheus.io/path: /q/metrics - {{- with .Values.repoMetaAnalyzer.annotations }} - {{ toYaml . | nindent 8 }} - {{- end }} - spec: - {{- with .Values.common.image.pullSecrets }} - imagePullSecrets: {{- toYaml . | nindent 6 }} - {{- end }} - containers: - - name: {{ include "hyades.repoMetaAnalyzerName" . }} - image: {{ include "hyades.repoMetaAnalyzerImage" . }} - imagePullPolicy: {{ .Values.repoMetaAnalyzer.image.pullPolicy }} - {{- with .Values.repoMetaAnalyzer.command }} - command: {{ toYaml . | nindent 8 }} - {{- end }} - {{- with .Values.repoMetaAnalyzer.args }} - args: {{ toYaml . | nindent 8 }} - {{- end }} - resources: - {{- toYaml .Values.repoMetaAnalyzer.resources | nindent 10 }} - env: - {{- if (include "hyades.secretKeySecretName" .) }} - - name: SECRET_KEY_PATH - value: "/var/run/secrets/secret.key" - {{- end }} - {{- with .Values.common.database.jdbcUrl }} - - name: QUARKUS_DATASOURCE_JDBC_URL - value: {{ . | quote }} - {{- end}} - {{- with .Values.common.database.username }} - - name: QUARKUS_DATASOURCE_USERNAME - value: {{ . | quote }} - {{- end }} - {{- with .Values.common.database.password }} - - name: QUARKUS_DATASOURCE_PASSWORD - value: {{ . | quote }} - {{- end }} - - name: KAFKA_BOOTSTRAP_SERVERS - value: {{ .Values.common.kafka.bootstrapServers | quote }} - {{- with .Values.common.kafka.topicPrefix }} - - name: KAFKA_TOPIC_PREFIX - value: {{ . | quote }} - {{- end }} - {{- range $k, $v := .Values.repoMetaAnalyzer.extraEnv }} - - name: {{ $k }} - value: {{ $v | quote }} - {{- end }} - {{- with .Values.repoMetaAnalyzer.extraEnvFrom }} - envFrom: {{ toYaml . | nindent 8 }} - {{- end }} - ports: - - name: web - containerPort: 8091 - protocol: TCP - volumeMounts: - - name: tmp - mountPath: /tmp - {{- if (include "hyades.secretKeySecretName" .) }} - - name: secret-key - subPath: secret.key - mountPath: /var/run/secrets/secret.key - readOnly: true - {{- end }} - livenessProbe: - httpGet: - scheme: HTTP - port: web - path: /q/health/live - failureThreshold: {{ .Values.repoMetaAnalyzer.probes.liveness.failureThreshold }} - initialDelaySeconds: {{ .Values.repoMetaAnalyzer.probes.liveness.initialDelaySeconds }} - periodSeconds: {{ .Values.repoMetaAnalyzer.probes.liveness.periodSeconds }} - successThreshold: {{ .Values.repoMetaAnalyzer.probes.liveness.successThreshold }} - timeoutSeconds: {{ .Values.repoMetaAnalyzer.probes.liveness.timeoutSeconds }} - readinessProbe: - httpGet: - scheme: HTTP - port: web - path: /q/health/ready - failureThreshold: {{ .Values.repoMetaAnalyzer.probes.readiness.failureThreshold }} - initialDelaySeconds: {{ .Values.repoMetaAnalyzer.probes.readiness.initialDelaySeconds }} - periodSeconds: {{ .Values.repoMetaAnalyzer.probes.readiness.periodSeconds }} - successThreshold: {{ .Values.repoMetaAnalyzer.probes.readiness.successThreshold }} - timeoutSeconds: {{ .Values.repoMetaAnalyzer.probes.readiness.timeoutSeconds }} - volumes: - - name: tmp - emptyDir: {} - {{- with (include "hyades.secretKeySecretName" .) }} - - name: secret-key - secret: - secretName: {{ . }} - {{- end }} diff --git a/helm-charts/hyades/templates/secret.yaml b/helm-charts/hyades/templates/secret.yaml deleted file mode 100644 index d3afd8350..000000000 --- a/helm-charts/hyades/templates/secret.yaml +++ /dev/null @@ -1,14 +0,0 @@ -{{- if and .Values.common.secretKey.createSecret (empty .Values.common.secretKey.existingSecretName) }} ---- -apiVersion: v1 -kind: Secret -metadata: - name: {{ include "hyades.secretKeySecretName" . }} - namespace: {{ .Release.Namespace }} - labels: {{- include "hyades.commonLabels" . | nindent 4 }} - annotations: - helm.sh/resource-policy: "keep" -type: Opaque -data: - secret.key: {{ randAlphaNum 32 | b64enc | quote }} -{{- end }} diff --git a/helm-charts/hyades/templates/vuln-analyzer/service.yaml b/helm-charts/hyades/templates/vuln-analyzer/service.yaml deleted file mode 100644 index 942d9e3ee..000000000 --- a/helm-charts/hyades/templates/vuln-analyzer/service.yaml +++ /dev/null @@ -1,13 +0,0 @@ ---- -apiVersion: v1 -kind: Service -metadata: - name: {{ include "hyades.vulnAnalyzerFullname" . }} - namespace: {{ .Release.Namespace }} - labels: {{- include "hyades.vulnAnalyzerLabels" . | nindent 4 }} -spec: - clusterIP: None - ports: - - port: 80 - targetPort: web - selector: {{- include "hyades.vulnAnalyzerSelectorLabels" . | nindent 4 }} \ No newline at end of file diff --git a/helm-charts/hyades/templates/vuln-analyzer/statefulset.yaml b/helm-charts/hyades/templates/vuln-analyzer/statefulset.yaml deleted file mode 100644 index 5f73bcd00..000000000 --- a/helm-charts/hyades/templates/vuln-analyzer/statefulset.yaml +++ /dev/null @@ -1,110 +0,0 @@ ---- -apiVersion: apps/v1 -kind: StatefulSet -metadata: - name: {{ include "hyades.vulnAnalyzerFullname" . }} - namespace: {{ .Release.Namespace }} - labels: {{- include "hyades.vulnAnalyzerLabels" . | nindent 4 }} -spec: - serviceName: {{ include "hyades.vulnAnalyzerFullname" . }} - replicas: {{ .Values.vulnAnalyzer.replicaCount }} - selector: - matchLabels: {{- include "hyades.vulnAnalyzerSelectorLabels" . | nindent 6 }} - template: - metadata: - labels: {{ include "hyades.vulnAnalyzerSelectorLabels" . | nindent 8 }} - annotations: - prometheus.io/scrape: "true" - prometheus.io/path: /q/metrics - {{- with .Values.vulnAnalyzer.annotations }} - {{ toYaml . | nindent 8 }} - {{- end }} - spec: - {{- with .Values.common.image.pullSecrets }} - imagePullSecrets: {{- toYaml . | nindent 6 }} - {{- end }} - containers: - - name: {{ include "hyades.vulnAnalyzerName" . }} - image: {{ include "hyades.vulnAnalyzerImage" . }} - imagePullPolicy: {{ .Values.vulnAnalyzer.image.pullPolicy }} - {{- with .Values.vulnAnalyzer.command }} - command: {{ toYaml . | nindent 8 }} - {{- end }} - {{- with .Values.vulnAnalyzer.args }} - args: {{ toYaml . | nindent 8 }} - {{- end }} - resources: {{- toYaml .Values.vulnAnalyzer.resources | nindent 10 }} - env: - {{- with .Values.common.database.jdbcUrl }} - - name: QUARKUS_DATASOURCE_JDBC_URL - value: {{ . | quote }} - {{- end}} - {{- with .Values.common.database.username }} - - name: QUARKUS_DATASOURCE_USERNAME - value: {{ . | quote }} - {{- end }} - {{- with .Values.common.database.password }} - - name: QUARKUS_DATASOURCE_PASSWORD - value: {{ . | quote }} - {{- end }} - - name: KAFKA_BOOTSTRAP_SERVERS - value: {{ .Values.common.kafka.bootstrapServers | quote }} - - name: KAFKA_STREAMS_GROUP_INSTANCE_ID - valueFrom: - fieldRef: - fieldPath: metadata.name - {{- with .Values.common.kafka.topicPrefix }} - - name: KAFKA_TOPIC_PREFIX - value: {{ . | quote }} - {{- end }} - {{- range $k, $v := .Values.vulnAnalyzer.extraEnv }} - - name: {{ $k }} - value: {{ $v | quote }} - {{- end }} - {{- with .Values.vulnAnalyzer.extraEnvFrom }} - envFrom: {{ toYaml . | nindent 8 }} - {{- end }} - ports: - - name: web - containerPort: 8092 - protocol: TCP - volumeMounts: - - name: kafka-streams-state - mountPath: /tmp/kafka-streams - livenessProbe: - httpGet: - scheme: HTTP - port: web - path: /q/health/live - failureThreshold: {{ .Values.vulnAnalyzer.probes.liveness.failureThreshold }} - initialDelaySeconds: {{ .Values.vulnAnalyzer.probes.liveness.initialDelaySeconds }} - periodSeconds: {{ .Values.vulnAnalyzer.probes.liveness.periodSeconds }} - successThreshold: {{ .Values.vulnAnalyzer.probes.liveness.successThreshold }} - timeoutSeconds: {{ .Values.vulnAnalyzer.probes.liveness.timeoutSeconds }} - readinessProbe: - httpGet: - scheme: HTTP - port: web - path: /q/health/ready - failureThreshold: {{ .Values.vulnAnalyzer.probes.readiness.failureThreshold }} - initialDelaySeconds: {{ .Values.vulnAnalyzer.probes.readiness.initialDelaySeconds }} - periodSeconds: {{ .Values.vulnAnalyzer.probes.readiness.periodSeconds }} - successThreshold: {{ .Values.vulnAnalyzer.probes.readiness.successThreshold }} - timeoutSeconds: {{ .Values.vulnAnalyzer.probes.readiness.timeoutSeconds }} - {{- if not .Values.vulnAnalyzer.persistentVolume.enabled }} - volumes: - - name: kafka-streams-state - emptyDir: { } - {{- end }} - {{- if .Values.vulnAnalyzer.persistentVolume.enabled }} - volumeClaimTemplates: - - metadata: - name: kafka-streams-state - spec: - storageClassName: {{ .Values.vulnAnalyzer.persistentVolume.className }} - resources: - requests: - storage: {{ .Values.vulnAnalyzer.persistentVolume.size }} - accessModes: - - ReadWriteOnce - {{- end }} \ No newline at end of file diff --git a/helm-charts/hyades/values-minikube.yaml b/helm-charts/hyades/values-minikube.yaml deleted file mode 100644 index 44b524f4a..000000000 --- a/helm-charts/hyades/values-minikube.yaml +++ /dev/null @@ -1,36 +0,0 @@ ---- -common: - database: - jdbcUrl: "jdbc:postgresql://host.minikube.internal:5432/dtrack" - username: "dtrack" - password: "dtrack" - kafka: - bootstrapServers: "host.minikube.internal:9093" - secretKey: - createSecret: true - -apiServer: - enabled: true - replicaCount: 1 - resources: - requests: - cpu: "2" - memory: 1Gi - limits: - cpu: "4" - memory: 2Gi - service: - type: NodePort - nodePort: 30080 - extraEnv: - EXTRA_JAVA_OPTIONS: "-Xmx2g" - SYSTEM_REQUIREMENT_CHECK_ENABLED: "false" - KAFKA_NUM_STREAM_THREADS: "12" - -frontend: - enabled: true - replicaCount: 1 - service: - type: NodePort - nodePort: 30081 - apiBaseUrl: "http://localhost:30080" diff --git a/helm-charts/hyades/values.yaml b/helm-charts/hyades/values.yaml deleted file mode 100644 index c08a5a626..000000000 --- a/helm-charts/hyades/values.yaml +++ /dev/null @@ -1,244 +0,0 @@ ---- -common: - nameOverride: "" - fullnameOverride: "" - image: - registry: ghcr.io - pullSecrets: [] - database: - jdbcUrl: "" - username: "" - password: "" - kafka: - bootstrapServers: "" - topicPrefix: "" - secretKey: - # -- Whether the chart should generate a secret key upon deployment. - createSecret: false - # -- Use the secret key defined in an existing secret. - existingSecretName: "" - -apiServer: - enabled: false - replicaCount: 1 - annotations: {} - image: - repository: dependencytrack/hyades-apiserver - tag: latest - pullPolicy: Always - command: [] - args: [] - resources: - requests: - cpu: "2" - memory: 4Gi - limits: - cpu: "4" - memory: 8Gi - extraEnv: {} - extraEnvFrom: [] - probes: - liveness: - failureThreshold: 3 - initialDelaySeconds: 10 - periodSeconds: 15 - successThreshold: 1 - timeoutSeconds: 5 - readiness: - failureThreshold: 3 - initialDelaySeconds: 10 - periodSeconds: 15 - successThreshold: 1 - timeoutSeconds: 5 - service: - type: ClusterIP - nodePort: ~ - serviceMonitor: - enabled: false - namespace: monitoring - scrapeInternal: 15s - scrapeTimeout: 30s - # -- Grace period for pod termination in seconds. - # Should always be equal to or greater than the sum of `_DRAIN_TIMEOUT` configurations to ensure graceful shutdown. - # Refer to https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/ for details. - terminationGracePeriodSeconds: 60 - ingress: - enabled: false - annotations: {} - hostname: "example.com" - -frontend: - enabled: false - replicaCount: 1 - annotations: {} - image: - repository: dependencytrack/hyades-frontend - tag: 4.9.1 - pullPolicy: Always - command: [] - args: [] - resources: - requests: - cpu: 150m - memory: 64Mi - limits: - cpu: 500m - memory: 128Mi - extraEnv: {} - extraEnvFrom: [] - probes: - liveness: - failureThreshold: 3 - initialDelaySeconds: 5 - periodSeconds: 15 - successThreshold: 1 - timeoutSeconds: 5 - readiness: - failureThreshold: 3 - initialDelaySeconds: 5 - periodSeconds: 15 - successThreshold: 1 - timeoutSeconds: 5 - service: - type: ClusterIP - nodePort: ~ - ingress: - enabled: false - annotations: {} - hostname: "example.com" - apiBaseUrl: "" - -mirrorService: - enabled: true - # -- Number of replicas. Should be <= 1. - replicaCount: 1 - annotations: {} - image: - repository: dependencytrack/hyades-mirror-service - tag: latest-native - pullPolicy: Always - command: [] - args: [] - resources: - requests: - cpu: 500m - memory: 512Mi - limits: - cpu: "2" - memory: 2Gi - extraEnv: {} - extraEnvFrom: [] - probes: - liveness: - failureThreshold: 3 - initialDelaySeconds: 10 - periodSeconds: 15 - successThreshold: 1 - timeoutSeconds: 5 - readiness: - failureThreshold: 3 - initialDelaySeconds: 10 - periodSeconds: 15 - successThreshold: 1 - timeoutSeconds: 5 - -notificationPublisher: - enabled: true - replicaCount: 1 - annotations: {} - image: - repository: dependencytrack/hyades-notification-publisher - tag: latest-native - pullPolicy: Always - command: [] - args: [] - resources: - requests: - cpu: 500m - memory: 512Mi - limits: - cpu: "2" - memory: 2Gi - extraEnv: {} - extraEnvFrom: [] - probes: - liveness: - failureThreshold: 3 - initialDelaySeconds: 10 - periodSeconds: 15 - successThreshold: 1 - timeoutSeconds: 5 - readiness: - failureThreshold: 3 - initialDelaySeconds: 10 - periodSeconds: 15 - successThreshold: 1 - timeoutSeconds: 5 - -repoMetaAnalyzer: - annotations: {} - replicaCount: 1 - image: - repository: dependencytrack/hyades-repository-meta-analyzer - tag: latest-native - pullPolicy: Always - command: [] - args: [] - resources: - requests: - cpu: 500m - memory: 512Mi - limits: - cpu: "2" - memory: 2Gi - extraEnv: {} - extraEnvFrom: [] - probes: - liveness: - failureThreshold: 3 - initialDelaySeconds: 10 - periodSeconds: 15 - successThreshold: 1 - timeoutSeconds: 5 - readiness: - failureThreshold: 3 - initialDelaySeconds: 10 - periodSeconds: 15 - successThreshold: 1 - timeoutSeconds: 5 - -vulnAnalyzer: - annotations: {} - replicaCount: 1 - image: - repository: dependencytrack/hyades-vulnerability-analyzer - tag: latest-native - pullPolicy: Always - command: [] - args: [] - resources: - requests: - cpu: 500m - memory: 512Mi - limits: - cpu: "2" - memory: 2Gi - persistentVolume: - enabled: false - className: "" - size: 2Gi - extraEnv: {} - extraEnvFrom: [] - probes: - liveness: - failureThreshold: 3 - initialDelaySeconds: 10 - periodSeconds: 15 - successThreshold: 1 - timeoutSeconds: 5 - readiness: - failureThreshold: 3 - initialDelaySeconds: 10 - periodSeconds: 15 - successThreshold: 1 - timeoutSeconds: 5