Compare commits

...

8 Commits

Author SHA1 Message Date
TIP Automation User
61cfa9391f Chg: update image tag in helm values to v2.5.2 2022-07-26 10:29:58 +00:00
Dmitry Dunaev
39fbae1304 [WIFI-1998] Add: gracefull ingress deprecationush
Signed-off-by: Dmitry Dunaev <dmitry@opsfleet.com>
2022-07-21 17:48:14 +03:00
Johann Hoffmann
f5677695d8 Update image tag in helm values to v2.5.1
Signed-off-by: Johann Hoffmann <johann.hoffmann@mailbox.org>
2022-04-29 19:05:44 +02:00
Johann Hoffmann
e036419975 Update image tag in helm values to v2.5.1-RC1
Signed-off-by: Johann Hoffmann <johann.hoffmann@mailbox.org>
2022-04-29 18:08:12 +02:00
Stephane Bourque
df72853118 Merge pull request #88 from Telecominfraproject/WIFI-7818-2.5.1-hotfix
Hotfix for BSSID -> Station ID bug
2022-04-29 08:39:54 -07:00
Charles
f55e8cfe7e Hotfix for BSSID -> Station ID bug 2022-04-29 15:35:16 +01:00
TIP Automation User
9ae67c751c Chg: update image tag in helm values to v2.5.0 2022-03-30 13:48:24 +00:00
TIP Automation User
9e23b51dd0 Chg: update image tag in helm values to v2.5.0-RC1 2022-02-11 16:02:49 +00:00
5 changed files with 33 additions and 8 deletions

View File

