qr-formlink added

This commit is contained in:
titver968
2025-09-10 14:31:07 +02:00
parent 94d06752ce
commit f519a0e43f
10 changed files with 338 additions and 0 deletions

14
qr-formlink/index.yaml Normal file
View File

@@ -0,0 +1,14 @@
apiVersion: v1
entries:
qr-formlink:
- apiVersion: v2
appVersion: 0.0.1
created: "2025-09-10T14:30:06.250652+02:00"
description: A Helm chart for Kubernetes
digest: 782c2b9f212c13d22409afae86ebbcd80adf8874a1c34f27fbd81e502f2c9747
name: qr-formlink
type: application
urls:
- https://gitea.innovation-hub-niedersachsen.de/innohub/charts/raw/main/qr-formlink/qr-formlink-0.0.1.tgz
version: 0.0.1
generated: "2025-09-10T14:30:06.250083+02:00"

Binary file not shown.

View File

@@ -0,0 +1,6 @@
apiVersion: v2
name: qr-formlink
description: A Helm chart for Kubernetes
type: application
version: "0.0.1"
appVersion: "0.0.1"

View File

@@ -0,0 +1,62 @@
{{/*
Expand the name of the chart.
*/}}
{{- define "qr-formlink.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 "qr-formlink.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 "qr-formlink.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
{{- end }}
{{/*
Common labels
*/}}
{{- define "qr-formlink.labels" -}}
helm.sh/chart: {{ include "qr-formlink.chart" . }}
{{ include "qr-formlink.selectorLabels" . }}
{{- if .Chart.AppVersion }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- end }}
{{/*
Selector labels
*/}}
{{- define "qr-formlink.selectorLabels" -}}
app.kubernetes.io/name: {{ include "qr-formlink.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}
{{/*
Create the name of the service account to use
*/}}
{{- define "qr-formlink.serviceAccountName" -}}
{{- if .Values.serviceAccount.create }}
{{- default (include "qr-formlink.fullname" .) .Values.serviceAccount.name }}
{{- else }}
{{- default "default" .Values.serviceAccount.name }}
{{- end }}
{{- end }}

View File

@@ -0,0 +1,78 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ template "qr-formlink.fullname" . }}
labels:
app: {{ template "qr-formlink.name" . }}
chart: {{ template "qr-formlink.chart" . }}
component: qr-formlink
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
{{- if .Values.deploymentLabels }}
{{- toYaml .Values.deploymentLabels | nindent 4 }}
{{- end }}
spec:
strategy:
{{ toYaml .Values.updateStrategy | nindent 4 }}
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
app: {{ template "qr-formlink.name" . }}
component: qr-formlink
release: {{ .Release.Name }}
template:
metadata:
annotations:
labels:
app: {{ template "qr-formlink.name" . }}
component: qr-formlink
release: {{ .Release.Name }}
{{- if .Values.podLabels }}
{{- toYaml .Values.podLabels | nindent 8 }}
{{- end }}
spec:
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
serviceAccountName: {{ template "qr-formlink.serviceAccountName" . }}
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
terminationMessagePolicy: FallbackToLogsOnError
ports:
- name: http
containerPort: {{ .Values.service.port }}
env:
{{- range $key := .Values.env }}
{{- if .value }}
- name: {{ .name }}
value: {{ .value | quote }}
{{- end }}
{{- end }}
{{- range $key := .Values.secretEnv }}
- name: {{ .name }}
valueFrom:
secretKeyRef:
name: {{ template "qr-formlink.fullname" $ }}-secret
key: {{ .name }}
{{- end }}
envFrom:
{{- with .Values.extraEnvFrom }}
{{- tpl . $ | nindent 10 }}
{{- end }}
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
resources:
{{ toYaml .Values.resources | indent 12 }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{ toYaml . | indent 8 }}
{{- end }}
{{- if .Values.affinity }}
affinity:
{{ toYaml .Values.affinity | indent 8 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{ toYaml . | indent 8 }}
{{- end }}

View File

@@ -0,0 +1,18 @@
{{- if .Values.autoscaling.enabled -}}
apiVersion: autoscaling/v1
kind: HorizontalPodAutoscaler
metadata:
name: {{ template "qr-formlink.fullname" . }}
labels:
app: {{ template "qr-formlink.name" . }}
chart: {{ template "qr-formlink.chart" . }}
component: qr-formlink
heritage: {{ .Release.Service }}
release: {{ .Release.Name }}
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: {{ template "qr-formlink.fullname" . }}
{{ toYaml .Values.autoscaling.config | indent 2 }}
{{- end -}}

View File

@@ -0,0 +1,45 @@
{{- if .Values.ingress.enabled -}}
{{- $fullName := include "qr-formlink.fullname" . -}}
{{- $servicePort := .Values.service.port -}}
{{- $ingressPath := .Values.ingress.path -}}
{{- $ingressPathType := .Values.ingress.pathtype -}}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ $fullName }}
labels:
app: {{ template "qr-formlink.name" . }}
chart: {{ template "qr-formlink.chart" . }}
component: qr-formlink
heritage: {{ .Release.Service }}
release: {{ .Release.Name }}
{{- with .Values.ingress.annotations }}
annotations:
{{ toYaml . | indent 4 }}
{{- end }}
spec:
{{- if .Values.ingress.tls }}
tls:
{{- range .Values.ingress.tls }}
- hosts:
{{- range .hosts }}
- {{ . }}
{{- end }}
secretName: {{ .secretName }}
{{- end }}
{{- end }}
rules:
{{- range .Values.ingress.hosts }}
- host: {{ . }}
http:
paths:
- path: {{ $ingressPath }}
pathType: {{ $ingressPathType }}
backend:
service:
name: {{ $fullName }}
port:
number: 3000
{{- end }}
{{- end }}

