16 lines
589 B
Smarty
16 lines
589 B
Smarty
{{/*
|
|
Template to render code-server addon
|
|
It will include / inject the required templates based on the given values.
|
|
*/}}
|
|
{{- define "tc.v1.common.addon.netshoot" -}}
|
|
{{- $targetSelector := "main" -}}
|
|
{{- if .Values.addons.netshoot.enabled -}}
|
|
{{/* Append the code-server container to the workloads */}}
|
|
{{- $container := include "tc.v1.common.addon.netshoot.container" . | fromYaml -}}
|
|
{{- if $container -}}
|
|
{{- $workload := get $.Values.workload $targetSelector -}}
|
|
{{- $_ := set $workload.podSpec.containers "netshoot" $container -}}
|
|
{{- end -}}
|
|
{{- end -}}
|
|
{{- end -}}
|