chore: remove clutch
All checks were successful
Validate Charts / Get Charts being Changed (pull_request) Successful in 7s
Validate Charts / Lint (pull_request) Successful in 7s
Validate Charts / Audit (pull_request) Successful in 6s
Validate Charts / Outdated APIs (pull_request) Successful in 6s

This commit is contained in:
Tommy 2024-11-14 21:52:14 +01:00
parent 1005cfbca6
commit b3b246d335
Signed by: tommy
SSH key fingerprint: SHA256:1LWgQT3QPHIT29plS8jjXc3S1FcE/4oGvsx3Efxs6Uc
13 changed files with 0 additions and 353 deletions

View file

@ -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/

View file

@ -1,19 +0,0 @@
apiVersion: v2
name: clutch
description: Extensible platform for infrastructure management
type: application
version: 0.1.0
appVersion: "latest"
maintainers:
- name: Tommy Skaug
email: tommy@skaug.me
keywords:
- clutch
- developer
- portal
- tracking
- index
- infrastructure
- platform
sources:
- https://github.com/lyft/clutch

View file

@ -1,39 +0,0 @@
config:
baseUrl: https://infrastructure.252.no
image:
repository: index.docker.io/lyft/clutch
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
tag: "latest"
existingSecretName: clutch-config-secret
initContainers:
dbInit:
image:
repository: ghcr.io/onedr0p/postgres-init
tag: "16"
existingSecretName: clutch-dbinit-secret
prometheus:
podmonitor:
enabled: true
resources: {}
limits:
cpu: 500m
memory: 768Mi
# requests:
# cpu: 100m
# memory: 128Mi
nodeSelector: {}
tolerations: []
affinity: {}
podLabels: {}
podAnnotations: {}

View file