@@ -30,3 +30,13 @@ Create chart name and version as used by the chart label.
{{- define "owgwui.chart" -}} {{- define "owgwui.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}} {{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}}
{{- end -}} {{- end -}}
{{- define "owgwui.ingress.apiVersion" -}}
{{- if .Capabilities.APIVersions.Has "networking.k8s.io/v1" -}}
{{- print "networking.k8s.io/v1" -}}
{{- else if .Capabilities.APIVersions.Has "networking.k8s.io/v1beta1" -}}
{{- print "networking.k8s.io/v1beta1" -}}
{{- else -}}
{{- print "extensions/v1beta1" -}}
{{- end -}}
{{- end -}}

View File

@@ -2,7 +2,7 @@
{{- range $ingress, $ingressValue := .Values.ingresses }} {{- range $ingress, $ingressValue := .Values.ingresses }}
{{- if $ingressValue.enabled }} {{- if $ingressValue.enabled }}
--- ---
apiVersion: extensions/v1beta1 apiVersion: {{ include "owgwui.ingress.apiVersion" $root }}
kind: Ingress kind: Ingress
metadata: metadata:
name: {{ include "owgwui.fullname" $root }}-{{ $ingress }} name: {{ include "owgwui.fullname" $root }}-{{ $ingress }}
@@ -36,9 +36,23 @@ spec:
paths: paths:
{{- range $ingressValue.paths }} {{- range $ingressValue.paths }}
- path: {{ .path }} - path: {{ .path }}
{{- if $root.Capabilities.APIVersions.Has "networking.k8s.io/v1" }}
pathType: {{ .pathType | default "ImplementationSpecific" }}
{{- end }}
backend: backend:
{{- if $root.Capabilities.APIVersions.Has "networking.k8s.io/v1" }}
service:
name: {{ include "owgwui.fullname" $root }}-{{ .serviceName }}
port:
{{- if kindIs "string" .servicePort }}
name: {{ .servicePort }}
{{- else }}
number: {{ .servicePort }}
{{- end }}
{{- else }}
serviceName: {{ include "owgwui.fullname" $root }}-{{ .serviceName }} serviceName: {{ include "owgwui.fullname" $root }}-{{ .serviceName }}
servicePort: {{ .servicePort }} servicePort: {{ .servicePort }}
{{- end }}
{{- end }} {{- end }}
{{- end }} {{- end }}

View File

@@ -8,7 +8,7 @@ fullnameOverride: ""
images: images:
owgwui: owgwui:
repository: tip-tip-wlan-cloud-ucentral.jfrog.io/owgw-ui repository: tip-tip-wlan-cloud-ucentral.jfrog.io/owgw-ui
tag: main tag: v2.5.2
pullPolicy: Always pullPolicy: Always
services: services:
@@ -49,6 +49,7 @@ ingresses:
- chart-example.local - chart-example.local
paths: paths:
- path: / - path: /
pathType: ImplementationSpecific
serviceName: owgwui serviceName: owgwui
servicePort: http servicePort: http

View File

@@ -23,7 +23,7 @@ const WifiAnalysisTable = ({ t, data, loading }) => {
}; };
const columns = [ const columns = [
{ key: 'radio', label: '#', _style: { width: '1%' } }, { key: 'radio', label: '#', _style: { width: '1%' } },
{ key: 'bssid', label: 'BSSID', _style: { width: '1%' } }, { key: 'station', label: 'Station ID', _style: { width: '1%' } },
{ key: 'vendor', label: t('wifi_analysis.vendor'), _style: { width: '15%' }, sorter: false }, { key: 'vendor', label: t('wifi_analysis.vendor'), _style: { width: '15%' }, sorter: false },
{ key: 'mode', label: t('wifi_analysis.mode'), _style: { width: '1%' }, sorter: false }, { key: 'mode', label: t('wifi_analysis.mode'), _style: { width: '1%' }, sorter: false },
{ key: 'ssid', label: 'SSID', _style: { width: '15%' } }, { key: 'ssid', label: 'SSID', _style: { width: '15%' } },
@@ -84,12 +84,12 @@ const WifiAnalysisTable = ({ t, data, loading }) => {
sorter sorter
sorterValue={{ column: 'radio', asc: true }} sorterValue={{ column: 'radio', asc: true }}
scopedSlots={{ scopedSlots={{
bssid: (item) => ( station: (item) => (
<td <td
className="text-center align-middle" className="text-center align-middle"
style={{ fontFamily: 'monospace', fontSize: '0.96rem' }} style={{ fontFamily: 'monospace', fontSize: '0.96rem' }}
> >
{item.bssid} {item.station}
</td> </td>
), ),
radio: (item) => <td className="text-center align-middle">{item.radio.radio}</td>, radio: (item) => <td className="text-center align-middle">{item.radio.radio}</td>,

View File

@@ -147,12 +147,12 @@ const WifiAnalysis = () => {
if ('associations' in ssid) { if ('associations' in ssid) {
for (const association of ssid.associations) { for (const association of ssid.associations) {
bssidObj[association.bssid] = 0; bssidObj[association.station] = 0;
const data = { const data = {
radio: radioInfo, radio: radioInfo,
...extractIp(stat.data, association.bssid), ...extractIp(stat.data, association.bssid),
bssid: association.bssid, station: association.station,
ssid: ssid.ssid, ssid: ssid.ssid,
rssi: association.rssi ? parseDbm(association.rssi) : '-', rssi: association.rssi ? parseDbm(association.rssi) : '-',
mode: ssid.mode, mode: ssid.mode,
@@ -181,7 +181,7 @@ const WifiAnalysis = () => {
for (let i = 0; i < newParsedAssociationStats.length; i += 1) { for (let i = 0; i < newParsedAssociationStats.length; i += 1) {
for (let y = 0; y < newParsedAssociationStats[i].length; y += 1) { for (let y = 0; y < newParsedAssociationStats[i].length; y += 1) {
newParsedAssociationStats[i][y].vendor = newParsedAssociationStats[i][y].vendor =
vendors[newParsedAssociationStats[i][y].bssid] ?? '-'; vendors[newParsedAssociationStats[i][y].station] ?? '-';
} }
} }