Skip to content

Commit

Permalink
Bump uniconfig and update uniconfig config files
Browse files Browse the repository at this point in the history
  • Loading branch information
Jozef Volak committed Jul 15, 2022
1 parent d11c853 commit eece4a8
Show file tree
Hide file tree
Showing 10 changed files with 40 additions and 18 deletions.
1 change: 1 addition & 0 deletions composefiles/support/swarm-monitoring.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ x-logging: &logging_loki
max-file: "3"
max-size: "10m"
mode: non-blocking
keep-file: "true"
loki-retries: "1"
loki-batch-size: "1500"
loki-relabel-config: |
Expand Down
3 changes: 2 additions & 1 deletion composefiles/swarm-uniconfig.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ x-logging: &logging_loki
max-file: "3"
max-size: "10m"
mode: non-blocking
keep-file: "true"
loki-retries: "1"
loki-batch-size: "1500"
loki-relabel-config: |
Expand Down Expand Up @@ -83,7 +84,7 @@ services:
memory: ${TF_RES_LIMIT_MEM}

uniconfig-controller:
image: frinx/uniconfig:5.0.9
image: frinx/uniconfig:5.0.11
logging: *logging_loki
networks:
- uniconfig-network
Expand Down
14 changes: 7 additions & 7 deletions composefiles/swarm-uniflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ x-logging: &logging_loki
max-file: "3"
max-size: "10m"
mode: non-blocking
keep-file: "true"
loki-retries: "1"
loki-batch-size: "1500"
loki-relabel-config: |
Expand All @@ -16,7 +17,7 @@ x-logging: &logging_loki
services:
krakend:
image: frinx/krakend:latest
image: frinx/krakend:1.0.4
# user: root
logging: *logging_loki
labels:
Expand Down Expand Up @@ -89,7 +90,7 @@ services:
memory: ${KD_RES_LIMIT_MEM}

conductor-server:
image: frinx/uniflow-conductor-server:1.0.7
image: frinx/uniflow-conductor-server:1.0.8
# user: guest
logging: *logging_loki
labels:
Expand Down Expand Up @@ -189,7 +190,7 @@ services:
memory: ${ES_RES_LIMIT_MEM}

frinx-frontend:
image: frinx/frinx-frontend:latest
image: frinx/frinx-frontend:1.0.10
user: node
logging: *logging_loki
labels:
Expand Down Expand Up @@ -341,7 +342,7 @@ services:
memory: ${SC_RES_LIMIT_MEM}

workflow-proxy:
image: frinx/workflow-proxy:latest
image: frinx/workflow-proxy:1.0.9
user: node
logging: *logging_loki
labels:
Expand Down Expand Up @@ -388,7 +389,7 @@ services:
memory: ${WP_RES_LIMIT_MEM}

uniresource:
image: frinx/resource-manager:1.0.4
image: frinx/resource-manager:1.0.5
logging: *logging_loki
labels:
- traefik.enable=false
Expand Down Expand Up @@ -435,7 +436,7 @@ services:
memory: ${UR_RES_LIMIT_MEM}

inventory:
image: frinx/frinx-inventory-server:latest
image: frinx/frinx-inventory-server:1.3.0
logging: *logging_loki
labels:
- traefik.enable=false
Expand All @@ -459,7 +460,6 @@ services:
timeout: 5s
retries: 5
start_period: 40s
entrypoint: ["/run_inventory.sh"]
ulimits:
nofile:
soft: ${IV_ULIMIT_NOFILE_SOFT}
Expand Down
3 changes: 2 additions & 1 deletion composefiles/swarm-unistore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ x-logging: &logging_loki
max-file: "3"
max-size: "10m"
mode: non-blocking
keep-file: "true"
loki-retries: "1"
loki-batch-size: "1500"
loki-relabel-config: |
Expand All @@ -28,7 +29,7 @@ x-tcp_keepalive: &tcp_keepalive

services:
unistore:
image: frinx/uniconfig:5.0.9
image: frinx/uniconfig:5.0.11
logging: *logging_loki
labels:
- traefik.enable=false
Expand Down
5 changes: 0 additions & 5 deletions config/krakend/settings/workflow_proxy_settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,6 @@
"method": "GET",
"url_pattern": "/schedule"
},
{
"endpoint": "/api/uniflow/schedule",
"method": "POST",
"url_pattern": "/schedule"
},
{
"endpoint": "/api/uniflow/schedule/{name}",
"method": "GET",
Expand Down
2 changes: 2 additions & 0 deletions config/krakend/templates/inventory.tmpl
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"endpoint": "/api/inventory",
"method": "POST",
"output_encoding": "no-op",
"input_headers": [ {{ include "allowed_headers.tmpl" }} ],

"extra_config": {
Expand All @@ -16,6 +17,7 @@
{
"url_pattern": "/graphql",
"sd": "static",
"encoding": "no-op",
"disable_host_sanitize": false,
"extra_config": {
{{ include "modifiers.tmpl" }}
Expand Down
2 changes: 2 additions & 0 deletions config/krakend/templates/uniresource.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
{
"endpoint": "{{ .endpoint }}",
"method": "{{ .method }}",
"output_encoding": "no-op",
"input_headers": [ {{ include "allowed_headers.tmpl" }} ],

{{ if .input_query_strings }}
Expand All @@ -23,6 +24,7 @@
"backend": [
{
"url_pattern": "{{ .url_pattern }}",
"encoding": "no-op",
"extra_config": {
{{ include "modifiers.tmpl" }}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@
// delimiter used for escaping of list keys in URI (for example, '%22')
// if it is set to 'null' (default), keys cannot be escaped and must be directly encoded according to RFC-8040
"keyDelimiter": null,
// Flag that determines if the data node that is empty(means node contains only attribute tag) should be hidden
// during GET operation.
"hideEmptyDataNodes": false,
// Settings related to filtering of data in CRUD operations.
"schemaFilters": {
// List of extension definitions that can be used to filter out data during PUT/POST/PATCH operation.
Expand All @@ -73,7 +76,14 @@
"ignoreUnsupportedDefinitionsOnWrite": false,
// Indicates if the definition with "DEPRECATED" status should be hidden during GET operation.
"hideDeprecatedDefinitionsOnRead": false
}
},
// default value 0 makes the behavior as defined in RFC8040 (returns status code 404 [Not Found]),
// if changed to anything else, that status code will be returned
"statusCodeForEmptyGetResponse": 0,
// this flag removes namespaces from GET response (only if there are no duplicate localnames)
// (E.g. if there is: namespace1:test and namespace2:test .. the namespace won't be removed because
// there would be two identical localnames)
"showNamespaceInJsonResponse": true
},
/*
CLI shell settings via environment variables.
Expand Down
12 changes: 11 additions & 1 deletion config/unistore/lighty-unistore-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@
// delimiter used for escaping of list keys in URI (for example, '%22')
// if it is set to 'null' (default), keys cannot be escaped and must be directly encoded according to RFC-8040
"keyDelimiter": null,
// Flag that determines if the data node that is empty(means node contains only attribute tag) should be hidden
// during GET operation.
"hideEmptyDataNodes": false,
// Settings related to filtering of data in CRUD operations.
"schemaFilters": {
// List of extension definitions that can be used to filter out data during PUT/POST/PATCH operation.
Expand All @@ -73,7 +76,14 @@
"ignoreUnsupportedDefinitionsOnWrite": false,
// Indicates if the definition with "DEPRECATED" status should be hidden during GET operation.
"hideDeprecatedDefinitionsOnRead": false
}
},
// default value 0 makes the behavior as defined in RFC8040 (returns status code 404 [Not Found]),
// if changed to anything else, that status code will be returned
"statusCodeForEmptyGetResponse": 0,
// this flag removes namespaces from GET response (only if there are no duplicate localnames)
// (E.g. if there is: namespace1:test and namespace2:test .. the namespace won't be removed because
// there would be two identical localnames)
"showNamespaceInJsonResponse": true
},
/*
CLI shell settings via environment variables.
Expand Down
4 changes: 2 additions & 2 deletions teardown.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ function unused_monitoring_volumes()

function unused_fm_volumes()
{
local __volumes=$(docker volume ls -q -f name=frinx_uniflow* -f name=uniconfig-controller_logs -f name=-postgresql_data -f name=frinx_unistore_* )
local __unused_volumes=$(docker volume ls -q -f name=frinx_uniflow* -f name=uniconfig-controller_logs -f name=-postgresql_data -f name=frinx_unistore_* -f dangling=true)
local __volumes=$(docker volume ls -q -f name=frinx_* )
local __unused_volumes=$(docker volume ls -q -f name=frinx_* -f dangling=true)

if [ "${__volumes[@]}" != "" ]; then
if [ "${__volumes[@]}" == "${__unused_volumes[@]}" ]; then
Expand Down

0 comments on commit eece4a8

Please sign in to comment.