@ -1,51 +0,0 @@
{{/* vim: set filetype=mustache: */}}
{{/*
Expand the name of the chart.
*/}}
{{- define "clutch.name" -}}
{{- .Values.nameOverride | default .Chart.Name | 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).
*/}}
{{- define "clutch.fullname" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
{{- end }}
{{/*
Get the correct image tag name
*/}}
{{- define "clutch.imageTag" -}}
{{- .Values.image.tag | default (printf "v%s" .Chart.AppVersion) -}}
{{- end -}}
# Define a template for standard labels.
{{/*
Common labels
*/}}
{{- define "clutch.labels" -}}
helm.sh/chart: {{ include "clutch.chart" . }}
app.kubernetes.io/name: {{ include "clutch.fullname" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/version: {{ .Chart.Version | quote }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- end }}
{{/*
Selector labels
*/}}
{{- define "clutch.selectorLabels" -}}
app.kubernetes.io/name: {{ include "clutch.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end -}}
# Define a template for the chart name and version.
{{/*
Generate basic labels
*/}}
{{- define "clutch.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" -}}
{{- end }}

View file

@ -1,8 +0,0 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: clutch-frontend-config
data:
clutch.config.js: |
module.exports = {}

View file

@ -1,20 +0,0 @@
apiVersion: batch/v1
kind: Job
metadata:
name: {{ include "clutch.fullname" . }}-db-init
labels:
{{- include "clutch.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: general-db-init
image: "{{ .Values.initContainers.dbInit.image.repository }}:{{ .Values.initContainers.dbInit.image.tag }}"
envFrom:
- secretRef:
name: {{ .Values.initContainers.dbInit.existingSecretName }}
backoffLimit: 3

View file

@ -1,71 +0,0 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "clutch.fullname" . }}
labels:
{{- include "clutch.labels" . | nindent 4 }}
spec:
replicas: 1
selector:
matchLabels:
{{- include "clutch.selectorLabels" . | nindent 6 }}
type: clutch
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
{{- with .Values.podAnnotations }}
annotations:
{{- toYaml . | nindent 8 }}
{{- end }}
labels:
{{- include "clutch.selectorLabels" . | nindent 8 }}
{{- with .Values.podLabels }}
{{- toYaml . | nindent 8 }}
{{- end }}
type: clutch
spec:
serviceAccount: {{ include "clutch.fullname" . }}
containers:
- image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default (printf "v%s" .Chart.AppVersion) }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
command: ["./clutch"]
args: ["-c", "/config/clutch-config.yaml"]
imagePullPolicy: Always
name: {{ include "clutch.fullname" . }}
ports:
- containerPort: 8080
resources:
{{- toYaml .Values.resources | nindent 12 }}
volumeMounts:
- name: clutch-config-backend
mountPath: /config
- name: clutch-config-frontend
mountPath: /frontend/src/clutch.config.js
subPath: clutch.config.js
env:
- name: BASE_URL
value: {{ .Values.config.baseUrl }}
volumes:
- name: clutch-config-backend
secret:
secretName: {{ .Values.existingSecretName }}
- name: clutch-config-frontend
configMap:
name: {{ include "clutch.fullname" . }}-frontend-config
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}

View file

@ -1,15 +0,0 @@
{{- if .Values.prometheus.podmonitor.enabled }}
apiVersion: monitoring.coreos.com/v1
kind: PodMonitor
metadata:
name: {{ include "clutch.fullname" . }}
labels:
{{- include "clutch.labels" . | nindent 4 }}
spec:
selector:
matchLabels:
{{- include "clutch.selectorLabels" . | nindent 6 }}
podMetricsEndpoints:
- port: metrics
path: "/healthcheck"
{{- end }}

View file

@ -1,6 +0,0 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ include "clutch.fullname" . }}
labels:
{{- include "clutch.labels" . | nindent 4 }}

View file

@ -1,29 +0,0 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: {{ include "clutch.fullname" . }}
rules:
- apiGroups: [""]
resources: ["nodes"]
verbs: ["list"]
- apiGroups: [""]
resources: ["pods", "pods/status"]
verbs: ["get", "list", "watch", "update"]
- apiGroups: [""]
resources: ["pods"]
verbs: ["delete"]
- apiGroups: ["autoscaling"]
resources: ["horizontalpodautoscalers", "horizontalpodautoscalers/status"]
verbs: ["get", "list", "watch"]
- apiGroups: ["autoscaling"]
resources: ["horizontalpodautoscalers"]
verbs: ["patch", "update"]
- apiGroups: ["extensions", "apps"]
resources: ["deployments", "deployments/scale", "deployments/status"]
verbs: ["get", "list", "watch"]
- apiGroups: ["extensions", "apps"]
resources: ["deployments/scale"]
verbs: ["patch", "update"]
- apiGroups: ["extensions", "apps"]
resources: ["deployments"]
verbs: ["update"]

View file

@ -1,12 +0,0 @@
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: {{ include "clutch.fullname" . }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: {{ include "clutch.fullname" . }}
subjects:
- kind: ServiceAccount
name: {{ include "clutch.fullname" . }}
namespace: {{ .Release.Namespace }}

View file

@ -1,21 +0,0 @@
apiVersion: v1
kind: Service
metadata:
name: {{ include "clutch.fullname" . }}
labels:
{{- include "clutch.labels" . | nindent 4 }}
spec:
type: ClusterIP
ports:
- port: 80
protocol: TCP
targetPort: 8080
name: clutch2
- port: 8080
protocol: TCP
targetPort: 8080
name: clutch
selector:
selector:
{{- include "clutch.selectorLabels" . | nindent 4 }}
type: clutch

View file

@ -1,39 +0,0 @@
config:
baseUrl: https://infrastructure.252.no
image:
repository: index.docker.io/lyft/clutch
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
tag: "latest"
existingSecretName: clutch-config-secret
initContainers:
dbInit:
image:
repository: ghcr.io/onedr0p/postgres-init
tag: "16"
existingSecretName: clutch-dbinit-secret
prometheus:
podmonitor:
enabled: true
resources: {}
limits:
cpu: 500m
memory: 768Mi
# requests:
# cpu: 100m
# memory: 128Mi
nodeSelector: {}
tolerations: []
affinity: {}
podLabels: {}
podAnnotations: {}