From fbc6b2dbcb3aa46fb60cc338bea3cbec3118c217 Mon Sep 17 00:00:00 2001 From: Tommy Skaug <104122981+tommy-skaug@users.noreply.github.com> Date: Wed, 3 Apr 2024 11:59:46 +0200 Subject: [PATCH] chore: Delete charts/penpot directory Remove unfinished and unmaintained charts. --- charts/penpot/.helmignore | 23 -------- charts/penpot/Chart.yaml | 17 ------ charts/penpot/templates/_helpers.tpl | 45 -------------- charts/penpot/templates/db-init.yaml | 20 ------- .../penpot/templates/deployment-backend.yaml | 58 ------------------- .../penpot/templates/deployment-exporter.yaml | 51 ---------------- .../penpot/templates/deployment-frontend.yaml | 51 ---------------- charts/penpot/templates/serviceaccount.yaml | 5 -- charts/penpot/templates/services.yaml | 38 ------------ charts/penpot/values.yaml | 43 -------------- 10 files changed, 351 deletions(-) delete mode 100644 charts/penpot/.helmignore delete mode 100644 charts/penpot/Chart.yaml delete mode 100644 charts/penpot/templates/_helpers.tpl delete mode 100644 charts/penpot/templates/db-init.yaml delete mode 100644 charts/penpot/templates/deployment-backend.yaml delete mode 100644 charts/penpot/templates/deployment-exporter.yaml delete mode 100644 charts/penpot/templates/deployment-frontend.yaml delete mode 100644 charts/penpot/templates/serviceaccount.yaml delete mode 100644 charts/penpot/templates/services.yaml delete mode 100644 charts/penpot/values.yaml diff --git a/charts/penpot/.helmignore b/charts/penpot/.helmignore deleted file mode 100644 index 0e8a0eb..0000000 --- a/charts/penpot/.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/penpot/Chart.yaml b/charts/penpot/Chart.yaml deleted file mode 100644 index f1b4cc9..0000000 --- a/charts/penpot/Chart.yaml +++ /dev/null @@ -1,17 +0,0 @@ -name: penpot -maintainers: -- name: Tommy Skaug - email: tommy@skaug.me -apiVersion: v2 -appVersion: 1.19.3 -version: 2.0.5 -description: Penpot is a design and prototyping platform for teams and individuals. -home: https://github.com/tommy-skaug/charts -icon: https://avatars.githubusercontent.com/u/30179644?s=200&v=4 -keywords: -- kubernetes -- penpot -- design -sources: -- https://github.com/penpot/penpot -- https://penpot.app/ diff --git a/charts/penpot/templates/_helpers.tpl b/charts/penpot/templates/_helpers.tpl deleted file mode 100644 index 7ae3683..0000000 --- a/charts/penpot/templates/_helpers.tpl +++ /dev/null @@ -1,45 +0,0 @@ -{{/* vim: set filetype=mustache: */}} -{{/* -Expand the name of the chart. -*/}} -{{- define "penpot.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 "penpot.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 "penpot.chart" -}} -{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}} -{{- end -}} - -{{/* -Common labels. -*/}} -{{- define "penpot.labels" -}} -helm.sh/chart: {{ include "penpot.chart" . }} -app.kubernetes.io/name: {{ include "penpot.name" . }}-frontend -app.kubernetes.io/instance: {{ .Release.Name }} -{{- if .Chart.AppVersion }} -app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} -{{- end }} -app.kubernetes.io/managed-by: {{ .Release.Service }} -{{- end -}} \ No newline at end of file diff --git a/charts/penpot/templates/db-init.yaml b/charts/penpot/templates/db-init.yaml deleted file mode 100644 index b28e977..0000000 --- a/charts/penpot/templates/db-init.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: batch/v1 -kind: Job -metadata: - name: {{ include "penpot.fullname" . }}-db-init - labels: - {{- include "penpot.labels" . | nindent 4 }} - annotations: - "helm.sh/hook": pre-install - "helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded -spec: - template: - spec: - restartPolicy: Never - containers: - - name: penpot-db-init - image: "{{ .Values.postgres.dbInit.image.repository }}:{{ .Values.postgres.dbInit.image.tag }}" - envFrom: - - secretRef: - name: {{ .Values.postgres.secretName }} - backoffLimit: 3 \ No newline at end of file diff --git a/charts/penpot/templates/deployment-backend.yaml b/charts/penpot/templates/deployment-backend.yaml deleted file mode 100644 index f1464cd..0000000 --- a/charts/penpot/templates/deployment-backend.yaml +++ /dev/null @@ -1,58 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: {{ include "penpot.fullname" . }}-backend - namespace: {{ .Release.Namespace }} - labels: - {{- include "penpot.labels" . | nindent 4 }} -spec: - replicas: {{ .Values.backend.replicaCount }} - selector: - matchLabels: - app: {{ include "penpot.fullname" . }}-backend - template: - metadata: - labels: - app: {{ include "penpot.fullname" . }}-backend - spec: - serviceAccountName: penpot-sa - # securityContext: - # fsGroup: 1001 - - containers: - - name: {{ .Chart.Name }}-backend - image: "{{ .Values.image.repositoryBackend }}:{{ .Values.penpotVersion }}" - imagePullPolicy: IfNotPresent - # securityContext: - # runAsUser: 1001 - # allowPrivilegeEscalation: false - # capabilities: - # drop: - # - all - # readOnlyRootFilesystem: false - # runAsNonRoot: true - volumeMounts: - - mountPath: /opt/data - name: app-data - readOnly: false - env: - - name: PENPOT_PUBLIC_URI - value: {{ .Values.publicURL | quote }} - - name: PENPOT_FLAGS - value: "$PENPOT_FLAGS {{ .Values.flags }}" - - name: PENPOT_TELEMETRY_ENABLED - value: "false" - - name: PENPOT_REGISTRATION_DOMAIN_WHITELIST - value: {{ .Values.registrationDomainWhitelist | quote }} - envFrom: - - secretRef: - name: {{ .Values.envFromSecret }} - ports: - - name: http - containerPort: 6060 - protocol: TCP - resources: - {{- toYaml .Values.backend.resources | nindent 12 }} - volumes: - - name: app-data - emptyDir: {} diff --git a/charts/penpot/templates/deployment-exporter.yaml b/charts/penpot/templates/deployment-exporter.yaml deleted file mode 100644 index f230c21..0000000 --- a/charts/penpot/templates/deployment-exporter.yaml +++ /dev/null @@ -1,51 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: {{ include "penpot.fullname" . }}-exporter - namespace: {{ .Release.Namespace }} - labels: - {{- include "penpot.labels" . | nindent 4 }} -spec: - replicas: {{ .Values.exporter.replicaCount }} - selector: - matchLabels: - app: {{ include "penpot.fullname" . }}-exporter - template: - metadata: - labels: - app: {{ include "penpot.fullname" . }}-exporter - spec: - serviceAccountName: penpot-sa - # securityContext: - # fsGroup: 1001 - - containers: - - name: {{ .Chart.Name }}-exporter - image: "{{ .Values.image.repositoryExporter }}:{{ .Values.penpotVersion }}" - imagePullPolicy: IfNotPresent - # securityContext: - # runAsUser: 1001 - # allowPrivilegeEscalation: false - # capabilities: - # drop: - # - all - # readOnlyRootFilesystem: false - # runAsNonRoot: true - env: - - name: PENPOT_PUBLIC_URI - value: {{ .Values.publicURL | quote }} - - name: PENPOT_FLAGS - value: "$PENPOT_FLAGS {{ .Values.flags }}" - - name: PENPOT_TELEMETRY_ENABLED - value: "false" - - name: PENPOT_REGISTRATION_DOMAIN_WHITELIST - value: {{ .Values.registrationDomainWhitelist | quote }} - envFrom: - - secretRef: - name: {{ .Values.envFromSecret }} - ports: - - name: http - containerPort: 6061 - protocol: TCP - resources: - {{- toYaml .Values.frontend.resources | nindent 12 }} diff --git a/charts/penpot/templates/deployment-frontend.yaml b/charts/penpot/templates/deployment-frontend.yaml deleted file mode 100644 index 3606480..0000000 --- a/charts/penpot/templates/deployment-frontend.yaml +++ /dev/null @@ -1,51 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: {{ include "penpot.fullname" . }}-frontend - namespace: {{ .Release.Namespace }} - labels: - {{- include "penpot.labels" . | nindent 4 }} -spec: - replicas: {{ .Values.frontend.replicaCount }} - selector: - matchLabels: - app: {{ include "penpot.fullname" . }}-frontend - template: - metadata: - labels: - app: {{ include "penpot.fullname" . }}-frontend - spec: - serviceAccountName: penpot-sa - # securityContext: - # fsGroup: 1001 - containers: - - name: {{ .Chart.Name }}-frontend - image: "{{ .Values.image.repositoryFrontend }}:{{ .Values.penpotVersion }}" - imagePullPolicy: IfNotPresent - # securityContext: - # runAsUser: 1001 - # allowPrivilegeEscalation: false - # capabilities: - # drop: - # - all - # readOnlyRootFilesystem: false - # runAsNonRoot: true - env: - - name: PENPOT_PUBLIC_URI - value: {{ .Values.publicURL | quote }} - - name: PENPOT_FLAGS - value: "$PENPOT_FLAGS {{ .Values.flags }}" - - name: PENPOT_TELEMETRY_ENABLED - value: "false" - - name: PENPOT_REGISTRATION_DOMAIN_WHITELIST - value: {{ .Values.registrationDomainWhitelist | quote }} - envFrom: - - secretRef: - name: {{ .Values.envFromSecret }} - ports: - - name: http - containerPort: 80 - protocol: TCP - resources: - {{- toYaml .Values.frontend.resources | nindent 12 }} - diff --git a/charts/penpot/templates/serviceaccount.yaml b/charts/penpot/templates/serviceaccount.yaml deleted file mode 100644 index 1e2e57f..0000000 --- a/charts/penpot/templates/serviceaccount.yaml +++ /dev/null @@ -1,5 +0,0 @@ -apiVersion: v1 -kind: ServiceAccount -metadata: - name: penpot-sa - namespace: {{ .Release.Namespace }} diff --git a/charts/penpot/templates/services.yaml b/charts/penpot/templates/services.yaml deleted file mode 100644 index 0804fd9..0000000 --- a/charts/penpot/templates/services.yaml +++ /dev/null @@ -1,38 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: {{ include "penpot.fullname" . }}-frontend - namespace: {{ .Release.Namespace }} -spec: - type: ClusterIP - ports: - - port: 80 - targetPort: http - protocol: TCP - name: http ---- -apiVersion: v1 -kind: Service -metadata: - name: {{ include "penpot.fullname" . }}-exporter - namespace: {{ .Release.Namespace }} -spec: - type: ClusterIP - ports: - - port: 6061 - targetPort: http - protocol: TCP - name: http ---- -apiVersion: v1 -kind: Service -metadata: - name: {{ include "penpot.fullname" . }}-backend - namespace: {{ .Release.Namespace }} -spec: - type: ClusterIP - ports: - - port: 6060 - targetPort: http - protocol: TCP - name: http \ No newline at end of file diff --git a/charts/penpot/values.yaml b/charts/penpot/values.yaml deleted file mode 100644 index 799819e..0000000 --- a/charts/penpot/values.yaml +++ /dev/null @@ -1,43 +0,0 @@ -envFromSecret: penpot-secret -penpotVersion: 1.19.3 - -publicURL: "http://localhost:8080" -registrationDomainWhitelist: "localhost" -flags: "enable-registration enable-login enable-login-with-oidc disable-demo-users disable-demo-warning disable-secure-session-cookies" - -serviceAccount: - name: "penpot-sa" - -backend: - replicaCount: 1 - resources: - limits: {} - requests: {} - -frontend: - replicaCount: 1 - resources: - limits: {} - requests: {} - -exporter: - replicaCount: 1 - resources: - limits: {} - requests: {} - -image: - imagePullPolicy: IfNotPresent - repositoryBackend: penpotapp/backend - repositoryFrontend: penpotapp/frontend - repositoryExporter: penpotapp/exporter - -postgres: - dbInit: - image: - repository: ghcr.io/onedr0p/postgres-init - tag: "16" - hostname: "postgres-rw.databases.svc.cluster.local" - database_name: "penpot" - port: "5432" - secretName: penpot-secret