Unverified Commit b0448f9e authored by Luca Cinquini's avatar Luca Cinquini Committed by GitHub
Browse files

Merge pull request #88 from ESGF/issue/86/helm-charts

Integrate Helm charts
parents 965ef2f7 07fc827f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2,6 +2,6 @@

ESGF software stack as Docker images.

## Documentation
## Documentation

For documentation, please visit [cedadev.github.io/esgf-docker](https://cedadev.github.io/esgf-docker).
+2 −0
Original line number Diff line number Diff line
@@ -13,6 +13,8 @@ fi
: ${ESGF_PREFIX:=}
: ${ESGF_VERSION:=latest}

export ESGF_CONFIG ESGF_HUB ESGF_PREFIX ESGF_VERSION

# Run the given command in the docker container with the required environment variables and volumes
# It requires:
#   * The actual value of the ESGF_CONFIG variable for interpolation
+4 −0
Original line number Diff line number Diff line
apiVersion: v1
name: esgf-node
version: 0.1.0
description: Helm chart for deploying an ESGF node.
+0 −0

Empty file added.

+26 −0
Original line number Diff line number Diff line
{{/* vim: set filetype=mustache: */}}
{{/*
Expand the name of the chart.
*/}}
{{- define "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 "fullname" -}}
{{- $name := default .Chart.Name .Values.nameOverride -}}
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
{{- end -}}

{{/*
Template providing the default labels for a resource.
*/}}
{{- define "default-labels" -}}
app: {{ template "name" . }}
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
{{- end -}}
Loading