From 392679ac99d5bc5694947019497b3fcad1414478 Mon Sep 17 00:00:00 2001 From: "M. Rehan" Date: Mon, 6 Dec 2021 20:26:00 +0500 Subject: [PATCH] Address Feedbacks --- charts/machinaris/1.1.0/Chart.yaml | 4 +- .../1.1.0/charts/common-2106.0.0.tgz | Bin 4458 -> 0 bytes .../1.1.0/charts/common-2112.0.0.tgz | Bin 0 -> 4467 bytes charts/machinaris/1.1.0/questions.yaml | 1 + charts/machinaris/1.1.0/requirements.lock | 8 +- .../templates/lib/containers/_port.tpl | 13 --- library/common/2106.0.0/.helmignore | 23 ------ library/common/2106.0.0/Chart.yaml | 23 ------ library/common/2106.0.0/README.md | 11 --- .../2106.0.0/templates/_serviceaccount.tpl | 11 --- .../2106.0.0/templates/classes/_service.tpl | 41 ---------- .../templates/classes/_service_ports.tpl | 19 ----- .../templates/lib/chart/_annotations.tpl | 6 -- .../templates/lib/chart/_capabilities.tpl | 27 ------- .../2106.0.0/templates/lib/chart/_labels.tpl | 24 ------ .../2106.0.0/templates/lib/chart/_names.tpl | 66 --------------- .../templates/lib/containers/_environment.tpl | 41 ---------- .../templates/lib/containers/_image.tpl | 9 --- .../templates/lib/containers/_port.tpl | 13 --- .../templates/lib/containers/_resource.tpl | 10 --- .../templates/lib/deployments/_utils.tpl | 41 ---------- .../templates/lib/networking/_dns.tpl | 12 --- .../templates/lib/resources/_certs.tpl | 26 ------ .../2106.0.0/templates/lib/schema/_utils.tpl | 19 ----- .../templates/lib/storage/_appStorage.tpl | 75 ------------------ .../templates/lib/storage/_ixvolumes.tpl | 11 --- 26 files changed, 7 insertions(+), 527 deletions(-) delete mode 100644 charts/machinaris/1.1.0/charts/common-2106.0.0.tgz create mode 100644 charts/machinaris/1.1.0/charts/common-2112.0.0.tgz delete mode 100644 library/common/2105.0.0/templates/lib/containers/_port.tpl delete mode 100644 library/common/2106.0.0/.helmignore delete mode 100644 library/common/2106.0.0/Chart.yaml delete mode 100644 library/common/2106.0.0/README.md delete mode 100644 library/common/2106.0.0/templates/_serviceaccount.tpl delete mode 100644 library/common/2106.0.0/templates/classes/_service.tpl delete mode 100644 library/common/2106.0.0/templates/classes/_service_ports.tpl delete mode 100644 library/common/2106.0.0/templates/lib/chart/_annotations.tpl delete mode 100644 library/common/2106.0.0/templates/lib/chart/_capabilities.tpl delete mode 100644 library/common/2106.0.0/templates/lib/chart/_labels.tpl delete mode 100644 library/common/2106.0.0/templates/lib/chart/_names.tpl delete mode 100644 library/common/2106.0.0/templates/lib/containers/_environment.tpl delete mode 100644 library/common/2106.0.0/templates/lib/containers/_image.tpl delete mode 100644 library/common/2106.0.0/templates/lib/containers/_port.tpl delete mode 100644 library/common/2106.0.0/templates/lib/containers/_resource.tpl delete mode 100644 library/common/2106.0.0/templates/lib/deployments/_utils.tpl delete mode 100644 library/common/2106.0.0/templates/lib/networking/_dns.tpl delete mode 100644 library/common/2106.0.0/templates/lib/resources/_certs.tpl delete mode 100644 library/common/2106.0.0/templates/lib/schema/_utils.tpl delete mode 100644 library/common/2106.0.0/templates/lib/storage/_appStorage.tpl delete mode 100644 library/common/2106.0.0/templates/lib/storage/_ixvolumes.tpl diff --git a/charts/machinaris/1.1.0/Chart.yaml b/charts/machinaris/1.1.0/Chart.yaml index fdc7733b2a..109a60a63a 100644 --- a/charts/machinaris/1.1.0/Chart.yaml +++ b/charts/machinaris/1.1.0/Chart.yaml @@ -2,8 +2,8 @@ apiVersion: v1 appVersion: v0.6.7 dependencies: - name: common - repository: file://../../../library/common/2106.0.0 - version: 2106.0.0 + repository: file://../../../library/common/2112.0.0 + version: 2112.0.0 description: Global, Versioned, peer-to-peer filesystem. home: https://github.com/guydavis/machinaris icon: https://raw.githubusercontent.com/guydavis/machinaris/main/web/static/favicon.ico diff --git a/charts/machinaris/1.1.0/charts/common-2106.0.0.tgz b/charts/machinaris/1.1.0/charts/common-2106.0.0.tgz deleted file mode 100644 index f66c62cb04329fd15b28b1139d5769d32cb09f49..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?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!my+d)AwqAupblZ9r%BlLz zI2pHI{eSBPyhog{Ou+f+nP`P6XCH7RTOo-t>X`1FeQ1R<5wRF|zH!#q&GP@dv*Xj> z&cbQ@9Pd~e|LNBFzq_sfy_xm`-q=6tda~?~x~hA+L#y@b)jy8kU7TP1as=1Eo?pSq zugCAM;rt3N-d@9RXU7-UaQznk>kQ5>uC9;Yyg56C)AM&{C)aO&fAy+m$}1582>$0+ zoJ`BF|KFX7l&LuCbX+Cbm_?!^SxO>pnyRihx_p=Dyik4GA)L#<2}m=ZGNJPn)D*^? zWvLQg?oZIMF^OP^}Qz|LSahydMrif69DN;Zqrei0?>n(8o*Yh%=tL^C$jC>9#nrLGT z!I+^$VKT&ODyQ#$4_mDlFW{U?&f-jmZ0v%X;%7E8BiyX>WYGyuQp^S1O-M9>2+_Q% zpJWi@8BSOV6yG_tG97Nx8&unpwo?dT%Hs0ydysS6wr$(CZQE9E{|W#A|Nm^ZLJ|Og F0068Z+SmX9 literal 0 HcmV?d00001 diff --git a/charts/machinaris/1.1.0/questions.yaml b/charts/machinaris/1.1.0/questions.yaml index 95ab05b290..808666a084 100644 --- a/charts/machinaris/1.1.0/questions.yaml +++ b/charts/machinaris/1.1.0/questions.yaml @@ -215,6 +215,7 @@ questions: label: "Value" schema: type: string + - variable: enableResourceLimits label: "Enable Pod resource limits" group: "Resource Limits" diff --git a/charts/machinaris/1.1.0/requirements.lock b/charts/machinaris/1.1.0/requirements.lock index 01328aa52a..c555ad2636 100644 --- a/charts/machinaris/1.1.0/requirements.lock +++ b/charts/machinaris/1.1.0/requirements.lock @@ -1,6 +1,6 @@ dependencies: - name: common - repository: file://../../../library/common/2106.0.0 - version: 2106.0.0 -digest: sha256:0fe8d11fc6fcaa7c3738da379603ff67e172b710130c2055f91179d5d97c1993 -generated: "2021-12-04T20:10:11.366623+05:00" + repository: file://../../../library/common/2112.0.0 + version: 2112.0.0 +digest: sha256:47115d9b91afe42c8537dcf0fd8224f2f7d1c775f9ff860efa68a6b57d17d1c0 +generated: "2021-12-06T19:55:04.707082+05:00" diff --git a/library/common/2105.0.0/templates/lib/containers/_port.tpl b/library/common/2105.0.0/templates/lib/containers/_port.tpl deleted file mode 100644 index 0077a6371d..0000000000 --- a/library/common/2105.0.0/templates/lib/containers/_port.tpl +++ /dev/null @@ -1,13 +0,0 @@ -{{/* -Retrieve ports configuration for container -*/}} -{{- define "common.containers.configurePorts" -}} -ports: -{{- range $index, $port := .ports -}} -{{- include "common.schema.validateKeys" (dict "values" $port "checkKeys" (list "protocol" "containerPort")) }} -- protocol: {{ $port.protocol }} - containerPort: {{ $port.containerPort }} - {{ if hasKey $port "hostPort" }}hostPort: {{ $port.hostPort }}{{ end }} - {{ if hasKey $port "name" }}name: {{ $port.name }}{{ end }} -{{- end }} -{{ end -}} diff --git a/library/common/2106.0.0/.helmignore b/library/common/2106.0.0/.helmignore deleted file mode 100644 index 0e8a0eb36f..0000000000 --- a/library/common/2106.0.0/.helmignore +++ /dev/null @@ -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/ diff --git a/library/common/2106.0.0/Chart.yaml b/library/common/2106.0.0/Chart.yaml deleted file mode 100644 index 5f1e1f190b..0000000000 --- a/library/common/2106.0.0/Chart.yaml +++ /dev/null @@ -1,23 +0,0 @@ -apiVersion: v2 -name: common -description: A library chart for iX Official Catalog - -# A chart can be either an 'application' or a 'library' chart. -# -# Application charts are a collection of templates that can be packaged into versioned archives -# to be deployed. -# -# Library charts provide useful utilities or functions for the chart developer. They're included as -# a dependency of application charts to inject those utilities and functions into the rendering -# pipeline. Library charts do not define any templates and therefore cannot be deployed. -type: library - -# This is the chart version. This version number should be incremented each time you make changes -# to the chart and its templates, including the app version. -# Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 2106.0.0 - -# This is the version number of the application being deployed. This version number should be -# incremented each time you make changes to the application. Versions are not expected to -# follow Semantic Versioning. They should reflect the version the application is using. -appVersion: v1 diff --git a/library/common/2106.0.0/README.md b/library/common/2106.0.0/README.md deleted file mode 100644 index f8784843a2..0000000000 --- a/library/common/2106.0.0/README.md +++ /dev/null @@ -1,11 +0,0 @@ -# Library Chart for iX Official Catalog iX Chart - -**WARNING: THIS CHART IS NOT MEANT TO BE INSTALLED DIRECTLY** - -This is a [Helm Library Chart](https://helm.sh/docs/topics/library_charts/#helm). It's purpose is for grouping common logic between the k8s@home charts. - -Since a lot of charts follow the same pattern this library was built to reduce maintenance cost between the charts that use it and try achieve a goal of being DRY. - -## Introduction - -This chart provides common template helpers which can be used to develop new charts using [Helm](https://helm.sh) package manager. diff --git a/library/common/2106.0.0/templates/_serviceaccount.tpl b/library/common/2106.0.0/templates/_serviceaccount.tpl deleted file mode 100644 index b96d4009a9..0000000000 --- a/library/common/2106.0.0/templates/_serviceaccount.tpl +++ /dev/null @@ -1,11 +0,0 @@ -{{/* -Common service account -*/}} -{{- define "common.serviceaccount" -}} -apiVersion: v1 -kind: ServiceAccount -metadata: - name: {{ include "common.names.serviceAccountName" . | quote }} - namespace: {{ .Release.Namespace | quote }} - labels: {{- include "common.labels.selectorLabels" . | nindent 4 -}} -{{- end -}} diff --git a/library/common/2106.0.0/templates/classes/_service.tpl b/library/common/2106.0.0/templates/classes/_service.tpl deleted file mode 100644 index c63ab9b933..0000000000 --- a/library/common/2106.0.0/templates/classes/_service.tpl +++ /dev/null @@ -1,41 +0,0 @@ -{{/* -This template serves as a blueprint for all Service objects that are created -within the common library. -*/}} -{{- define "common.classes.service" -}} -{{- $values := .commonService -}} -{{- $serviceName := include "common.names.fullname" . -}} -{{- if hasKey $values "nameSuffix" -}} - {{- $serviceName = (printf "%v-%v" $serviceName $values.nameSuffix) -}} -{{ end -}} -{{- $svcType := $values.type | default "" -}} -apiVersion: v1 -kind: Service -metadata: - name: {{ $serviceName }} - labels: - {{- include "common.labels" . | nindent 4 }} - {{- if $values.labels }} - {{ toYaml $values.labels | nindent 4 }} - {{- end }} - {{- if $values.annotations }} - {{- with $values.annotations }} - annotations: - {{ toYaml . | nindent 4 }} - {{- end }} - {{- end }} -spec: - {{- if (or (eq $svcType "ClusterIP") (empty $svcType)) }} - type: ClusterIP - {{- if $values.clusterIP }} - clusterIP: {{ $values.clusterIP }} - {{end}} - {{- else if eq $svcType "NodePort" }} - type: {{ $svcType }} - {{- else }} - {{- fail "Only ClusterIP and NodePort services are supported in common chart" }} - {{- end }} - {{- include "common.classes.service.ports" (dict "svcType" $svcType "values" $values ) | trim | nindent 2 }} - selector: - {{- include "common.labels.selectorLabels" . | nindent 4 }} -{{- end }} diff --git a/library/common/2106.0.0/templates/classes/_service_ports.tpl b/library/common/2106.0.0/templates/classes/_service_ports.tpl deleted file mode 100644 index a61900b42a..0000000000 --- a/library/common/2106.0.0/templates/classes/_service_ports.tpl +++ /dev/null @@ -1,19 +0,0 @@ -{{/* -Render all the ports and additionalPorts for a Service object. -*/}} -{{- define "common.classes.service.ports" -}} - {{- $values := .values -}} - {{- $ports := $values.ports -}} - {{- if $ports -}} - ports: - {{- range $_ := $ports }} - - port: {{ .port }} - targetPort: {{ .targetPort | default "http" }} - protocol: {{ .protocol | default "TCP" }} - name: {{ .name | default "http" }} - {{- if (and (eq $.svcType "NodePort") (not (empty .nodePort))) }} - nodePort: {{ .nodePort }} - {{ end }} - {{- end -}} - {{- end -}} -{{- end }} diff --git a/library/common/2106.0.0/templates/lib/chart/_annotations.tpl b/library/common/2106.0.0/templates/lib/chart/_annotations.tpl deleted file mode 100644 index ad80be1e90..0000000000 --- a/library/common/2106.0.0/templates/lib/chart/_annotations.tpl +++ /dev/null @@ -1,6 +0,0 @@ -{{/* -Common workload annotations -*/}} -{{- define "common.annotations" -}} -rollme: {{ randAlphaNum 5 | quote }} -{{- end -}} diff --git a/library/common/2106.0.0/templates/lib/chart/_capabilities.tpl b/library/common/2106.0.0/templates/lib/chart/_capabilities.tpl deleted file mode 100644 index 7a3c13c8b2..0000000000 --- a/library/common/2106.0.0/templates/lib/chart/_capabilities.tpl +++ /dev/null @@ -1,27 +0,0 @@ -{{/* -Return the appropriate apiVersion for DaemonSet objects. -*/}} -{{- define "common.capabilities.daemonset.apiVersion" -}} -{{- print "apps/v1" -}} -{{- end -}} - -{{/* -Return the appropriate apiVersion for Deployment objects. -*/}} -{{- define "common.capabilities.deployment.apiVersion" -}} -{{- print "apps/v1" -}} -{{- end -}} - -{{/* -Return the appropriate apiVersion for StatefulSet objects. -*/}} -{{- define "common.capabilities.statefulset.apiVersion" -}} -{{- print "apps/v1" -}} -{{- end -}} - -{{/* -Return the appropriate apiVersion for StatefulSet objects. -*/}} -{{- define "common.capabilities.cronjob.apiVersion" -}} -{{- print "batch/v1beta1" -}} -{{- end -}} diff --git a/library/common/2106.0.0/templates/lib/chart/_labels.tpl b/library/common/2106.0.0/templates/lib/chart/_labels.tpl deleted file mode 100644 index f64aead636..0000000000 --- a/library/common/2106.0.0/templates/lib/chart/_labels.tpl +++ /dev/null @@ -1,24 +0,0 @@ -{{/* -Common labels shared across objects. -*/}} -{{- define "common.labels" -}} -helm.sh/chart: {{ include "common.names.chart" . }} -{{ include "common.labels.selectorLabels" . }} -{{- if .Chart.AppVersion }} -app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} -{{- end }} -app.kubernetes.io/managed-by: {{ .Release.Service }} -{{- end }} - -{{/* -Selector labels shared across objects. -*/}} -{{- define "common.labels.selectorLabels" -}} -app.kubernetes.io/name: {{ include "common.names.name" . }} -app.kubernetes.io/instance: {{ include "common.names.releaseName" . }} -{{ if hasKey .Values "extraSelectorLabels" }} -{{ range $selector := .Values.extraSelectorLabels }} -{{ printf "%s: %s" $selector.key $selector.value }} -{{ end }} -{{ end }} -{{- end }} diff --git a/library/common/2106.0.0/templates/lib/chart/_names.tpl b/library/common/2106.0.0/templates/lib/chart/_names.tpl deleted file mode 100644 index e98c6b4e6f..0000000000 --- a/library/common/2106.0.0/templates/lib/chart/_names.tpl +++ /dev/null @@ -1,66 +0,0 @@ -{{/* -Expand the name of the chart. -*/}} -{{- define "common.names.name" -}} -{{- $values := (.common | default dict) -}} -{{- $name := (default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-") }} -{{- if hasKey $values "nameSuffix" -}} - {{- $name = (printf "%v-%v" $name $values.nameSuffix) -}} -{{ end -}} -{{- print $name -}} -{{- 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 "common.names.fullname" -}} -{{- $values := (.common | default dict) -}} -{{- if .Values.fullnameOverride }} -{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }} -{{- else }} -{{- $name := default .Chart.Name .Values.nameOverride }} -{{- if contains $name .Release.Name }} -{{- $name = (.Release.Name | trunc 63 | trimSuffix "-") }} -{{- else }} -{{- $name = (printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-") }} -{{- end }} -{{- if hasKey $values "nameSuffix" -}} - {{- $name = (printf "%v-%v" $name $values.nameSuffix) -}} -{{ end -}} -{{- print $name -}} -{{- end }} -{{- end }} - -{{/* -Create chart name and version as used by the chart label. -*/}} -{{- define "common.names.chart" -}} -{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }} -{{- end }} - -{{/* -Determine service account name for deployment or statefulset. -*/}} -{{- define "common.names.serviceAccountName" -}} -{{- if .Values.serviceAccountNameOverride }} -{{- .Values.serviceAccountNameOverride | trunc 63 | trimSuffix "-" }} -{{- else }} -{{- printf "%s-service-account" (include "common.names.releaseName" .) | replace "+" "_" | trunc 63 | trimSuffix "-" -}} -{{- end -}} -{{- end -}} - - -{{/* -Determine release name -This will add a suffix to the release name if nameSuffix is set -*/}} -{{- define "common.names.releaseName" -}} -{{- $values := (.common | default dict) -}} -{{- if hasKey $values "nameSuffix" -}} - {{- printf "%v-%v" .Release.Name $values.nameSuffix -}} -{{- else -}} - {{- print .Release.Name -}} -{{ end -}} -{{- end -}} diff --git a/library/common/2106.0.0/templates/lib/containers/_environment.tpl b/library/common/2106.0.0/templates/lib/containers/_environment.tpl deleted file mode 100644 index d757f459c1..0000000000 --- a/library/common/2106.0.0/templates/lib/containers/_environment.tpl +++ /dev/null @@ -1,41 +0,0 @@ -{{/* -Render environment variable -*/}} -{{- define "common.containers.environmentVariable" -}} -{{- $envVariable := . -}} -{{- include "common.schema.validateKeys" (dict "values" $envVariable "checkKeys" (list "name")) -}} -{{- if $envVariable.valueFromSecret -}} -{{- include "common.schema.validateKeys" (dict "values" $envVariable "checkKeys" (list "secretName" "secretKey")) -}} -- name: {{ $envVariable.name | quote }} - valueFrom: - secretKeyRef: - name: {{ $envVariable.secretName | quote }} - key: {{ $envVariable.secretKey | quote }} -{{- else -}} -{{- include "common.schema.validateKeys" (dict "values" $envVariable "checkKeys" (list "value")) -}} -- name: {{ $envVariable.name | quote }} - value: {{ $envVariable.value | quote }} -{{- end -}} -{{- end -}} - -{{/* -Render environment variables -*/}} -{{- define "common.containers.environmentVariables" -}} -{{- $values := . -}} -{{- include "common.schema.validateKeys" (dict "values" $values "checkKeys" (list "environmentVariables")) -}} -{{- range $envVariable := $values.environmentVariables -}} -{{- include "common.containers.environmentVariable" $envVariable | nindent 0 -}} -{{- end -}} -{{- end -}} - -{{/* -Render environment variables if present -*/}} -{{- define "common.containers.allEnvironmentVariables" -}} -{{- $values := . -}} -{{- include "common.schema.validateKeys" (dict "values" $values "checkKeys" (list "environmentVariables")) -}} -{{- if $values.environmentVariables -}} -env: {{- include "common.containers.environmentVariables" $values | nindent 2 -}} -{{- end -}} -{{- end -}} diff --git a/library/common/2106.0.0/templates/lib/containers/_image.tpl b/library/common/2106.0.0/templates/lib/containers/_image.tpl deleted file mode 100644 index 2b2b04561d..0000000000 --- a/library/common/2106.0.0/templates/lib/containers/_image.tpl +++ /dev/null @@ -1,9 +0,0 @@ -{{/* -Retrieve image configuration for container -*/}} -{{- define "common.containers.imageConfig" -}} -{{- $values := . -}} -{{- include "common.schema.validateKeys" (dict "values" $values "checkKeys" (list "repository" "tag" "pullPolicy")) -}} -image: "{{ $values.repository }}{{- if hasKey $values "postfix" -}}-{{ $values.postfix }}{{- end -}}:{{ $values.tag }}" -imagePullPolicy: {{ $values.pullPolicy }} -{{- end -}} diff --git a/library/common/2106.0.0/templates/lib/containers/_port.tpl b/library/common/2106.0.0/templates/lib/containers/_port.tpl deleted file mode 100644 index 0077a6371d..0000000000 --- a/library/common/2106.0.0/templates/lib/containers/_port.tpl +++ /dev/null @@ -1,13 +0,0 @@ -{{/* -Retrieve ports configuration for container -*/}} -{{- define "common.containers.configurePorts" -}} -ports: -{{- range $index, $port := .ports -}} -{{- include "common.schema.validateKeys" (dict "values" $port "checkKeys" (list "protocol" "containerPort")) }} -- protocol: {{ $port.protocol }} - containerPort: {{ $port.containerPort }} - {{ if hasKey $port "hostPort" }}hostPort: {{ $port.hostPort }}{{ end }} - {{ if hasKey $port "name" }}name: {{ $port.name }}{{ end }} -{{- end }} -{{ end -}} diff --git a/library/common/2106.0.0/templates/lib/containers/_resource.tpl b/library/common/2106.0.0/templates/lib/containers/_resource.tpl deleted file mode 100644 index fd4f6eef02..0000000000 --- a/library/common/2106.0.0/templates/lib/containers/_resource.tpl +++ /dev/null @@ -1,10 +0,0 @@ -{{/* -Retrieve GPU Configuration -*/}} -{{- define "common.containers.gpuConfiguration" -}} -{{- $values := . -}} -{{ if $values.gpuConfiguration }} -resources: - limits: {{- toYaml $values.gpuConfiguration | nindent 4 }} -{{ end }} -{{- end -}} diff --git a/library/common/2106.0.0/templates/lib/deployments/_utils.tpl b/library/common/2106.0.0/templates/lib/deployments/_utils.tpl deleted file mode 100644 index b8b2f76ad5..0000000000 --- a/library/common/2106.0.0/templates/lib/deployments/_utils.tpl +++ /dev/null @@ -1,41 +0,0 @@ -{{/* -Retrieve deployment metadata -*/}} -{{- define "common.deployment.metadata" -}} -metadata: - name: {{ template "common.names.fullname" . }} - labels: {{ include "common.labels.selectorLabels" . | nindent 4 }} -{{- end -}} - - -{{/* -Retrieve replicas/strategy/selector -*/}} -{{- define "common.deployment.common_spec" -}} -replicas: {{ (default 1 .Values.replicas) }} -strategy: - type: {{ (default "Recreate" .Values.updateStrategy ) }} -selector: - matchLabels: {{ include "common.labels.selectorLabels" . | nindent 4 }} -{{- end -}} - - -{{/* -Retrieve deployment pod's metadata -*/}} -{{- define "common.deployment.pod.metadata" -}} -metadata: - name: {{ template "common.names.fullname" . }} - labels: {{ include "common.labels.selectorLabels" . | nindent 4 }} - annotations: {{ include "common.annotations" . | nindent 4 }} -{{- end -}} - - -{{/* -Retrieve common deployment configuration -*/}} -{{- define "common.deployment.common_config" -}} -apiVersion: {{ template "common.capabilities.deployment.apiVersion" . }} -kind: Deployment -{{ include "common.deployment.metadata" . | nindent 0 }} -{{- end -}} diff --git a/library/common/2106.0.0/templates/lib/networking/_dns.tpl b/library/common/2106.0.0/templates/lib/networking/_dns.tpl deleted file mode 100644 index 3a748a4aae..0000000000 --- a/library/common/2106.0.0/templates/lib/networking/_dns.tpl +++ /dev/null @@ -1,12 +0,0 @@ -{{/* -DNS Configuration -*/}} -{{- define "common.networking.dnsConfiguration" }} -{{ if .dnsPolicy }} -dnsPolicy: {{ .dnsPolicy }} -{{ end }} -{{ if .dnsConfig }} -dnsConfig: - {{ toYaml .dnsConfig | nindent 2 }} -{{ end }} -{{- end }} diff --git a/library/common/2106.0.0/templates/lib/resources/_certs.tpl b/library/common/2106.0.0/templates/lib/resources/_certs.tpl deleted file mode 100644 index 9e091595e9..0000000000 --- a/library/common/2106.0.0/templates/lib/resources/_certs.tpl +++ /dev/null @@ -1,26 +0,0 @@ -{{/* -Retrieve true/false if certificate is available in ixCertificates -*/}} -{{- define "common.resources.cert_present" -}} -{{- $values := . -}} -{{- include "common.schema.validateKeys" (dict "values" . "checkKeys" (list "commonCertOptions")) -}} -{{- hasKey $values.Values.ixCertificates ($values.commonCertOptions.certKeyName | toString) -}} -{{- end -}} - - -{{/* -Retrieve certificate from variable name -*/}} -{{- define "common.resources.cert" -}} -{{- $values := . -}} -{{- include "common.schema.validateKeys" (dict "values" . "checkKeys" (list "commonCertOptions")) -}} -{{- $certKey := ($values.commonCertOptions.certKeyName | toString) -}} -{{- if hasKey $values.Values.ixCertificates $certKey -}} -{{- $cert := get $values.Values.ixCertificates $certKey -}} -{{- if $values.commonCertOptions.publicKey -}} -{{ $cert.certificate }} -{{- else -}} -{{ $cert.privatekey }} -{{- end -}} -{{- end -}} -{{- end -}} diff --git a/library/common/2106.0.0/templates/lib/schema/_utils.tpl b/library/common/2106.0.0/templates/lib/schema/_utils.tpl deleted file mode 100644 index 8577a0b615..0000000000 --- a/library/common/2106.0.0/templates/lib/schema/_utils.tpl +++ /dev/null @@ -1,19 +0,0 @@ -{{/* -Checks if a list of keys are present in a dictionary -*/}} -{{- define "common.schema.validateKeys" -}} -{{- $values := . -}} -{{- if and (hasKey $values "values") (hasKey $values "checkKeys") -}} -{{- $missingKeys := list -}} -{{- range $values.checkKeys -}} -{{- if eq (hasKey $values.values . ) false -}} -{{- $missingKeys = mustAppend $missingKeys . -}} -{{- end -}} -{{- end -}} -{{- if $missingKeys -}} -{{- fail (printf "Missing %s from dictionary" ($missingKeys | join ", ")) -}} -{{- end -}} -{{- else -}} -{{- fail "A dictionary and list of keys to check must be provided" -}} -{{- end -}} -{{- end -}} diff --git a/library/common/2106.0.0/templates/lib/storage/_appStorage.tpl b/library/common/2106.0.0/templates/lib/storage/_appStorage.tpl deleted file mode 100644 index b97a8b2c09..0000000000 --- a/library/common/2106.0.0/templates/lib/storage/_appStorage.tpl +++ /dev/null @@ -1,75 +0,0 @@ -{{/* -Define appVolumeMounts for container -*/}} -{{- define "common.storage.configureAppVolumeMountsInContainer" -}} -{{- include "common.schema.validateKeys" (dict "values" . "checkKeys" (list "appVolumeMounts")) -}} -{{- $appVolumeMounts := .appVolumeMounts -}} -{{- if $appVolumeMounts -}} -{{ range $name, $avm := $appVolumeMounts }} -{{- if (default true $avm.enabled) -}} -{{ if $avm.containerNameOverride }} -{{ $name = $avm.containerNameOverride }} -{{ end }} -- name: {{ $name }} - mountPath: {{ $avm.mountPath }} - {{ if $avm.subPath }} - subPath: {{ $avm.subPath }} - {{ end }} - {{ if $avm.readOnly }} - readOnly: {{ $avm.readOnly }} - {{ end }} -{{- end -}} -{{ end }} -{{- end -}} -{{- end -}} - - -{{/* -Define hostPath for appVolumes -*/}} -{{- define "common.storage.configureAppVolumes" -}} -{{- include "common.schema.validateKeys" (dict "values" . "checkKeys" (list "appVolumeMounts")) -}} -{{- $values := . -}} -{{- if $values.appVolumeMounts -}} -{{- range $name, $av := $values.appVolumeMounts -}} -{{ if (default true $av.enabled) }} -- name: {{ $name }} - {{ if or $av.emptyDir $.emptyDirVolumes }} - emptyDir: {} - {{- else -}} - hostPath: - {{ if $av.hostPathEnabled }} - path: {{ required "hostPath not set" $av.hostPath }} - {{ else }} - {{- include "common.schema.validateKeys" (dict "values" $values "checkKeys" (list "ixVolumes")) -}} - {{- include "common.schema.validateKeys" (dict "values" $av "checkKeys" (list "datasetName")) -}} - {{- $volDict := dict "datasetName" $av.datasetName "ixVolumes" $values.ixVolumes -}} - path: {{ include "common.storage.retrieveHostPathFromiXVolume" $volDict }} - {{ end }} - {{ end }} -{{ end }} -{{- end -}} -{{- end -}} -{{- end -}} - - -{{/* -Get all volumes configuration -*/}} -{{- define "common.storage.allAppVolumes" -}} -{{- $appVolumeMounts := .appVolumeMounts -}} -{{- if $appVolumeMounts -}} -volumes: {{- include "common.storage.configureAppVolumes" . | nindent 2 -}} -{{- end -}} -{{- end -}} - - -{{/* -Get all container volume moutns configuration -*/}} -{{- define "common.storage.allContainerVolumeMounts" -}} -{{- $appVolumeMounts := .appVolumeMounts -}} -{{- if $appVolumeMounts -}} -volumeMounts: {{- include "common.storage.configureAppVolumeMountsInContainer" . | nindent 2 -}} -{{- end -}} -{{- end -}} diff --git a/library/common/2106.0.0/templates/lib/storage/_ixvolumes.tpl b/library/common/2106.0.0/templates/lib/storage/_ixvolumes.tpl deleted file mode 100644 index f45b9d8d96..0000000000 --- a/library/common/2106.0.0/templates/lib/storage/_ixvolumes.tpl +++ /dev/null @@ -1,11 +0,0 @@ -{{/* -Retrieve host path from ix volumes based on dataset name -*/}} -{{- define "common.storage.retrieveHostPathFromiXVolume" -}} -{{- range $index, $hostPathConfiguration := $.ixVolumes }} -{{- $dsName := base $hostPathConfiguration.hostPath -}} -{{- if eq $.datasetName $dsName -}} -{{- $hostPathConfiguration.hostPath -}} -{{- end -}} -{{- end }} -{{- end -}}