Skip to content

Commit 571fb59

Browse files
authored
Merge pull request #2085 from beyonnex-io/bugfix/helm-wot-fixes
fix configuration bug in WoT validation-context and log-warning-instead-of-failing-api-calls setting
2 parents 0394310 + 47f43fd commit 571fb59

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

deployment/helm/ditto/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ description: |
1616
A digital twin is a virtual, cloud based, representation of his real world counterpart
1717
(real world “Things”, e.g. devices like sensors, smart heating, connected cars, smart grids, EV charging stations etc).
1818
type: application
19-
version: 3.6.4 # chart version is effectively set by release-job
19+
version: 3.6.5 # chart version is effectively set by release-job
2020
appVersion: 3.6.4
2121
keywords:
2222
- iot-chart

deployment/helm/ditto/service-config/things-extension.conf.tpl

+1-2
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ ditto {
7777
"{{$thingDefinitionPattern}}"
7878
{{- end }}
7979
]
80-
}
8180
{{- end }}
8281
{{- end }}
8382
{{- if $dynamicWotTmValidationConfig.validationContext.featureDefinitionPatterns }}
@@ -87,9 +86,9 @@ ditto {
8786
"{{$featureDefinitionPattern}}"
8887
{{- end }}
8988
]
90-
}
9189
{{- end }}
9290
{{- end }}
91+
}
9392
config-overrides {
9493
{{- range $configOverridesKey, $configOverridesValue := $dynamicWotTmValidationConfig.configOverrides }}
9594
{{- if or (eq (kindOf $configOverridesValue) "map") (eq (kindOf $configOverridesValue) "slice") }}

deployment/helm/ditto/templates/things-deployment.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ spec:
268268
- name: THINGS_WOT_TM_MODEL_VALIDATION_ENABLED
269269
value: "{{ .Values.things.config.wot.tmValidation.enabled }}"
270270
- name: THINGS_WOT_TM_MODEL_VALIDATION_LOG_WARNING_INSTEAD_OF_FAILING_API_CALLS
271-
value: "{{ .Values.things.config.wot.tmValidation.enabled }}"
271+
value: "{{ index .Values.things.config.wot.tmValidation "log-warning-instead-of-failing-api-calls" }}"
272272
- name: THINGS_WOT_TM_MODEL_VALIDATION_THING_ENFORCE_TD_MODIFICATION
273273
value: "{{ index .Values.things.config.wot.tmValidation.thing.enforce "thing-description-modification" }}"
274274
- name: THINGS_WOT_TM_MODEL_VALIDATION_THING_ENFORCE_ATTRIBUTES

0 commit comments

Comments
 (0)