-# Copyright (C) 2021 Wind River Systems, Inc.
+# Copyright (C) 2021-2023 Wind River Systems, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
metadata:
labels:
app: o2api
+ {{- with .Values.podLabels }}
+ {{- toYaml . | nindent 8 }}
+ {{- end }}
+ annotations:
+ {{- with .Values.podAnnotations }}
+ {{- toYaml . | nindent 8 }}
+ {{- end }}
spec:
serviceAccountName: {{ .Values.o2ims.serviceaccountname }}
{{- if .Values.imagePullSecrets }}
volumeMounts:
- name: scripts
mountPath: /opt
+ {{- if .Values.db.persistence }}
- name: db-pv
mountPath: /var/lib/postgresql/data
+ {{- end }}
- name: redis
image: "{{ .Values.o2ims.images.tags.redis }}"
ports:
value: "1"
- name: REDIS_HOST
value: localhost
+ {{- if default false .Values.o2ims.useHostCert }}
+ - name: REQUESTS_CA_BUNDLE
+ value: /etc/ssl/custom-cert.pem
+ {{- end }}
+ - name: CGTS_INSECURE_SSL
+ value: {{ ternary "1" "0" (default false .Values.o2ims.cgtsInsecureSSL) | quote }}
volumeMounts:
- name: scripts
mountPath: /opt
mountPath: /configs/o2app.conf
subPath: config.json
readOnly: true
+ {{- if default false .Values.o2ims.useHostCert }}
+ - name: ca-certs
+ mountPath: /etc/ssl/custom-cert.pem
+ readOnly: true
+ {{- end }}
- name: o2api
image: "{{ .Values.o2ims.images.tags.o2service }}"
ports:
mountPath: /configs/server.key
subPath: config.json
readOnly: true
+ - name: smocacrt
+ mountPath: /configs/smoca.crt
+ subPath: config.json
{{- if .Values.o2dms.helm_cli_enable }}
- name: helmcli
image: "{{ .Values.o2ims.images.tags.o2service }}"
- configMap:
name: {{ .Chart.Name }}-smocacrt
name: smocacrt
+ {{- if .Values.db.persistence }}
- name: db-pv
persistentVolumeClaim:
claimName: {{ .Chart.Name }}-db-pv
+ {{- end }}
+ {{- if default false .Values.o2ims.useHostCert }}
+ - name: ca-certs
+ hostPath:
+ path: {{ .Values.o2ims.hostCertPath | quote }}
+ type: File
+ {{- end }}
---