2 # ============LICENSE_START===============================================
3 # Copyright (C) 2025 OpenInfra Foundation Europe. All rights reserved.
4 # ========================================================================
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
9 # http://www.apache.org/licenses/LICENSE-2.0
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
16 # ============LICENSE_END=================================================
23 name: {{ include "energy-saving.fullname" . }}
25 {{- include "energy-saving.labels" . | nindent 4 }}
27 {{- if not .Values.autoscaling.enabled }}
28 replicas: {{ .Values.replicaCount }}
32 {{- include "energy-saving.selectorLabels" . | nindent 6 }}
35 {{- with .Values.podAnnotations }}
37 {{- toYaml . | nindent 8 }}
40 {{- include "energy-saving.selectorLabels" . | nindent 8 }}
42 {{- with .Values.imagePullSecrets }}
44 {{- toYaml . | nindent 8 }}
46 serviceAccountName: {{ include "energy-saving.serviceAccountName" . }}
48 {{- toYaml .Values.podSecurityContext | nindent 8 }}
50 - name: {{ .Chart.Name }}
52 {{- toYaml .Values.securityContext | nindent 12 }}
53 image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
54 imagePullPolicy: {{ .Values.image.pullPolicy }}
57 containerPort: {{ .Values.service.port }}
60 {{- toYaml .Values.resources | nindent 12 }}
63 value: {{ .Values.environment.appId | quote }}
64 - name: SME_DISCOVERY_ENDPOINT
65 value: {{ .Values.environment.smeDiscoveryEndpoint | quote }}
67 - mountPath: /app/config.json
71 {{- if .Values.appStartup.command }}
72 {{- toYaml .Values.appStartup.command | nindent 12 }}
75 {{- if .Values.appStartup.args }}
76 {{- toYaml .Values.appStartup.args | nindent 12 }}
78 {{- with .Values.nodeSelector }}
80 {{- toYaml . | nindent 8 }}
82 {{- with .Values.affinity }}
84 {{- toYaml . | nindent 8 }}
86 {{- with .Values.tolerations }}
88 {{- toYaml . | nindent 8 }}
93 name: {{ include "energy-saving.name" . }}-configmap