3 # ============LICENSE_START=======================================================
4 # Copyright (C) 2022 Nordix Foundation.
5 # ================================================================================
6 # Licensed under the Apache License, Version 2.0 (the "License");
7 # you may not use this file except in compliance with the License.
8 # You may obtain a copy of the License at
10 # http://www.apache.org/licenses/LICENSE-2.0
12 # Unless required by applicable law or agreed to in writing, software
13 # distributed under the License is distributed on an "AS IS" BASIS,
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 # See the License for the specific language governing permissions and
16 # limitations under the License.
18 # SPDX-License-Identifier: Apache-2.0
19 # ============LICENSE_END=========================================================
25 name: {{ include "rapp-invoker.fullname" . }}
27 {{- include "rapp-invoker.labels" . | nindent 4 }}
29 {{- if not .Values.autoscaling.enabled }}
30 replicas: {{ .Values.replicaCount }}
34 {{- include "rapp-invoker.selectorLabels" . | nindent 6 }}
37 {{- with .Values.podAnnotations }}
39 {{- toYaml . | nindent 8 }}
42 {{- include "rapp-invoker.selectorLabels" . | nindent 8 }}
44 {{- with .Values.imagePullSecrets }}
46 {{- toYaml . | nindent 8 }}
48 serviceAccountName: {{ include "rapp-invoker.serviceAccountName" . }}
50 {{- toYaml .Values.podSecurityContext | nindent 8 }}
52 - name: {{ .Chart.Name }}
54 {{- toYaml .Values.securityContext | nindent 12 }}
55 image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
56 imagePullPolicy: {{ .Values.image.pullPolicy }}
57 command: ["/app/rapps-rapp-invoker"]
59 "-securityEnabled", "{{ .Values.rapp.securityEnabled }}",
60 "-role", "{{ with index .Values.rapp.roles 0 }}{{ .role }}{{ end }}",
61 "-rapp", "{{ with index .Values.rapp.apps 0 }}{{ .prefix }}{{ end }}",
62 "-methods", "{{- range .Values.rapp.apps }}{{ join "," .methods }}{{- end }}"
72 initialDelaySeconds: 5
76 command: ["stat", "init.txt"]
78 {{- toYaml .Values.resources | nindent 12 }}
79 {{- with .Values.nodeSelector }}
81 {{- toYaml . | nindent 8 }}
83 {{- with .Values.affinity }}
85 {{- toYaml . | nindent 8 }}
87 {{- with .Values.tolerations }}
89 {{- toYaml . | nindent 8 }}