Skip to content

Commit

Permalink
Join helm charts
Browse files Browse the repository at this point in the history
  • Loading branch information
halamix2 committed Apr 30, 2024
1 parent 39d4875 commit 69284fa
Show file tree
Hide file tree
Showing 15 changed files with 211 additions and 255 deletions.
File renamed without changes.
21 changes: 0 additions & 21 deletions config/docker-registry/charts/docker-registry/.helmignore

This file was deleted.

14 changes: 0 additions & 14 deletions config/docker-registry/charts/docker-registry/Chart.yaml

This file was deleted.

This file was deleted.

171 changes: 0 additions & 171 deletions config/docker-registry/charts/docker-registry/values.yaml

This file was deleted.

25 changes: 25 additions & 0 deletions config/docker-registry/templates/_helpers.tpl
Original file line number Diff line number Diff line change
@@ -1,3 +1,28 @@
{{/* vim: set filetype=mustache: */}}
{{/*
Expand the name of the chart.
*/}}
{{- define "docker-registry.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).
*/}}
{{- define "docker-registry.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 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).
Expand Down
File renamed without changes.
Loading

0 comments on commit 69284fa

Please sign in to comment.