blob: 72b5bbb8f53e986a29dc944db755af14a6675798 [file] [log] [blame]
Jeremy Ronquillo223db002020-06-05 10:28:22 -07001{{/*
Jeremy Ronquilloec2d3e42020-06-05 11:33:39 -07002# Copyright 2019-present Open Networking Foundation
Jeremy Ronquillo223db002020-06-05 10:28:22 -07003
Jeremy Ronquillo6046ce32020-06-18 11:06:29 -07004# SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0
Jeremy Ronquillo223db002020-06-05 10:28:22 -07005
6Default values for mcord-vepc-helm.
7This is a YAML-formatted file.
8Declare variables to be passed into your templates.
9*/}}
10
11{{- $hssJson := index .Values.config.hss.cfgFiles "hss.json" }}
12{{- $hssJsonCommon := index $hssJson "common" }}
13{{- $hssJsonHss := index $hssJson "hss" }}
14
15{{- if not (hasKey $hssJsonCommon "originhost") -}}
16{{- $_ := tuple "hss" "identity" . | include "omec-control-plane.diameter_endpoint" | set $hssJsonCommon "originhost" -}}
17{{- end }}
18{{- if not (hasKey $hssJsonCommon "originrealm") -}}
19{{- $_ := tuple "hss" "realm" . | include "omec-control-plane.diameter_endpoint" | set $hssJsonCommon "originrealm" -}}
20{{- end }}
21{{- if not (hasKey $hssJsonHss "casssrv") -}}
22{{- $_ := .Values.cassandra.fullnameOverride | set $hssJsonHss "casssrv" -}}
23{{- end }}
24---
25apiVersion: v1
26kind: ConfigMap
27metadata:
28 name: hss
29 labels:
30{{ tuple "hss" . | include "omec-control-plane.metadata_labels" | indent 4 }}
31data:
32 acl.conf: |
33 {{- if hasKey .Values.config.hss.acl "oldTls" }}
34 ALLOW_OLD_TLS {{ .Values.config.hss.acl.oldTls }}
35 {{- end }}
36 {{- if hasKey .Values.config.hss.acl "ipSec" }}
37 ALLOW_IPSEC {{ .Values.config.hss.acl.ipSec }}
38 {{- end }}
39 hss.conf: |
40 Identity = {{ tuple "hss" "identity" . | include "omec-control-plane.diameter_endpoint" | quote }};
41 Realm = {{ tuple "hss" "realm" . | include "omec-control-plane.diameter_endpoint" | quote }};
42 TLS_Cred = "/opt/c3po/hss/conf/{{ tuple "hss" "host" . | include "omec-control-plane.diameter_endpoint" }}.cert.pem",
43 "/opt/c3po/hss/conf/{{ tuple "hss" "host" . | include "omec-control-plane.diameter_endpoint" }}.key.pem";
44 TLS_CA = "/opt/c3po/hss/conf/cacert.pem";
45 No_SCTP;
46 Prefer_TCP;
47 No_IPv6;
48 SCTP_streams = 3;
49 NoRelay;
50 AppServThreads = 4;
51 Port = 3868;
52 SecPort = 5868;
53 LoadExtension = "/usr/local/lib/freeDiameter/acl_wl.fdx" : "/opt/c3po/hss/conf/acl.conf";
54 LoadExtension = "/usr/local/lib/freeDiameter/dict_3gpp2_avps.fdx";
55 LoadExtension = "/usr/local/lib/freeDiameter/dict_draftload_avps.fdx";
56 LoadExtension = "/usr/local/lib/freeDiameter/dict_etsi283034_avps.fdx";
57 LoadExtension = "/usr/local/lib/freeDiameter/dict_rfc4004_avps.fdx";
58 LoadExtension = "/usr/local/lib/freeDiameter/dict_rfc4006bis_avps.fdx";
59 LoadExtension = "/usr/local/lib/freeDiameter/dict_rfc4072_avps.fdx";
60 LoadExtension = "/usr/local/lib/freeDiameter/dict_rfc4590_avps.fdx";
61 LoadExtension = "/usr/local/lib/freeDiameter/dict_rfc5447_avps.fdx";
62 LoadExtension = "/usr/local/lib/freeDiameter/dict_rfc5580_avps.fdx";
63 LoadExtension = "/usr/local/lib/freeDiameter/dict_rfc5777_avps.fdx";
64 LoadExtension = "/usr/local/lib/freeDiameter/dict_rfc5778_avps.fdx";
65 LoadExtension = "/usr/local/lib/freeDiameter/dict_rfc6734_avps.fdx";
66 LoadExtension = "/usr/local/lib/freeDiameter/dict_rfc6942_avps.fdx";
67 LoadExtension = "/usr/local/lib/freeDiameter/dict_rfc7155_avps.fdx";
68 LoadExtension = "/usr/local/lib/freeDiameter/dict_rfc7683_avps.fdx";
69 LoadExtension = "/usr/local/lib/freeDiameter/dict_rfc7944_avps.fdx";
70 LoadExtension = "/usr/local/lib/freeDiameter/dict_ts29061_avps.fdx";
71 LoadExtension = "/usr/local/lib/freeDiameter/dict_ts29128_avps.fdx";
72 LoadExtension = "/usr/local/lib/freeDiameter/dict_ts29154_avps.fdx";
73 LoadExtension = "/usr/local/lib/freeDiameter/dict_ts29173_avps.fdx";
74 LoadExtension = "/usr/local/lib/freeDiameter/dict_ts29212_avps.fdx";
75 LoadExtension = "/usr/local/lib/freeDiameter/dict_ts29214_avps.fdx";
76 LoadExtension = "/usr/local/lib/freeDiameter/dict_ts29215_avps.fdx";
77 LoadExtension = "/usr/local/lib/freeDiameter/dict_ts29217_avps.fdx";
78 LoadExtension = "/usr/local/lib/freeDiameter/dict_ts29229_avps.fdx";
79 LoadExtension = "/usr/local/lib/freeDiameter/dict_ts29272_avps.fdx";
80 LoadExtension = "/usr/local/lib/freeDiameter/dict_ts29273_avps.fdx";
81 LoadExtension = "/usr/local/lib/freeDiameter/dict_ts29329_avps.fdx";
82 LoadExtension = "/usr/local/lib/freeDiameter/dict_ts29336_avps.fdx";
83 LoadExtension = "/usr/local/lib/freeDiameter/dict_ts29337_avps.fdx";
84 LoadExtension = "/usr/local/lib/freeDiameter/dict_ts29338_avps.fdx";
85 LoadExtension = "/usr/local/lib/freeDiameter/dict_ts29343_avps.fdx";
86 LoadExtension = "/usr/local/lib/freeDiameter/dict_ts29344_avps.fdx";
87 LoadExtension = "/usr/local/lib/freeDiameter/dict_ts29345_avps.fdx";
88 LoadExtension = "/usr/local/lib/freeDiameter/dict_ts29368_avps.fdx";
89 LoadExtension = "/usr/local/lib/freeDiameter/dict_ts29468_avps.fdx";
90 LoadExtension = "/usr/local/lib/freeDiameter/dict_ts32299_avps.fdx";
91 LoadExtension = "/usr/local/lib/freeDiameter/dict_S6as6d.fdx";
92 LoadExtension = "/usr/local/lib/freeDiameter/dict_S6t.fdx";
93 LoadExtension = "/usr/local/lib/freeDiameter/dict_S6c.fdx";
94 hss-run.sh: |
95{{ tuple "bin/_hss-run.sh.tpl" . | include "omec-control-plane.template" | indent 4 }}
96 hss-bootstrap.sh: |
97{{ tuple "bin/_hss-bootstrap.sh.tpl" . | include "omec-control-plane.template" | indent 4 }}
98{{- range $key, $value := .Values.config.hss.cfgFiles }}
99 {{ $key }}: {{ toJson $value | quote }}
100{{- end }}