[Aether-1204] - Enhance the Dbuf helm chart
- Support two options for IP assigment
- Remove hardcoded service protocol and port
Change-Id: I899df50a01b4a48fccea396349c86cdb9d07c1f7
diff --git a/apps/dbuf/templates/networks.yaml b/apps/dbuf/templates/networks.yaml
index 0ab4521..07eb55b 100644
--- a/apps/dbuf/templates/networks.yaml
+++ b/apps/dbuf/templates/networks.yaml
@@ -15,11 +15,16 @@
"type": "sriov",
"name": "sriov-network",
"ipam": {
+ {{- if eq .Values.network.ipam "host-local" }}
"type": "host-local",
- "subnet": "10.56.217.0/24",
+ "subnet": "{{ .Values.network.static.subnets }}",
"routes": [{
"dst": "0.0.0.0/0"
}],
- "gateway": "10.56.217.1"
+ "gateway": "{{ .Values.network.static.gateway }}"
+ {{- else if eq .Values.network.ipam "dhcp" }}
+ "type": "dhcp"
+
+ {{- end }}
}
-}'
+}'
\ No newline at end of file