add common version

This commit is contained in:
Stavros kois
2023-01-30 15:05:48 +02:00
parent a181948637
commit 31b8556bc7
6 changed files with 13 additions and 9 deletions
@@ -1,16 +1,16 @@
{{/* Contains functions for generating names */}}
{{/* Returns the name of the Chart */}}
{{- define "ix.common.lib.chart.names.name" -}}
{{- define "ix.v1.common.lib.chart.names.name" -}}
{{- .Chart.Name | lower | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{/* Returns the fullname of the Chart */}}
{{- define "ix.common.lib.chart.names.fullname" -}}
{{- define "ix.v1.common.lib.chart.names.fullname" -}}
{{- $name := include "ix.common.lib.chart.names.name" . -}}
{{- $name := include "ix.v1.common.lib.chart.names.name" . -}}
{{- if contains $name .Release.Name -}}
{{- $name = .Release.Name -}}
@@ -12,7 +12,7 @@
{{/* Create a copy of the configmap */}}
{{- $objectData := (mustDeepCopy $configmap) -}}
{{- $objectName := (printf "%s-%s" (include "ix.common.lib.chart.names.fullname" $) $name) -}}
{{- $objectName := (printf "%s-%s" (include "ix.v1.common.lib.chart.names.fullname" $) $name) -}}
{{/* Perform validations */}}
{{- include "ix.v1.common.lib.chart.names.validation" (dict "name" $objectName) -}}
{{- include "ix.v1.common.lib.configmap.validation" (dict "objectData" $objectData) -}}
@@ -16,9 +16,9 @@
{{- $objectData := (mustDeepCopy $controller) -}}
{{/* Generate the name of the controller */}}
{{- $objectName := include "ix.common.lib.chart.names.fullname" $ -}}
{{- $objectName := include "ix.v1.common.lib.chart.names.fullname" $ -}}
{{- if not $objectData.primary -}}
{{- $objectName = printf "%s-%s" (include "ix.common.lib.chart.names.fullname" $) $name -}}
{{- $objectName = printf "%s-%s" (include "ix.v1.common.lib.chart.names.fullname" $) $name -}}
{{- end -}}
{{/* Perform validations */}}
@@ -12,7 +12,7 @@
{{/* Create a copy of the configmap */}}
{{- $objectData := (mustDeepCopy $imgPullSecret) -}}
{{- $objectName := (printf "%s-%s" (include "ix.common.lib.chart.names.fullname" $) $name) -}}
{{- $objectName := (printf "%s-%s" (include "ix.v1.common.lib.chart.names.fullname" $) $name) -}}
{{/* Perform validations */}}
{{- include "ix.v1.common.lib.chart.names.validation" (dict "name" $objectName) -}}
{{- include "ix.v1.common.lib.imagePullSecret.validation" (dict "objectData" $objectData) -}}
@@ -12,7 +12,7 @@
{{/* Create a copy of the secret */}}
{{- $objectData := (mustDeepCopy $secret) -}}
{{- $objectName := (printf "%s-%s" (include "ix.common.lib.chart.names.fullname" $) $name) -}}
{{- $objectName := (printf "%s-%s" (include "ix.v1.common.lib.chart.names.fullname" $) $name) -}}
{{/* Perform validations */}}
{{- include "ix.v1.common.lib.chart.names.validation" (dict "name" $objectName) -}}
{{- include "ix.v1.common.lib.secret.validation" (dict "objectData" $objectData) -}}
+5 -1
View File
@@ -375,7 +375,7 @@ controllers:
# -- Primary controller
primary: true
# -- Controller type
type: CronJob
type: Deployment
# -- Controller labels
labels: {}
# -- Controller annotations
@@ -426,6 +426,10 @@ controllers:
# -- Pod Spec
podSpec:
# -- Pod labels
labels: {}
# -- Pod annotations
annotations: {}
# -- hostNetwork
hostNetwork: false
# -- enableServiceLinks