2022-11-10 15:04:19 +00:00
|
|
|
{{/* Make sure all variables are set properly */}}
|
2023-12-07 14:33:49 +00:00
|
|
|
{{- include "tc.v1.common.loader.init" . }}
|
2022-11-10 15:04:19 +00:00
|
|
|
|
|
|
|
{{- include "netbox.secret" . }}
|
|
|
|
|
|
|
|
{{- $_ := set .Values.additionalContainers "worker" (include "netbox.worker" . | fromYaml) -}}
|
|
|
|
{{- $_ := set .Values.additionalContainers "housekeeper" (include "netbox.housekeeper" . | fromYaml) -}}
|
|
|
|
|
|
|
|
{{- if .Values.metrics.enabled -}}
|
|
|
|
{{- $_ := set .Values.podAnnotations "prometheus.io/scrape" "true" -}}
|
|
|
|
{{- $_ := set .Values.podAnnotations "prometheus.io/path" "/metrics" -}}
|
|
|
|
{{- $_ := set .Values.podAnnotations "prometheus.io/port" (.Values.service.main.ports.main.targetPort | toString) -}}
|
|
|
|
{{- end -}}
|
|
|
|
|
|
|
|
{{/* Render the templates */}}
|
2023-12-07 14:33:49 +00:00
|
|
|
{{ include "tc.v1.common.loader.apply" . }}
|