From 7ef77d4b00fb17f3ec17f60af2fdd36e0feffe95 Mon Sep 17 00:00:00 2001 From: Plenty Su Date: Mon, 26 Feb 2024 18:45:45 +0900 Subject: [PATCH] Remove the previous Helm chart for scalar-manager --- charts/scalar-manager/.helmignore | 23 ------ charts/scalar-manager/Chart.yaml | 19 ----- charts/scalar-manager/README.md | 28 ------- charts/scalar-manager/README.md.gotmpl | 12 --- charts/scalar-manager/templates/_helpers.tpl | 62 --------------- .../scalar-manager/templates/deployment.yaml | 58 -------------- charts/scalar-manager/templates/role.yaml | 9 --- .../scalar-manager/templates/rolebinding.yaml | 13 --- charts/scalar-manager/templates/service.yaml | 16 ---- .../templates/serviceaccount.yaml | 9 --- charts/scalar-manager/values.schema.json | 79 ------------------- charts/scalar-manager/values.yaml | 52 ------------ 12 files changed, 380 deletions(-) delete mode 100644 charts/scalar-manager/.helmignore delete mode 100644 charts/scalar-manager/Chart.yaml delete mode 100644 charts/scalar-manager/README.md delete mode 100644 charts/scalar-manager/README.md.gotmpl delete mode 100644 charts/scalar-manager/templates/_helpers.tpl delete mode 100644 charts/scalar-manager/templates/deployment.yaml delete mode 100644 charts/scalar-manager/templates/role.yaml delete mode 100644 charts/scalar-manager/templates/rolebinding.yaml delete mode 100644 charts/scalar-manager/templates/service.yaml delete mode 100644 charts/scalar-manager/templates/serviceaccount.yaml delete mode 100644 charts/scalar-manager/values.schema.json delete mode 100644 charts/scalar-manager/values.yaml diff --git a/charts/scalar-manager/.helmignore b/charts/scalar-manager/.helmignore deleted file mode 100644 index 0e8a0eb3..00000000 --- a/charts/scalar-manager/.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/charts/scalar-manager/Chart.yaml b/charts/scalar-manager/Chart.yaml deleted file mode 100644 index 96080ea6..00000000 --- a/charts/scalar-manager/Chart.yaml +++ /dev/null @@ -1,19 +0,0 @@ -apiVersion: v2 -name: scalar-manager -description: Scalar Manager -type: application -version: 2.0.0-SNAPSHOT -appVersion: 2.0.0-SNAPSHOT -deprecated: false -keywords: -- scalardb -- scalardl -- scalar-manager -home: https://scalar-labs.com/ -sources: - - https://github.com/scalar-labs/scalar-manager -maintainers: - - name: Takanori Yokoyama - email: takanori.yokoyama@scalar-labs.com - - name: Plenty Su - email: plenty.su@scalar-labs.com diff --git a/charts/scalar-manager/README.md b/charts/scalar-manager/README.md deleted file mode 100644 index d19b6458..00000000 --- a/charts/scalar-manager/README.md +++ /dev/null @@ -1,28 +0,0 @@ -# scalar-manager - -![Version: 2.0.0-SNAPSHOT](https://img.shields.io/badge/Version-2.0.0--SNAPSHOT-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.0.0-SNAPSHOT](https://img.shields.io/badge/AppVersion-2.0.0--SNAPSHOT-informational?style=flat-square) - -Scalar Manager -Current chart version is `2.0.0-SNAPSHOT` - -**Homepage:** - -## Values - -| Key | Type | Default | Description | -|-----|------|---------|-------------| -| fullnameOverride | string | `""` | Override the fully qualified app name | -| image.pullPolicy | string | `"IfNotPresent"` | Specify a imagePullPolicy | -| image.repository | string | `"ghcr.io/scalar-labs/scalar-manager"` | Docker image | -| image.tag | string | `""` | Override the image tag whose default is the chart appVersion | -| imagePullSecrets | list | `[{"name":"reg-docker-secrets"}]` | Optionally specify an array of imagePullSecrets. Secrets must be manually created in the namespace | -| nameOverride | string | `""` | Override the Chart name | -| replicaCount | int | `1` | number of replicas to deploy | -| scalarManager.grafanaUrl | string | `""` | | -| scalarManager.port | int | `5000` | The port that Scalar Manager container exposes | -| scalarManager.refreshInterval | int | `30` | | -| scalarManager.targets | list | `[]` | | -| service.port | int | `8000` | The port that service exposes | -| service.type | string | `"ClusterIP"` | The service type | -| serviceAccount.automountServiceAccountToken | bool | `true` | Specify to mount a service account token or not | -| serviceAccount.serviceAccountName | string | `""` | Name of the existing service account resource | diff --git a/charts/scalar-manager/README.md.gotmpl b/charts/scalar-manager/README.md.gotmpl deleted file mode 100644 index e41d4ff6..00000000 --- a/charts/scalar-manager/README.md.gotmpl +++ /dev/null @@ -1,12 +0,0 @@ -{{ template "chart.header" . }} - -{{ template "chart.versionBadge" . }} {{ template "chart.typeBadge" . }} {{ template "chart.appVersionBadge" . }} - -{{ template "chart.description" . }} -Current chart version is `{{ template "chart.version" . }}` - -**Homepage:** - -{{ template "chart.requirementsSection" . }} - -{{ template "chart.valuesSection" . }} diff --git a/charts/scalar-manager/templates/_helpers.tpl b/charts/scalar-manager/templates/_helpers.tpl deleted file mode 100644 index 2cee60f2..00000000 --- a/charts/scalar-manager/templates/_helpers.tpl +++ /dev/null @@ -1,62 +0,0 @@ -{{/* -Expand the name of the chart. -*/}} -{{- define "scalar-manager.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 "scalar-manager.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 "scalar-manager.chart" -}} -{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }} -{{- end }} - -{{/* -Common labels -*/}} -{{- define "scalar-manager.labels" -}} -helm.sh/chart: {{ include "scalar-manager.chart" . }} -{{ include "scalar-manager.selectorLabels" . }} -{{- if .Chart.AppVersion }} -app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} -{{- end }} -app.kubernetes.io/managed-by: {{ .Release.Service }} -{{- end }} - -{{/* -Selector labels -*/}} -{{- define "scalar-manager.selectorLabels" -}} -app.kubernetes.io/name: {{ include "scalar-manager.name" . }} -app.kubernetes.io/instance: {{ .Release.Name }} -{{- end }} - -{{/* -Create the name of the service account to use -*/}} -{{- define "scalar-manager.serviceAccountName" -}} -{{- if .Values.serviceAccount.serviceAccountName }} -{{- .Values.serviceAccount.serviceAccountName }} -{{- else }} -{{- print (include "scalar-manager.fullname" .) "-sa" | trunc 63 | trimSuffix "-" }} -{{- end }} -{{- end }} diff --git a/charts/scalar-manager/templates/deployment.yaml b/charts/scalar-manager/templates/deployment.yaml deleted file mode 100644 index d103763a..00000000 --- a/charts/scalar-manager/templates/deployment.yaml +++ /dev/null @@ -1,58 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - namespace: {{ .Release.Namespace }} - name: {{ include "scalar-manager.fullname" . }} - labels: - {{- include "scalar-manager.labels" . | nindent 4 }} -spec: - replicas: {{ .Values.replicaCount }} - selector: - matchLabels: - {{- include "scalar-manager.selectorLabels" . | nindent 6 }} - template: - metadata: - labels: - {{- include "scalar-manager.selectorLabels" . | nindent 8 }} - spec: - {{- with .Values.imagePullSecrets }} - imagePullSecrets: - {{- toYaml . | nindent 8 }} - {{- end }} - serviceAccountName: {{ include "scalar-manager.serviceAccountName" . }} - automountServiceAccountToken: {{ .Values.serviceAccount.automountServiceAccountToken }} - containers: - - name: {{ .Chart.Name }} - image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" - imagePullPolicy: {{ .Values.image.pullPolicy }} - ports: - - containerPort: {{ .Values.scalarManager.port }} - env: - - name: PORT - value: "{{ .Values.scalarManager.port }}" - {{- range $i, $target := .Values.scalarManager.targets }} - - name: TARGET_NAME_{{ $i }} - value: {{ $target.name | default $i }} - - name: TARGET_ADMIN_SRV_{{ $i }} - value: {{ $target.adminSrv | default $i }} - - name: TARGET_DATABASE_TYPE_{{ $i }} - value: {{ $target.databaseType| default $i }} - {{ end }} - - name: GRAFANA_URL - value: {{ .Values.scalarManager.grafanaUrl | default "" }} - - name: REFRESH_INTERVAL - value: "{{ .Values.scalarManager.refreshInterval }}" - startupProbe: - httpGet: - path: /health - port: {{ .Values.scalarManager.port }} - failureThreshold: 60 - periodSeconds: 5 - livenessProbe: - httpGet: - path: /health - port: {{ .Values.scalarManager.port }} - failureThreshold: 3 - periodSeconds: 10 - successThreshold: 1 - timeoutSeconds: 1 diff --git a/charts/scalar-manager/templates/role.yaml b/charts/scalar-manager/templates/role.yaml deleted file mode 100644 index 00194254..00000000 --- a/charts/scalar-manager/templates/role.yaml +++ /dev/null @@ -1,9 +0,0 @@ -apiVersion: rbac.authorization.k8s.io/v1 -kind: Role -metadata: - namespace: {{ .Release.Namespace }} - name: {{ include "scalar-manager.fullname" . }}-role -rules: -- apiGroups: [""] - resources: ["endpoints"] - verbs: ["get"] diff --git a/charts/scalar-manager/templates/rolebinding.yaml b/charts/scalar-manager/templates/rolebinding.yaml deleted file mode 100644 index fe896d0d..00000000 --- a/charts/scalar-manager/templates/rolebinding.yaml +++ /dev/null @@ -1,13 +0,0 @@ -apiVersion: rbac.authorization.k8s.io/v1 -kind: RoleBinding -metadata: - namespace: {{ .Release.Namespace }} - name: {{ include "scalar-manager.fullname" . }}-rolebinding -subjects: -- kind: ServiceAccount - name: {{ include "scalar-manager.serviceAccountName" . }} - apiGroup: "" -roleRef: - kind: Role - name: {{ include "scalar-manager.fullname" . }}-role - apiGroup: rbac.authorization.k8s.io diff --git a/charts/scalar-manager/templates/service.yaml b/charts/scalar-manager/templates/service.yaml deleted file mode 100644 index 4f14ee7f..00000000 --- a/charts/scalar-manager/templates/service.yaml +++ /dev/null @@ -1,16 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - namespace: {{ .Release.Namespace }} - name: {{ include "scalar-manager.fullname" . }} - labels: - {{- include "scalar-manager.labels" . | nindent 4 }} -spec: - type: {{ .Values.service.type }} - ports: - - port: {{ .Values.service.port }} - targetPort: {{ .Values.scalarManager.port }} - protocol: TCP - name: http - selector: - {{- include "scalar-manager.selectorLabels" . | nindent 4 }} diff --git a/charts/scalar-manager/templates/serviceaccount.yaml b/charts/scalar-manager/templates/serviceaccount.yaml deleted file mode 100644 index 159688a7..00000000 --- a/charts/scalar-manager/templates/serviceaccount.yaml +++ /dev/null @@ -1,9 +0,0 @@ -{{- if not .Values.serviceAccount.serviceAccountName }} -apiVersion: v1 -kind: ServiceAccount -metadata: - namespace: {{ .Release.Namespace }} - name: {{ include "scalar-manager.serviceAccountName" . }} - labels: - {{- include "scalar-manager.labels" . | nindent 4 }} -{{- end }} diff --git a/charts/scalar-manager/values.schema.json b/charts/scalar-manager/values.schema.json deleted file mode 100644 index ccb0b8ba..00000000 --- a/charts/scalar-manager/values.schema.json +++ /dev/null @@ -1,79 +0,0 @@ -{ - "$schema": "http://json-schema.org/schema#", - "type": "object", - "properties": { - "fullnameOverride": { - "type": "string" - }, - "image": { - "type": "object", - "properties": { - "pullPolicy": { - "type": "string" - }, - "repository": { - "type": "string" - }, - "tag": { - "type": "string" - } - } - }, - "imagePullSecrets": { - "type": "array", - "items": { - "type": "object", - "properties": { - "name": { - "type": "string" - } - } - } - }, - "nameOverride": { - "type": "string" - }, - "replicaCount": { - "type": "integer" - }, - "scalarManager": { - "type": "object", - "properties": { - "grafanaUrl": { - "type": "string" - }, - "port": { - "type": "integer" - }, - "refreshInterval": { - "type": "integer" - }, - "targets": { - "type": "array" - } - } - }, - "service": { - "type": "object", - "properties": { - "port": { - "type": "integer" - }, - "type": { - "type": "string" - } - } - }, - "serviceAccount": { - "type": "object", - "properties": { - "automountServiceAccountToken": { - "type": "boolean" - }, - "serviceAccountName": { - "type": "string" - } - } - } - } -} diff --git a/charts/scalar-manager/values.yaml b/charts/scalar-manager/values.yaml deleted file mode 100644 index 6c972c6e..00000000 --- a/charts/scalar-manager/values.yaml +++ /dev/null @@ -1,52 +0,0 @@ -# replicaCount -- number of replicas to deploy -replicaCount: 1 - -image: - # image.repository -- Docker image - repository: ghcr.io/scalar-labs/scalar-manager - # image.pullPolicy -- Specify a imagePullPolicy - pullPolicy: IfNotPresent - # image.tag -- Override the image tag whose default is the chart appVersion - tag: "" - -# imagePullSecrets -- Optionally specify an array of imagePullSecrets. Secrets must be manually created in the namespace -imagePullSecrets: - - name: reg-docker-secrets - -# nameOverride -- Override the Chart name -nameOverride: "" - -# fullnameOverride -- Override the fully qualified app name -fullnameOverride: "" - -serviceAccount: - # serviceAccount.serviceAccountName -- Name of the existing service account resource - serviceAccountName: "" - # serviceAccount.automountServiceAccountToken -- Specify to mount a service account token or not - automountServiceAccountToken: true - -service: - # service.type -- The service type - type: ClusterIP - # service.port -- The port that service exposes - port: 8000 - -scalarManager: - # scalarManager.port -- The port that Scalar Manager container exposes - port: 5000 - - # targets -- The targets that Scalar Manager should monitor - targets: [] - # targets: # example - # - name: Ledger - # adminSrv: _scalardl-admin._tcp.scalardl-headless.default.svc.cluster.local - # databaseType: cassandra - # - name: Auditor - # adminSrv: _scalardl-auditor-admin._tcp.scalardl-auditor-headless.default.svc.cluster.local - # databaseType: cassandra - - # grafanaUrl -- The URL where Grafana can be accessable in public - grafanaUrl: "" - - # refreshInterval -- The interval that Scalar Manager refresh the status of the monitoring targets - refreshInterval: 30