formatting and typos

This commit is contained in:
Stavros kois
2023-12-06 15:58:40 +02:00
parent febed69c4f
commit 041156bb5f
4 changed files with 5 additions and 5 deletions

View File

@@ -22,7 +22,7 @@ apiVersion: scheduling.k8s.io/v1
kind: PriorityClass
metadata:
name: {{ $objectData.name }}
namespace: {{ include "tc.v1.common.lib.metadata.namespace" (dict "rootCtx" $rootCtx "objectData" $objectData "caller" "priorityclass") }}
namespace: {{ include "tc.v1.common.lib.metadata.namespace" (dict "rootCtx" $rootCtx "objectData" $objectData "caller" "Priority Class") }}
{{- $labels := (mustMerge ($objectData.labels | default dict) (include "tc.v1.common.lib.metadata.allLabels" $rootCtx | fromYaml)) -}}
{{- with (include "tc.v1.common.lib.metadata.render" (dict "rootCtx" $rootCtx "labels" $labels) | trim) }}
labels:

View File

@@ -32,8 +32,8 @@
{{- end -}}
{{- if $result -}}
{{- $result -}}
{{- $result -}}
{{- else -}}
{{- fail "No primary and enabled service found" -}}
{{- fail "No primary and enabled service found" -}}
{{- end -}}
{{- end -}}

View File

@@ -1,4 +1,4 @@
{{/* priorityclass Spawwner */}}
{{/* Priority Class Spawner */}}
{{/* Call this template:
{{ include "tc.v1.common.spawner.priorityclass" $ -}}
*/}}

View File

@@ -43,7 +43,7 @@
{{- include "tc.v1.common.lib.metadata.validation" (dict "objectData" $objectData "caller" "Service") -}}
{{- include "tc.v1.common.lib.service.validation" (dict "rootCtx" $ "objectData" $objectData) -}}
{{/* Set the name of the service account */}}
{{/* Set the name of the service */}}
{{- $_ := set $objectData "name" $objectName -}}
{{- $_ := set $objectData "shortName" $name -}}