Hyunsun Moon | ed24cac | 2019-08-26 20:52:20 -0500 | [diff] [blame] | 1 | {{/* |
| 2 | Copyright 2019-present Open Networking Foundation |
| 3 | |
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | you may not use this file except in compliance with the License. |
| 6 | You may obtain a copy of the License at |
| 7 | |
| 8 | http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | |
| 10 | Unless required by applicable law or agreed to in writing, software |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | See the License for the specific language governing permissions and |
| 14 | limitations under the License. |
| 15 | |
| 16 | Default values for mcord-vepc-helm. |
| 17 | This is a YAML-formatted file. |
| 18 | Declare variables to be passed into your templates. |
| 19 | */}} |
| 20 | |
| 21 | {{- $hssJson := index .Values.config.hss.cfgFiles "hss.json" }} |
| 22 | {{- $hssJsonCommon := index $hssJson "common" }} |
| 23 | {{- $hssJsonHss := index $hssJson "hss" }} |
| 24 | |
| 25 | {{- if not (hasKey $hssJsonCommon "originhost") -}} |
| 26 | {{- $_ := tuple "hss" "identity" . | include "omec-control-plane.endpoint_lookup" | set $hssJsonCommon "originhost" -}} |
| 27 | {{- end }} |
| 28 | {{- if not (hasKey $hssJsonCommon "originrealm") -}} |
| 29 | {{- $_ := tuple "hss" "realm" . | include "omec-control-plane.endpoint_lookup" | set $hssJsonCommon "originrealm" -}} |
| 30 | {{- end }} |
| 31 | {{- if not (hasKey $hssJsonHss "casssrv") -}} |
| 32 | {{- $_ := .Values.cassandra.fullnameOverride | set $hssJsonHss "casssrv" -}} |
| 33 | {{- end }} |
| 34 | --- |
| 35 | apiVersion: v1 |
| 36 | kind: ConfigMap |
| 37 | metadata: |
| 38 | name: hss |
| 39 | labels: |
| 40 | {{ tuple "hss" . | include "omec-control-plane.metadata_labels" | indent 4 }} |
| 41 | data: |
| 42 | acl.conf: | |
| 43 | {{- if hasKey .Values.config.hss.acl "oldTls" }} |
| 44 | ALLOW_OLD_TLS {{ .Values.config.hss.acl.oldTls }} |
| 45 | {{- end }} |
| 46 | {{- if hasKey .Values.config.hss.acl "ipSec" }} |
| 47 | ALLOW_IPSEC {{ .Values.config.hss.acl.ipSec }} |
| 48 | {{- end }} |
| 49 | hss.conf: | |
| 50 | Identity = {{ tuple "hss" "identity" . | include "omec-control-plane.endpoint_lookup" | quote }}; |
| 51 | Realm = {{ tuple "hss" "realm" . | include "omec-control-plane.endpoint_lookup" | quote }}; |
| 52 | TLS_Cred = "/opt/c3po/hss/conf/{{ tuple "hss" "host" . | include "omec-control-plane.endpoint_lookup" }}.cert.pem", |
| 53 | "/opt/c3po/hss/conf/{{ tuple "hss" "host" . | include "omec-control-plane.endpoint_lookup" }}.key.pem"; |
| 54 | TLS_CA = "/opt/c3po/hss/conf/cacert.pem"; |
| 55 | No_SCTP; |
| 56 | Prefer_TCP; |
| 57 | No_IPv6; |
| 58 | SCTP_streams = 3; |
| 59 | NoRelay; |
| 60 | AppServThreads = 4; |
| 61 | Port = 3868; |
| 62 | SecPort = 5868; |
| 63 | LoadExtension = "/usr/local/lib/freeDiameter/acl_wl.fdx" : "/opt/c3po/hss/conf/acl.conf"; |
| 64 | LoadExtension = "/usr/local/lib/freeDiameter/dict_3gpp2_avps.fdx"; |
| 65 | LoadExtension = "/usr/local/lib/freeDiameter/dict_draftload_avps.fdx"; |
| 66 | LoadExtension = "/usr/local/lib/freeDiameter/dict_etsi283034_avps.fdx"; |
| 67 | LoadExtension = "/usr/local/lib/freeDiameter/dict_rfc4004_avps.fdx"; |
| 68 | LoadExtension = "/usr/local/lib/freeDiameter/dict_rfc4006bis_avps.fdx"; |
| 69 | LoadExtension = "/usr/local/lib/freeDiameter/dict_rfc4072_avps.fdx"; |
| 70 | LoadExtension = "/usr/local/lib/freeDiameter/dict_rfc4590_avps.fdx"; |
| 71 | LoadExtension = "/usr/local/lib/freeDiameter/dict_rfc5447_avps.fdx"; |
| 72 | LoadExtension = "/usr/local/lib/freeDiameter/dict_rfc5580_avps.fdx"; |
| 73 | LoadExtension = "/usr/local/lib/freeDiameter/dict_rfc5777_avps.fdx"; |
| 74 | LoadExtension = "/usr/local/lib/freeDiameter/dict_rfc5778_avps.fdx"; |
| 75 | LoadExtension = "/usr/local/lib/freeDiameter/dict_rfc6734_avps.fdx"; |
| 76 | LoadExtension = "/usr/local/lib/freeDiameter/dict_rfc6942_avps.fdx"; |
| 77 | LoadExtension = "/usr/local/lib/freeDiameter/dict_rfc7155_avps.fdx"; |
| 78 | LoadExtension = "/usr/local/lib/freeDiameter/dict_rfc7683_avps.fdx"; |
| 79 | LoadExtension = "/usr/local/lib/freeDiameter/dict_rfc7944_avps.fdx"; |
| 80 | LoadExtension = "/usr/local/lib/freeDiameter/dict_ts29061_avps.fdx"; |
| 81 | LoadExtension = "/usr/local/lib/freeDiameter/dict_ts29128_avps.fdx"; |
| 82 | LoadExtension = "/usr/local/lib/freeDiameter/dict_ts29154_avps.fdx"; |
| 83 | LoadExtension = "/usr/local/lib/freeDiameter/dict_ts29173_avps.fdx"; |
| 84 | LoadExtension = "/usr/local/lib/freeDiameter/dict_ts29212_avps.fdx"; |
| 85 | LoadExtension = "/usr/local/lib/freeDiameter/dict_ts29214_avps.fdx"; |
| 86 | LoadExtension = "/usr/local/lib/freeDiameter/dict_ts29215_avps.fdx"; |
| 87 | LoadExtension = "/usr/local/lib/freeDiameter/dict_ts29217_avps.fdx"; |
| 88 | LoadExtension = "/usr/local/lib/freeDiameter/dict_ts29229_avps.fdx"; |
| 89 | LoadExtension = "/usr/local/lib/freeDiameter/dict_ts29272_avps.fdx"; |
| 90 | LoadExtension = "/usr/local/lib/freeDiameter/dict_ts29273_avps.fdx"; |
| 91 | LoadExtension = "/usr/local/lib/freeDiameter/dict_ts29329_avps.fdx"; |
| 92 | LoadExtension = "/usr/local/lib/freeDiameter/dict_ts29336_avps.fdx"; |
| 93 | LoadExtension = "/usr/local/lib/freeDiameter/dict_ts29337_avps.fdx"; |
| 94 | LoadExtension = "/usr/local/lib/freeDiameter/dict_ts29338_avps.fdx"; |
| 95 | LoadExtension = "/usr/local/lib/freeDiameter/dict_ts29343_avps.fdx"; |
| 96 | LoadExtension = "/usr/local/lib/freeDiameter/dict_ts29344_avps.fdx"; |
| 97 | LoadExtension = "/usr/local/lib/freeDiameter/dict_ts29345_avps.fdx"; |
| 98 | LoadExtension = "/usr/local/lib/freeDiameter/dict_ts29368_avps.fdx"; |
| 99 | LoadExtension = "/usr/local/lib/freeDiameter/dict_ts29468_avps.fdx"; |
| 100 | LoadExtension = "/usr/local/lib/freeDiameter/dict_ts32299_avps.fdx"; |
| 101 | LoadExtension = "/usr/local/lib/freeDiameter/dict_S6as6d.fdx"; |
| 102 | LoadExtension = "/usr/local/lib/freeDiameter/dict_S6t.fdx"; |
| 103 | LoadExtension = "/usr/local/lib/freeDiameter/dict_S6c.fdx"; |
| 104 | hss-run.sh: | |
| 105 | {{ tuple "bin/_hss-run.sh.tpl" . | include "omec-control-plane.template" | indent 4 }} |
| 106 | hss-bootstrap.sh: | |
| 107 | {{ tuple "bin/_hss-bootstrap.sh.tpl" . | include "omec-control-plane.template" | indent 4 }} |
| 108 | {{- range $key, $value := .Values.config.hss.cfgFiles }} |
| 109 | {{ $key }}: {{ toJson $value | quote }} |
| 110 | {{- end }} |