Skip to content
Snippets Groups Projects
Commit e7e377f3 authored by Andri Joos's avatar Andri Joos :blush:
Browse files

add extra ingress template

parents
No related branches found
No related tags found
No related merge requests found
Pipeline #7695 failed with stages
in 23 seconds
out/
*/charts
include:
- project: charts/ci-templates
ref: master
file: gitlab_deployment.gitlab-ci.yml
variables:
CHART_DIRECTORY: extra-ingress/
CHANNEL: stable
deploy_on_gitlab:
only:
- tags
# Installation instructions
```sh
helm repo add common https://git.420joos.dev/api/v4/projects/293/packages/helm/stable
```
# 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/
apiVersion: v2
name: common
description: A Collection of Helm Templates
type: library
version: 1.0.0
{{- define "common.extra-ingress.ingress" -}}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ .Values.name | default "extra-ingress" | quote }}
{{- with .Values.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
labels:
{{- include "common.labels" . | nindent 4 }}
spec:
ingressClassName: {{ .Values.ingressClassName }}
rules: {{ .Values.rules }}
tls: {{ .Values.tls }}
{{- end }}
{{/*
Create chart name and version as used by the chart label.
*/}}
{{- define "common.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
{{- end }}
{{/*
Common labels
*/}}
{{- define "common.labels" -}}
helm.sh/chart: {{ include "common.chart" . }}
{{- if .Chart.AppVersion }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- end }}
# 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/
dependencies:
- name: common
repository: file://../common
version: 1.0.0
digest: sha256:07cebde439abe4ba19bb28e844b7419dab83c7f613886416aaf3ec08e8059144
generated: "2025-01-15T22:24:21.525426065+01:00"
apiVersion: v2
name: example
description: An example Chart to show how common works
type: application
version: 1.0.0
appVersion: "1.0.0"
dependencies:
- name: common
version: 1.0.0
repository: file://../common
{{- if .Values.extraIngress }}
{{ include "common.extra-ingress.ingress" (dict "Values" .Values.extraIngress "Chart" .Chart "Release" .Release) }}
{{- end }}
extraIngress:
name: extra-ingress # is the default value
ingressClassName: traefik
rules: []
tls: []
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment