Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI latest tests #309

Closed
wants to merge 39 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
805e725
Bump version
SimonMisencik Aug 21, 2023
4dee57c
Merge branch 'main' into ui-latest
SimonMisencik Aug 23, 2023
6e638e3
Update values
SimonMisencik Aug 23, 2023
b59a6c0
Update manifests
SimonMisencik Aug 31, 2023
027f73e
Update topology
SimonMisencik Aug 31, 2023
3fdf561
Create proxmox-values.yaml
SimonMisencik Sep 4, 2023
33aed1c
Update proxmox-values.yaml
SimonMisencik Sep 4, 2023
147ac06
Update proxmox-values.yaml
SimonMisencik Sep 4, 2023
b9087a4
Update values.yaml
SimonMisencik Sep 4, 2023
ec9a210
Revert "Update values.yaml"
SimonMisencik Sep 4, 2023
2c5c1e3
Update values.yaml
SimonMisencik Sep 4, 2023
34a0973
Update values.yaml
SimonMisencik Sep 4, 2023
b0d6364
Update proxmox-values.yaml
SimonMisencik Sep 4, 2023
33268b2
Update values.yaml
SimonMisencik Sep 4, 2023
044a8d1
Update proxmox-values.yaml
SimonMisencik Sep 4, 2023
2f0b6e4
Update values.yaml
SimonMisencik Sep 4, 2023
418b9b8
Update velues
SimonMisencik Sep 5, 2023
9147a36
Update grafana port
SimonMisencik Sep 5, 2023
cb5644c
enable topology-discovery
SimonMisencik Sep 5, 2023
d229f07
Update proxmox-values.yaml
SimonMisencik Sep 5, 2023
fe2d0de
Update values.yaml
SimonMisencik Sep 5, 2023
331f035
Update deployment.yaml
SimonMisencik Sep 5, 2023
6362495
Add option to specify storageClass
SimonMisencik Sep 5, 2023
9410e71
Update proxmox-values.yaml
SimonMisencik Sep 5, 2023
5b8bcf0
Update values.yaml
SimonMisencik Sep 7, 2023
419b0a8
Change schellar version
SimonMisencik Sep 7, 2023
c158fc8
Fix schellar service
SimonMisencik Sep 7, 2023
fbe052d
Fix scheduler
SimonMisencik Sep 7, 2023
bb43dca
fix ws
SimonMisencik Sep 7, 2023
05bd591
Update released components
Jozefiel Sep 8, 2023
0f7fe9b
latest version for debugging of RM
MarcoMruz Sep 20, 2023
e9e18e8
back to v2
MarcoMruz Sep 21, 2023
d02eb98
back to latest
MarcoMruz Sep 21, 2023
acfdbc6
Enable debug mode in resource manager
SimonMisencik Sep 21, 2023
2aea430
remove extra env
MarcoMruz Sep 21, 2023
9b00228
enable debug log
SimonMisencik Sep 21, 2023
5443e22
Add cli-shell port
SimonMisencik Oct 3, 2023
de58ce3
Update Chart.yaml
SimonMisencik Oct 3, 2023
7f6448c
Add tgz file
SimonMisencik Oct 19, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
*.tgz
# *.tgz
*.lock
**/temp/*
2 changes: 1 addition & 1 deletion charts/frinx-arango-config/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: frinx-arango-config
version: 3.0.0
version: 3.1.0
description: A Helm chart for Kubernetes deployment of the Arango CRD and ArangoDB configuration files
type: application
home: https://github.com/FRINXio/helm-charts
Expand Down
6 changes: 6 additions & 0 deletions charts/frinx-arango-config/templates/arangodb-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,15 @@ spec:
{{- toYaml .Values.arangodb_config.securityContext | nindent 6 }}
resources:
{{- toYaml .Values.arangodb_config.resources | nindent 6 }}
{{- if .Values.arangodb_config.storageClassName }}
storageClassName: {{ .Values.arangodb_config.storageClassName }}
{{- end }}
id:
securityContext:
{{- toYaml .Values.arangodb_config.securityContext | nindent 6 }}
resources:
{{- toYaml .Values.arangodb_config.resources | nindent 6 }}
{{- if .Values.arangodb_config.storageClassName }}
storageClassName: {{ .Values.arangodb_config.storageClassName }}
{{- end }}
{{ end }}
1 change: 1 addition & 0 deletions charts/frinx-arango-config/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ arangodb_config:
bearer: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJhcmFuZ29kYiIsInNlcnZlcl9pZCI6ImZvbyJ9.OxGlpYQYzOysECGkonaEP8d64UH1wQeo_XxeIqK8Vgg
rootSecretName: arangodb-root-password
rootSecretPassword: frinx
storageClassName:
resources: {}
# requests:
# cpu: 500m
Expand Down
2 changes: 1 addition & 1 deletion charts/frinx-frontend/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: frinx-frontend
description: A Helm chart for Kubernetes deployment of the Frinx UI
icon: https://avatars.githubusercontent.com/u/23452093?s=200&v=4
type: application
version: 3.1.1
version: 3.1.2
appVersion: "1.0.28"
maintainers:
- name: FRINX
Expand Down
2 changes: 1 addition & 1 deletion charts/frinx-frontend/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ env:
UNICONFIG_API_DOCS_URL: "/api/workflow/docs-uniconfig"
INVENTORY_ENABLED: true
INVENTORY_API_URL: "/api/inventory"
INVENTORY_WS_URL: "/api/inventory/uniconfig"
INVENTORY_WS_URL: "ws://10.19.0.5:8001/api/inventory"
RESOURCE_MANAGER_ENABLED: true
RESOURCE_MANAGER_API_URL: "/api/resource"
UNISTORE_API_URL: "/api/unistore"
Expand Down
30 changes: 18 additions & 12 deletions charts/frinx-machine/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,15 @@ maintainers:
dependencies:
- condition: krakend.enabled
name: krakend
repository: https://FRINXio.github.io/helm-charts
version: 2.9.1
# repository: https://FRINXio.github.io/helm-charts
repository: "file://../krakend"
version: 2.9.2

- condition: frinx-frontend.enabled
name: frinx-frontend
repository: https://FRINXio.github.io/helm-charts
version: 3.1.1
# repository: https://FRINXio.github.io/helm-charts
repository: "file://../frinx-frontend"
version: 3.1.2

- condition: postgresql.enabled
name: postgresql
Expand All @@ -29,13 +31,15 @@ dependencies:

- condition: workflow-manager.enabled
name: workflow-manager
repository: https://FRINXio.github.io/helm-charts
version: 2.0.0
# repository: https://FRINXio.github.io/helm-charts
repository: "file://../workflow-manager"
version: 3.0.0

- condition: inventory.enabled
name: inventory
repository: https://FRINXio.github.io/helm-charts
version: 4.0.0
# repository: https://FRINXio.github.io/helm-charts
repository: "file://../inventory"
version: 4.0.1

- condition: uniconfig-postgresql.enabled
name: postgresql
Expand All @@ -45,8 +49,9 @@ dependencies:

- condition: uniconfig.enabled
name: uniconfig
repository: https://FRINXio.github.io/helm-charts
version: 5.0.1
# repository: https://FRINXio.github.io/helm-charts
repository: "file://../uniconfig"
version: 5.1.0

- condition: demo-workflows.enabled
name: demo-workflows
Expand All @@ -65,8 +70,9 @@ dependencies:

- condition: frinx-arango-config.enabled
name: frinx-arango-config
repository: https://FRINXio.github.io/helm-charts
version: 3.0.0
# repository: https://FRINXio.github.io/helm-charts
repository: "file://../frinx-arango-config"
version: 3.1.0

- condition: topology-discovery.enabled
name: topology-discovery
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added charts/frinx-machine/charts/grafana-6.52.9.tgz
Binary file not shown.
Binary file added charts/frinx-machine/charts/influxdb2-2.1.0.tgz
Binary file not shown.
Binary file added charts/frinx-machine/charts/inventory-4.0.1.tgz
Binary file not shown.
Binary file added charts/frinx-machine/charts/krakend-2.9.2.tgz
Binary file not shown.
Binary file not shown.
Binary file added charts/frinx-machine/charts/loki-2.16.0.tgz
Binary file not shown.
Binary file not shown.
Binary file added charts/frinx-machine/charts/promtail-6.3.0.tgz
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added charts/frinx-machine/charts/telegraf-ds-1.1.1.tgz
Binary file not shown.
Binary file not shown.
Binary file added charts/frinx-machine/charts/uniconfig-5.0.1.tgz
Binary file not shown.
Binary file not shown.
6 changes: 3 additions & 3 deletions charts/frinx-machine/e2e-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ inventory:
memory: 500Mi
cpu: 500m
env:
TOPOLOGY_ENABLED: true
# TOPOLOGY_ENABLED: true

uniconfig-postgresql:
primary:
Expand Down Expand Up @@ -76,12 +76,12 @@ loki:
enabled: false

topology-discovery:
enabled: true
enabled: false
env:
IMPORT_ARANGO_DEMO_DATA: true

frinx-arango-config:
enabled: true
enabled: false
arangodb_config:
enabled: true
resources:
Expand Down
50 changes: 50 additions & 0 deletions charts/frinx-machine/proxmox-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
krakend:
service:
type: LoadBalancer

postgresql:
global:
storageClass: longhorn

uniconfig:
service:
type: LoadBalancer

uniconfig-postgresql:
global:
storageClass: longhorn

inventory:
env:
TOPOLOGY_ENABLED: true

topology-discovery:
enabled: true
env:
IMPORT_ARANGO_DEMO_DATA: true
IMPORT_DEVICE_INVENTORY_DATA: true

frinx-arango-config:
enabled: true
arangodb_config:
enabled: true
storageClassName: longhorn

demo-workflows:
enabled: true

sample-topology:
enabled: true

influxdb2:
persistence:
storageClass: longhorn

telegraf-ds:
rbac:
create: false

grafana:
service:
type: LoadBalancer
port: 3000
27 changes: 19 additions & 8 deletions charts/frinx-machine/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,19 @@ krakend:
image:
repository: "frinx/krakend"
tag: "1.0.6"
deployment:
env:
UNICONFIG_SHELL_ENABLED: true
UNICONFIG_SHELL_OAUTH_ENABLED: true
OAUTH2_AUTH_URL: true

frinx-frontend:
enabled: true
fullnameOverride: "frinx-frontend"
image:
repository: "frinx/frinx-frontend"
tag: "1.0.53"
pullPolicy: Always
tag: "2.0.0"
env:
AUTH_CLIENT_ID: "frinx"
DEVICE_TOPOLOGY_ENABLED: true
Expand All @@ -43,12 +49,16 @@ resource-manager:
fullnameOverride: "resource-manager"
image:
repository: "frinx/resource-manager"
tag: "1.0.10"
tag: "latest"
pullPolicy: Always
postgresql:
enabled: false
env:
PSQL_HOSTNAME: frinx-postgresql
RM_DB_CONNECTION_STRING: "postgres://postgresU:postgresP@frinx-postgresql:5432/postgres?sslmode=disable"
RM_LOG_LEVEL: debug
# extraEnv:
# DEBUG: true

workflow-manager:
enabled: true
Expand All @@ -61,7 +71,7 @@ workflow-manager:
tag: "2.1.5"
schellarImage:
repository: "frinx/schellar"
tag: "3.0.0"
tag: "4.0.0"
postgresql:
enabled: false
conductorEnv:
Expand All @@ -76,7 +86,8 @@ inventory:
fullnameOverride: "inventory"
image:
repository: "frinx/frinx-inventory-server"
tag: "1.9.3"
pullPolicy: Always
tag: "2.0.1"
postgresql:
enabled: false
env:
Expand All @@ -88,7 +99,7 @@ topology-discovery:
fullnameOverride: "topology-discovery"
image:
repository: "frinx/topology-discovery"
tag: "0.0.11"
tag: "1.0.0"

frinx-arango-config:
enabled: *device-discovery-enabled
Expand Down Expand Up @@ -126,7 +137,7 @@ uniconfig:
enabled: true
image:
repository: "frinx/uniconfig"
tag: "5.1.9"
tag: "5.1.11"
imagePullSecrets:
- name: regcred
postgresql:
Expand All @@ -141,9 +152,9 @@ uniconfig:
securityContext:
capabilities:
add:
- NET_BIND_SERVICE
- NET_BIND_SERVICE
drop:
- ALL
- ALL

demo-workflows:
enabled: false
Expand Down
2 changes: 1 addition & 1 deletion charts/inventory/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: inventory
version: 4.0.0
version: 4.0.1
description: A Helm chart for Kubernetes deployment of the Device Inventory
type: application
home: https://github.com/FRINXio/helm-charts
Expand Down
Binary file added charts/inventory/charts/postgresql-11.9.13.tgz
Binary file not shown.
8 changes: 8 additions & 0 deletions charts/inventory/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,16 @@ spec:
value: {{ .Values.env.TOPOLOGY_ENABLED | quote }}
- name: "TOPOLOGY_DISCOVERY_API_URL"
value: {{ .Values.env.TOPOLOGY_DISCOVERY_API_URL | quote }}
- name: "TOPOLOGY_DISCOVERY_GRAPHQL_API_URL"
value: {{ .Values.env.TOPOLOGY_DISCOVERY_GRAPHQL_API_URL | quote }}
- name: "SHELL_HOST"
value: {{ .Values.env.SHELL_HOST | quote }}
- name: "CONDUCTOR_API_URL"
value: {{ .Values.env.CONDUCTOR_API_URL | quote }}
- name: "SCHEDULER_API_URL"
value: {{ .Values.env.SCHEDULER_API_URL | quote }}
- name: "RESOURCE_MANAGER_API_URL"
value: {{ .Values.env.RESOURCE_MANAGER_API_URL | quote }}
{{- range $key, $val := .Values.extraEnv }}
- name: {{ $key | quote }}
value: {{ $val | quote }}
Expand Down
4 changes: 4 additions & 0 deletions charts/inventory/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,11 @@ env:
POSTGRES_PORT: 5432
TOPOLOGY_ENABLED: false
TOPOLOGY_DISCOVERY_API_URL: http://topology-discovery:5000/api/data
TOPOLOGY_DISCOVERY_GRAPHQL_API_URL: http://topology-discovery:5000/api/graphql
SHELL_HOST: uniconfig-controller
CONDUCTOR_API_URL: "http://workflow-proxy:8080/api"
SCHEDULER_API_URL: "http://workflow-proxy:3000/query"
RESOURCE_MANAGER_API_URL: "http://krakend:8080/api/resource"

extraEnv: []

Expand Down
2 changes: 1 addition & 1 deletion charts/krakend/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: krakend
description: FRINX KrakenD API Gateway for FRINX-machine
icon: https://avatars.githubusercontent.com/u/23452093?s=200&v=4
type: application
version: 2.9.1
version: 2.9.2
appVersion: "1.0.5"
maintainers:
- name: FRINX
Expand Down
22 changes: 22 additions & 0 deletions charts/krakend/config/krakend.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,28 @@
"folder": "/usr/local/lib/krakend/"
},
"extra_config": {
{{ $uc_shell := env "UNICONFIG_SHELL_ENABLED" }}
{{ if eq $uc_shell "true" }}
"contribute/websocketproxy": {
"port": "8001",
"websockets": [
{
{{ $uc_shell := env "UNICONFIG_SHELL_OAUTH_ENABLED" }}
{{ if eq $uc_shell "true" }}
{{ $uc_shell_oauth_url := env "OAUTH2_AUTH_URL" }}
{{ $uc_shell_bearer := env "AZURE_KRAKEND_PLUGIN_JWT_VALUE_PREFIX" }}
{{ $uc_shell_rbac := env "UNICONFIG_CONTROLLER_ADMIN_GROUP" }}
"@comment": "uncomment and replace '",
"@comment": "jwk_url':' {{ $uc_shell_oauth_url }}",
"@comment": "rbac_roles':' {{ $uc_shell_rbac }}",
"@comment": "jwk_url ':' {{ $uc_shell_oauth_url }}",
{{end}}
"backend": "ws://inventory:8000/graphql",
"endpoint": "/api/inventory"
}
]
},
{{end}}
"router":{
"disable_path_decoding" : true,
"disable_redirect_fixed_path": true,
Expand Down
4 changes: 4 additions & 0 deletions charts/krakend/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,9 @@ spec:
targetPort: {{ .Values.service.targetPort }}
protocol: TCP
name: http
- port: 8001
targetPort: 8001
protocol: TCP
name: websocket
selector:
{{- include "krakend.selectorLabels" . | nindent 4 }}
4 changes: 4 additions & 0 deletions charts/krakend/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,10 @@
RESOURCE_MANAGER_ENABLED: true
L3VPN_ENABLED: false
DEVICE_TOPOLOGY_ENABLED: false
UNICONFIG_SHELL_ENABLED: false
UNICONFIG_SHELL_OAUTH_ENABLED: false
OAUTH2_AUTH_URL: false

Check failure on line 106 in charts/krakend/values.yaml

View workflow job for this annotation

GitHub Actions / lint-test

[trailing-spaces] trailing spaces

Check failure on line 106 in charts/krakend/values.yaml

View workflow job for this annotation

GitHub Actions / lint-test

[trailing-spaces] trailing spaces
azureAuth:
enabled: false
AZURE_LOGIN_URL: "https://login.microsoftonline.com"
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion charts/uniconfig/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: uniconfig
version: 5.0.1
version: 5.1.0
description: A Helm chart for UniConfig Kubernetes deployment
type: application
home: https://github.com/FRINXio/helm-charts
Expand Down
Binary file added charts/uniconfig/charts/postgresql-11.9.13.tgz
Binary file not shown.
Binary file added charts/uniconfig/charts/traefik-20.8.0.tgz
Binary file not shown.
3 changes: 3 additions & 0 deletions charts/uniconfig/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,9 @@ spec:
- name: http
containerPort: {{ .Values.service.port }}
protocol: TCP
- name: cli-shell
containerPort: 2022
protocol: TCP
livenessProbe:
exec:
command:
Expand Down
Loading
Loading