From 5163bf374e1e08c37e1b66604e56038da8ed0946 Mon Sep 17 00:00:00 2001 From: Rishi Kumar Date: Mon, 6 Jan 2025 20:24:56 +0530 Subject: [PATCH] chore: Remove cala chart --- charts/cala/.helmignore | 23 ----- charts/cala/Chart.lock | 6 -- charts/cala/Chart.yaml | 26 ----- charts/cala/templates/_helpers.tpl | 17 ---- charts/cala/templates/cala-cm.yaml | 15 --- charts/cala/templates/cala-deployment.yaml | 110 --------------------- charts/cala/templates/cala-secrets.yaml | 17 ---- charts/cala/templates/cala-svc.yaml | 24 ----- charts/cala/templates/ingress.yaml | 41 -------- charts/cala/values.yaml | 41 -------- 10 files changed, 320 deletions(-) delete mode 100644 charts/cala/.helmignore delete mode 100644 charts/cala/Chart.lock delete mode 100644 charts/cala/Chart.yaml delete mode 100644 charts/cala/templates/_helpers.tpl delete mode 100644 charts/cala/templates/cala-cm.yaml delete mode 100644 charts/cala/templates/cala-deployment.yaml delete mode 100644 charts/cala/templates/cala-secrets.yaml delete mode 100644 charts/cala/templates/cala-svc.yaml delete mode 100644 charts/cala/templates/ingress.yaml delete mode 100644 charts/cala/values.yaml diff --git a/charts/cala/.helmignore b/charts/cala/.helmignore deleted file mode 100644 index 0e8a0eb36f..0000000000 --- a/charts/cala/.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/cala/Chart.lock b/charts/cala/Chart.lock deleted file mode 100644 index f314aef98d..0000000000 --- a/charts/cala/Chart.lock +++ /dev/null @@ -1,6 +0,0 @@ -dependencies: -- name: postgresql - repository: https://charts.bitnami.com/bitnami - version: 16.0.1 -digest: sha256:6f81c69e5c697416abb54e5517059f2b6cd3bc5a39da705f66cc66c686d41a1d -generated: "2024-10-04T10:37:52.053507866Z" diff --git a/charts/cala/Chart.yaml b/charts/cala/Chart.yaml deleted file mode 100644 index d99b62df1e..0000000000 --- a/charts/cala/Chart.yaml +++ /dev/null @@ -1,26 +0,0 @@ -apiVersion: v2 -name: cala -description: Helm chart for deploying GaloyMoney/Cala -# A chart can be either an 'application' or a 'library' chart. -# -# Application charts are a collection of templates that can be packaged into versioned archives -# to be deployed. -# -# Library charts provide useful utilities or functions for the chart developer. They're included as -# a dependency of application charts to inject those utilities and functions into the rendering -# pipeline. Library charts do not define any templates and therefore cannot be deployed. -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.1.13-dev -# 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. -# It is recommended to use it with quotes. -appVersion: 0.2.41 -dependencies: - - name: postgresql - version: 16.0.1 - repository: https://charts.bitnami.com/bitnami - condition: postgresql.enabled diff --git a/charts/cala/templates/_helpers.tpl b/charts/cala/templates/_helpers.tpl deleted file mode 100644 index 350b4aa971..0000000000 --- a/charts/cala/templates/_helpers.tpl +++ /dev/null @@ -1,17 +0,0 @@ -{{/* -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 "cala.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 }} diff --git a/charts/cala/templates/cala-cm.yaml b/charts/cala/templates/cala-cm.yaml deleted file mode 100644 index 7eba601930..0000000000 --- a/charts/cala/templates/cala-cm.yaml +++ /dev/null @@ -1,15 +0,0 @@ -apiVersion: v1 -kind: ConfigMap -metadata: - name: {{ include "cala.fullname" . }}-config -data: - cala.yml: |- - app: - job_execution: - poll_interval: {{ .Values.cala.app.jobExecution.pollInterval }} - db: - pool_size: {{ .Values.cala.db.poolSize }} - tracing: - service_name: {{ .Values.cala.tracing.serviceName }} - server: - port: {{ .Values.cala.server.service.port }} diff --git a/charts/cala/templates/cala-deployment.yaml b/charts/cala/templates/cala-deployment.yaml deleted file mode 100644 index 10a35f9241..0000000000 --- a/charts/cala/templates/cala-deployment.yaml +++ /dev/null @@ -1,110 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: {{ template "cala.fullname" . }} - labels: - app: {{ template "cala.fullname" . }} - chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" - release: "{{ .Release.Name }}" - kube-monkey/identifier: {{ template "cala.fullname" . }} - kube-monkey/enabled: enabled - kube-monkey/kill-mode: fixed - kube-monkey/kill-value: "1" - kube-monkey/mtbf: "3" -spec: - selector: - matchLabels: - app: {{ template "cala.fullname" . }} - release: {{ .Release.Name }} - replicas: {{ .Values.cala.replicas }} - template: - metadata: - labels: - app: {{ template "cala.fullname" . }} - chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" - release: "{{ .Release.Name }}" - kube-monkey/identifier: {{ template "cala.fullname" . }} - kube-monkey/enabled: enabled - {{- with .Values.cala.labels }} - {{ toYaml . | nindent 8 }} - {{- end }} - annotations: - checksum/config: {{ include (print $.Template.BasePath "/cala-cm.yaml") . | sha256sum }} - spec: - initContainers: - - name: wait-for-postgresql - image: postgres - command: - - "bash" - - "-c" - - | - while ! pg_isready -d $PG_CON > /dev/null 2>&1 - do - echo "waiting for postgres to come up" - sleep 5 - done - env: - - name: PG_CON - valueFrom: - secretKeyRef: - name: {{ template "cala.fullname" . }} - key: "pg-con" - containers: - - name: {{ .Chart.Name }} - image: "{{ .Values.cala.image.repository }}@{{ .Values.cala.image.digest }}" - ports: - - name: server - containerPort: {{ .Values.cala.server.service.port }} - protocol: TCP - args: - - {{ .Values.cala.cmd }} - - volumeMounts: - - name: "config" - mountPath: "/cala.yml" - subPath: "cala.yml" - resources: - {{ toYaml .Values.resources | nindent 10 }} - env: - - name: CALA_CONFIG - value: "/cala.yml" - - name: OTEL_EXPORTER_OTLP_ENDPOINT - value: {{ .Values.cala.tracing.otelExporterOtlpEndpoint | quote }} - - name: PG_CON - valueFrom: - secretKeyRef: - name: {{ template "cala.fullname" . }} - key: "pg-con" - - name: KUBE_NODE_NAME - valueFrom: - fieldRef: - apiVersion: v1 - fieldPath: spec.nodeName - - {{- range .Values.cala.extraEnvs }} - - name: {{ .name }} - value: {{ .value | quote }} - {{- end }} - - {{- range .Values.cala.extraEnvSecrets }} - - name: {{ .name }} - valueFrom: - secretKeyRef: - name: {{ .secretName }} - key: {{ .secretKey }} - {{- end }} - - startupProbe: - httpGet: - path: /graphql - port: {{ .Values.cala.server.service.port }} - livenessProbe: - httpGet: - path: /graphql - port: {{ .Values.cala.server.service.port }} - resources: - {{- toYaml .Values.cala.resources | nindent 10 }} - volumes: - - name: config - configMap: - name: {{ include "cala.fullname" . }}-config diff --git a/charts/cala/templates/cala-secrets.yaml b/charts/cala/templates/cala-secrets.yaml deleted file mode 100644 index a178d57165..0000000000 --- a/charts/cala/templates/cala-secrets.yaml +++ /dev/null @@ -1,17 +0,0 @@ -{{- if .Values.cala.secrets.create }} -apiVersion: v1 -kind: Secret -metadata: - name: {{ template "cala.fullname" . }} - labels: - app: {{ template "cala.fullname" . }} - chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" - release: "{{ .Release.Name }}" - {{- if .Values.cala.secrets.annotations }} - annotations: -{{ toYaml .Values.cala.secrets.annotations | indent 4 }} - {{- end }} -type: Opaque -data: - pg-con: {{ .Values.cala.secrets.pgCon | trim | b64enc | trim }} -{{- end }} diff --git a/charts/cala/templates/cala-svc.yaml b/charts/cala/templates/cala-svc.yaml deleted file mode 100644 index aa82f78a14..0000000000 --- a/charts/cala/templates/cala-svc.yaml +++ /dev/null @@ -1,24 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: {{ template "cala.fullname" . }} - labels: - app: {{ template "cala.fullname" . }} - chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" - release: "{{ .Release.Name }}" - {{ with .Values.cala.server.service.annotations }} - annotations: - {{- toYaml . | nindent 4 -}} - {{ end }} -spec: - type: {{ .Values.cala.server.service.type }} - {{ if and (eq .Values.cala.server.service.type "LoadBalancer") .Values.cala.server.service.staticIP }} - loadBalancerIP: {{ .Values.cala.server.service.staticIP }} - {{ end }} - ports: - - port: {{ .Values.cala.server.service.port }} - targetPort: {{ .Values.cala.server.service.port }} - protocol: TCP - name: http - selector: - app: {{ template "cala.fullname" . }} diff --git a/charts/cala/templates/ingress.yaml b/charts/cala/templates/ingress.yaml deleted file mode 100644 index a9cd65581e..0000000000 --- a/charts/cala/templates/ingress.yaml +++ /dev/null @@ -1,41 +0,0 @@ -{{- if .Values.cala.ingress.enabled }} -apiVersion: networking.k8s.io/v1 -kind: Ingress -metadata: - name: {{ include "cala.fullname" . }} - labels: - app: {{ include "cala.fullname" . }} - chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" - release: "{{ .Release.Name }}" - annotations: - cert-manager.io/cluster-issuer: letsencrypt-issuer -spec: - ingressClassName: nginx - rules: - {{- if .Values.cala.ingress.rulesOverride }} - {{- toYaml .Values.cala.ingress.rulesOverride | nindent 4 }} - {{- else }} - {{- range .Values.cala.ingress.hosts }} - - host: {{ . }} - http: - paths: - - pathType: Prefix - path: "/" - backend: - service: - name: {{ include "cala.fullname" $ }} - port: - number: {{ $.Values.cala.server.service.port }} - {{- end -}} - {{- end }} - tls: - {{- range .Values.cala.ingress.hosts }} - - hosts: - - {{ . }} - secretName: {{ printf "%s-tls" . }} - {{- end }} - {{- if .Values.cala.ingress.extraTls }} - {{- toYaml .Values.cala.ingress.extraTls | nindent 4 }} - {{- end }} -{{- end }} - diff --git a/charts/cala/values.yaml b/charts/cala/values.yaml deleted file mode 100644 index 69aba50a0d..0000000000 --- a/charts/cala/values.yaml +++ /dev/null @@ -1,41 +0,0 @@ -fullnameOverride: "" -nameOverride: "" -cala: - ingress: - enabled: false - resources: {} - tracing: - serviceName: cala-dev - otelExporterOtlpEndpoint: "http://localhost:4317" - app: - jobExecution: - pollInterval: 20 - db: - poolSize: 20 - server: - service: - type: ClusterIP - port: 2252 - staticIP: "" - annotations: {} - labels: {} - image: - repository: us.gcr.io/galoy-org/cala - digest: "sha256:a9eb1a7bbe28ac8f54dad805862dd57ef888da17f077357db7cf45464be2c15b" # METADATA:: repository=https://github.com/GaloyMoney/cala;commit_ref=a783e53;app=cala; - replicas: 2 - annotations: - secrets: - create: true - pgCon: "" - annotations: - extraEnvSecrets: {} - extraEnvs: {} - cmd: cala-server -postgresql: - enabled: true - auth: - enablePostgresUser: false - username: cala - password: cala - database: cala -resources: {}