diff --git a/CHANGELOG.md b/CHANGELOG.md index 521a04702..0ac9acdb6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,12 +7,14 @@ for GVR during sign operations and improve their performance. [#600](https://github.com/ConsenSys/web3signer/issues/600) + ### Bugs Fixed - Upgrade jackson and vertx to upgrade snakeyaml to 2.0 to fix CVE-2022-1471 - Fixed handling of very large number (30,000+) of signing metadata files with Hashicorp connection by introducing experimental flag to disable parallel processing `--Xmetadata-files-parallel-processing-enabled`. [#794](https://github.com/ConsenSys/web3signer/pull/794) - Fixed startup error with web3signer where openAPI spec cannot be loaded [#772](https://github.com/ConsenSys/web3signer/issues/772) +- Removed unmaintained and out-of-date helm chart [#802](https://github.com/ConsenSys/web3signer/pull/802) --- ## 23.3.1 diff --git a/helm/web3signer/.helmignore b/helm/web3signer/.helmignore deleted file mode 100644 index 0e8a0eb36..000000000 --- a/helm/web3signer/.helmignore +++ /dev/null @@ -1,23 +0,0 @@ -# Patterns to ignore when building packages. -# This supports shell glob matching, relative path matching, and -# negation (prefixed with !). Only one pattern per line. -.DS_Store -# Common VCS dirs -.git/ -.gitignore -.bzr/ -.bzrignore -.hg/ -.hgignore -.svn/ -# Common backup files -*.swp -*.bak -*.tmp -*.orig -*~ -# Various IDEs -.project -.idea/ -*.tmproj -.vscode/ diff --git a/helm/web3signer/Chart.yaml b/helm/web3signer/Chart.yaml deleted file mode 100644 index ae8d1dc8f..000000000 --- a/helm/web3signer/Chart.yaml +++ /dev/null @@ -1,12 +0,0 @@ -apiVersion: v2 -name: web3signer -description: Web3Signer Helm chart for Kubernetes -type: application -# This is the chart version. This version number should be incremented each time you make changes -# to the chart and its templates, including the app version. -# Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.0.1 -# This is the version number of the application being deployed. This version number should be -# incremented each time you make changes to the application. Versions are not expected to -# follow Semantic Versioning. They should reflect the version the application is using. -appVersion: 0.0.1 diff --git a/helm/web3signer/templates/_helpers.tpl b/helm/web3signer/templates/_helpers.tpl deleted file mode 100644 index 07cabf4eb..000000000 --- a/helm/web3signer/templates/_helpers.tpl +++ /dev/null @@ -1,63 +0,0 @@ -{{/* vim: set filetype=mustache: */}} -{{/* -Expand the name of the chart. -*/}} -{{- define "web3signer.name" -}} -{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }} -{{- end }} - -{{/* -Create a default fully qualified app name. -We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). -If release name contains chart name it will be used as a full name. -*/}} -{{- define "web3signer.fullname" -}} -{{- if .Values.fullnameOverride }} -{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }} -{{- else }} -{{- $name := default .Chart.Name .Values.nameOverride }} -{{- if contains $name .Release.Name }} -{{- .Release.Name | trunc 63 | trimSuffix "-" }} -{{- else }} -{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }} -{{- end }} -{{- end }} -{{- end }} - -{{/* -Create chart name and version as used by the chart label. -*/}} -{{- define "web3signer.chart" -}} -{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }} -{{- end }} - -{{/* -Common labels -*/}} -{{- define "web3signer.labels" -}} -helm.sh/chart: {{ include "web3signer.chart" . }} -{{ include "web3signer.selectorLabels" . }} -{{- if .Chart.AppVersion }} -app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} -{{- end }} -app.kubernetes.io/managed-by: {{ .Release.Service }} -{{- end }} - -{{/* -Selector labels -*/}} -{{- define "web3signer.selectorLabels" -}} -app.kubernetes.io/name: {{ include "web3signer.name" . }} -app.kubernetes.io/instance: {{ .Release.Name }} -{{- end }} - -{{/* -Create the name of the service account to use -*/}} -{{- define "web3signer.serviceAccountName" -}} -{{- if .Values.serviceAccount.create }} -{{- default (include "web3signer.fullname" .) .Values.serviceAccount.name }} -{{- else }} -{{- default "default" .Values.serviceAccount.name }} -{{- end }} -{{- end }} diff --git a/helm/web3signer/templates/configmap.tpl b/helm/web3signer/templates/configmap.tpl deleted file mode 100644 index 4536d959a..000000000 --- a/helm/web3signer/templates/configmap.tpl +++ /dev/null @@ -1,15 +0,0 @@ -apiVersion: v1 -kind: ConfigMap -metadata: - name: {{ .Release.Name }} - labels: - app: {{ template "web3signer.name" . }} - chart: {{ template "web3signer.chart" . }} - release: {{ .Release.Name }} - heritage: {{ .Release.Service }} - -data: -{{ toYaml .Values.config | indent 2 }} - - - diff --git a/helm/web3signer/templates/service.yaml b/helm/web3signer/templates/service.yaml deleted file mode 100644 index ecc680fcd..000000000 --- a/helm/web3signer/templates/service.yaml +++ /dev/null @@ -1,28 +0,0 @@ -{{- if .Values.service.enabled }} -apiVersion: v1 -kind: Service -metadata: - name: {{ .Release.Name }} - labels: - app: {{ template "web3signer.name" . }} - chart: {{ template "web3signer.chart" . }} - release: {{ .Release.Name }} - heritage: {{ .Release.Service }} -spec: - type: {{ .Values.service.type }} - {{- if .Values.service.clusterIP }} - clusterIP: {{ .Values.service.clusterIP }} - {{- end }} - ports: - - port: {{ .Values.service.port }} - targetPort: {{ .Values.service.port }} - protocol: TCP - name: http - - port: {{ .Values.service.metricsPort }} - targetPort: {{ .Values.service.metricsPort }} - protocol: TCP - name: metrics - selector: - app: {{ template "web3signer.name" . }} - release: {{ .Release.Name }} -{{- end}} \ No newline at end of file diff --git a/helm/web3signer/templates/servicemonitor.yaml b/helm/web3signer/templates/servicemonitor.yaml deleted file mode 100644 index 5498d0837..000000000 --- a/helm/web3signer/templates/servicemonitor.yaml +++ /dev/null @@ -1,36 +0,0 @@ -{{- if and .Values.service.metrics .Values.serviceMonitor.enabled }} -apiVersion: monitoring.coreos.com/v1 -kind: ServiceMonitor -metadata: - name: {{ template "web3signer.fullname" . }} - {{- if .Values.serviceMonitor.namespace }} - namespace: {{ .Values.serviceMonitor.namespace }} - {{- end }} - labels: - app: {{ template "web3signer.name" . }} - chart: {{ template "web3signer.chart" . }} - heritage: {{ .Release.Service }} - release: {{ .Release.Name }} - {{- if .Values.serviceMonitor.additionalLabels }} -{{ toYaml .Values.serviceMonitor.additionalLabels | indent 4 }} - {{- end }} -spec: - endpoints: - - port: metrics - interval: {{ .Values.serviceMonitor.scrapeInterval }} - {{- if .Values.serviceMonitor.honorLabels }} - honorLabels: true - {{- end }} - {{- if .Values.serviceMonitor.namespaceSelector }} - namespaceSelector: -{{ toYaml .Values.serviceMonitor.namespaceSelector | indent 4 -}} - {{ else }} - namespaceSelector: - matchNames: - - {{ .Release.Namespace }} - {{- end }} - selector: - matchLabels: - app: {{ template "web3signer.name" . }} - release: {{ .Release.Name }} -{{- end }} diff --git a/helm/web3signer/templates/statefulset.yaml b/helm/web3signer/templates/statefulset.yaml deleted file mode 100644 index 64b473b6e..000000000 --- a/helm/web3signer/templates/statefulset.yaml +++ /dev/null @@ -1,108 +0,0 @@ -apiVersion: apps/v1 -kind: StatefulSet -metadata: - name: {{ template "web3signer.fullname" . }} - labels: - app: {{ template "web3signer.name" . }} - chart: {{ template "web3signer.chart" . }} - release: {{ .Release.Name }} - heritage: {{ .Release.Service }} -spec: - replicas: {{ .Values.replicaCount }} - selector: - matchLabels: - app: {{ template "web3signer.name" . }} - release: {{ .Release.Name }} - - {{- with .Values.updateStrategy}} - updateStrategy: - {{- toYaml . | nindent 4 }} - {{- end}} - - serviceName: {{ .Release.Name }} - podManagementPolicy: {{.Values.podManagementPolicy | default "Parallel" }} - template: - metadata: - labels: - app: {{ template "web3signer.name" . }} - release: {{ .Release.Name }} - annotations: - configHash: {{ include (print $.Template.BasePath "/configmap.tpl") . | sha256sum }} - spec: - {{- with .Values.securityContext}} - securityContext: - {{- toYaml . | nindent 10 }} - {{- end}} - - containers: - - name: web3signer - image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" - imagePullPolicy: {{ .Values.image.pullPolicy }} - {{- with .Values.command}} - command: - {{- toYaml . | nindent 10 }} - {{- end}} - args: - - --http-listen-port={{ .Values.service.port }} - - --http-listen-host=0.0.0.0 - - --http-host-allowlist={{ .Values.service.hostAllowList }} - - --key-store-path=/data - - --logging=ALL - {{- if .Values.service.metrics }} - - --metrics-enabled - - --metrics-port={{ .Values.service.metricsPort }} - - --metrics-host=0.0.0.0 - - --metrics-host-allowlist={{ .Values.service.metricsHostAllowList }} - {{- end }} - {{- with .Values.args }} - {{- toYaml . | nindent 10 }} - {{- end}} - {{- with .Values.env}} - env: - {{- toYaml . | nindent 10 }} - {{- end}} - ports: - - containerPort: {{ .Values.service.port }} - name: http - - containerPort: {{ .Values.service.metricsPort }} - name: metrics - {{- with .Values.readinessProbe }} - readinessProbe: - {{- toYaml . | nindent 10 }} - {{- end}} - {{- with .Values.livenessProbe }} - livenessProbe: - {{- toYaml . | nindent 10 }} - {{- end}} - {{- with .Values.resources }} - resources: - {{- toYaml . | nindent 10 }} - {{- end }} - volumeMounts: - - name: {{ template "web3signer.fullname" . }} - mountPath: /data - - {{- with .Values.nodeSelector }} - nodeSelector: - {{- toYaml . | nindent 8 }} - {{- end }} - {{- with .Values.affinity }} - affinity: - {{- toYaml . | nindent 8 }} - {{- end }} - {{- with .Values.tolerations }} - tolerations: - {{- toYaml . | nindent 8 }} - {{- end }} - - terminationGracePeriodSeconds: {{ .Values.terminationGracePeriodSeconds | default 11 }} - - volumeClaimTemplates: - - metadata: - name: {{ template "web3signer.fullname" . }} - spec: - accessModes: [ "ReadWriteOnce" ] - storageClassName: {{ .Values.persistence.storageClassName | quote }} - resources: - requests: - storage: {{ .Values.persistence.diskSize | quote }} diff --git a/helm/web3signer/values.yaml b/helm/web3signer/values.yaml deleted file mode 100644 index 980f0c760..000000000 --- a/helm/web3signer/values.yaml +++ /dev/null @@ -1,41 +0,0 @@ -image: - repository: pegasyseng/web3signer - tag: develop - pullPolicy: Always - -replicaCount: 1 - -persistence: - diskSize: "50Mi" - -# Additional web3signer command line arguments -args: [] - -service: - enabled: true - type: ClusterIP - # clusterIP: None - port: 9000 - hostAllowList: "localhost, 127.0.0.1" - metrics: false - metricsPort: 9001 - metricsHostAllowList: "localhost, 127.0.0.1" - -serviceMonitor: - enabled: false - additionalLabels: {} - namespace: "" - namespaceSelector: {} - # Default: scrape .Release.Namespace only - # To scrape all, use the following: - # namespaceSelector: - # any: true - scrapeInterval: 15s - # honorLabels: true -resources: {} - -nodeSelector: {} - -tolerations: [] - -affinity: {}