View File

@@ -0,0 +1,26 @@
apiVersion: v1
kind: Service
metadata:
{{- if .Values.service.annotations }}
annotations:
{{ toYaml .Values.service.annotations | indent 4 }}
{{- end }}
name: {{ template "qr-formlink.fullname" . }}
labels:
app: {{ template "qr-formlink.name" . }}
chart: {{ template "qr-formlink.chart" . }}
component: qr-formlink
heritage: {{ .Release.Service }}
release: {{ .Release.Name }}
spec:
type: {{ .Values.service.type }}
ports:
- port: {{ .Values.service.port }}
targetPort: 3000
protocol: TCP
name: npm
selector:
app: {{ template "qr-formlink.name" . }}
component: qr-formlink
release: {{ .Release.Name }}

View File

@@ -0,0 +1,13 @@
{{- if .Values.serviceAccount.create -}}
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ include "qr-formlink.serviceAccountName" . }}
labels:
{{- include "qr-formlink.labels" . | nindent 4 }}
{{- with .Values.serviceAccount.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
automountServiceAccountToken: {{ .Values.serviceAccount.automount }}
{{- end }}

View File

@@ -0,0 +1,76 @@
platform: kubernetes
serviceAccount:
create: true
name: ""
annotations: ""
automount: false
image:
repository: gitea.innovation-hub-niedersachsen.de/innohub/qr-formlink
tag: v0.0.1
pullPolicy: IfNotPresent
insecure: true
replicaCount: 1
service:
type: ClusterIP
port: 3000
annotations: {}
endpoint: qr-formlink.local
ingress:
enabled: false
annotations: {}
path: /
pathtype: ImplementationSpecific
hosts:
- qr-formlink.innohub.local
tls:
route:
enabled: false
resources:
requests:
memory: 128Mi
cpu: 300m
limits:
memory: 1Gi
cpu: 500m
nodeSelector: {}
tolerations: []
affinity: {}
autoscaling:
enabled: true
config:
minReplicas: 1
maxReplicas: 10
targetCPUUtilizationPercentage: 80
deploymentLabels: {}
podLabels: {}
sharedDataFolder:
enabled: true
path: /daten
accessMode: ReadWriteOnce
storageClass:
resources:
requests:
storage: 5Gi
updateStrategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 1
maxSurge: 1
podSecurityContext: {}
securityContext: {}
extraDeploy: []