mirror of
https://github.com/truenas/charts.git
synced 2024-04-21 15:21:45 +00:00
add common version
This commit is contained in:
@@ -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) -}}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user