From 4a1d2a531b46374543d2a4e1aaa93f2e68d021f3 Mon Sep 17 00:00:00 2001 From: Stavros kois Date: Thu, 2 Feb 2023 19:51:44 +0200 Subject: [PATCH] append short name, for future use --- library/common/1.0.0/templates/spawner/_configmap.tpl | 2 ++ library/common/1.0.0/templates/spawner/_imagePullSecret.tpl | 1 + library/common/1.0.0/templates/spawner/_secret.tpl | 2 ++ 3 files changed, 5 insertions(+) diff --git a/library/common/1.0.0/templates/spawner/_configmap.tpl b/library/common/1.0.0/templates/spawner/_configmap.tpl index 3ee521b798..96635f10f6 100644 --- a/library/common/1.0.0/templates/spawner/_configmap.tpl +++ b/library/common/1.0.0/templates/spawner/_configmap.tpl @@ -19,6 +19,8 @@ {{/* Set the name of the configmap */}} {{- $_ := set $objectData "name" $objectName -}} + {{- $_ := set $objectData "shortName" $name -}} + {{/* Call class to create the object */}} {{- include "ix.v1.common.class.configmap" (dict "rootCtx" $ "objectData" $objectData) -}} diff --git a/library/common/1.0.0/templates/spawner/_imagePullSecret.tpl b/library/common/1.0.0/templates/spawner/_imagePullSecret.tpl index 95c43f0865..e9d3c78558 100644 --- a/library/common/1.0.0/templates/spawner/_imagePullSecret.tpl +++ b/library/common/1.0.0/templates/spawner/_imagePullSecret.tpl @@ -27,6 +27,7 @@ {{/* Set the name of the image pull secret */}} {{- $_ := set $objectData "name" $objectName -}} + {{- $_ := set $objectData "shortName" $name -}} {{/* Call class to create the object */}} {{- include "ix.v1.common.class.secret" (dict "rootCtx" $ "objectData" $objectData) -}} diff --git a/library/common/1.0.0/templates/spawner/_secret.tpl b/library/common/1.0.0/templates/spawner/_secret.tpl index b1cfdfc0c6..9e01f46f4a 100644 --- a/library/common/1.0.0/templates/spawner/_secret.tpl +++ b/library/common/1.0.0/templates/spawner/_secret.tpl @@ -19,6 +19,8 @@ {{/* Set the name of the secret */}} {{- $_ := set $objectData "name" $objectName -}} + {{- $_ := set $objectData "shortName" $name -}} + {{/* Call class to create the object */}} {{- include "ix.v1.common.class.secret" (dict "rootCtx" $ "objectData" $objectData) -}}