Skip to content

Commit

Permalink
SMAR-3012 adapt to review
Browse files Browse the repository at this point in the history
  • Loading branch information
egid-fertal-inno committed Dec 12, 2024
1 parent f2c7c3e commit d9347ff
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 20 deletions.
3 changes: 1 addition & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@

### Changed

- Added extractionAlgorithm property for Extractor
- Added faceTemplateCompatibilityVersion property to validate templates versions
- Added extractionAlgorithm and compatibilityVersion for face templates

## [v0.8.7]

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,8 @@ metadata:
| configurations.apiAuth.oauthTokenUrl | string | `""` | used only for enabling OAuth flows in swagger UI |
| configurations.database.connectionStringKey | string | `"cs"` | key within the existing secret which contains the connection string, see https://learn.microsoft.com/en-us/dotnet/framework/data/adonet/connection-strings |
| configurations.database.existingSecretName | string | `"db-cs"` | connection string needs to be provided as a dependency of the chart |
| configurations.faceTemplateCompatibilityVersion | string | `nil` | |
| configurations.facetemplate.compatibilityVersion | string | `nil` | |
| configurations.facetemplate.extractionAlgorithm | string | `nil` | |
| configurations.license.mountPath | string | `"/etc/innovatrics"` | |
| configurations.license.secretName | string | `"iface-lic"` | |
| configurations.license.volumeMountName | string | `"license"` | |
Expand Down Expand Up @@ -438,7 +439,6 @@ metadata:
| edgeStreamsStateSync.tolerations | list | `[]` | |
| experimentalFeatures.qr.enabled | bool | `false` | enable qr modality |
| extractor.annotations | object | `{}` | Annotations for extractor deployment |
| extractor.extractionAlgorithm | string | `nil` | |
| extractor.image.digest | string | `nil` | Overrides the image tag with an image digest |
| extractor.image.pullPolicy | string | `"IfNotPresent"` | Docker image pull policy |
| extractor.image.registry | string | `nil` | The Docker registry, overrides `global.image.registry` |
Expand Down
4 changes: 2 additions & 2 deletions templates/_matcher.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ spec:
{{- include "smartface.commonEnv" . | nindent 8 }}
{{- include "smartface.rmqConfig" . | nindent 8 }}
{{- include "smartface.dbConfig" . | nindent 8 }}
{{- if .Values.configurations.faceTemplateCompatibilityVersion }}
{{- if .Values.configurations.facetemplate.compatibilityVersion }}
- name: SF_FACE_TEMPLATE_COMPATIBILITY_VERSION
value: {{ .Values.configurations.faceTemplateCompatibilityVersion | quote }}
value: {{ .Values.configurations.facetemplate.compatibilityVersion | quote }}
{{- end }}
{{- with .Values.matcher.extraVars }}
{{- toYaml . | nindent 8 }}
Expand Down
4 changes: 2 additions & 2 deletions templates/edge-streams/base-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ spec:
{{- include "smartface.rmqConfig" . | nindent 8 }}
{{- include "smartface.dbConfig" . | nindent 8 }}
{{- include "smartface.s3Config" . | nindent 8 }}
{{- if .Values.configurations.faceTemplateCompatibilityVersion }}
{{- if .Values.configurations.facetemplate.compatibilityVersion }}
- name: SF_FACE_TEMPLATE_COMPATIBILITY_VERSION
value: {{ .Values.configurations.faceTemplateCompatibilityVersion | quote }}
value: {{ .Values.configurations.facetemplate.compatibilityVersion | quote }}
{{- end }}
{{- with .Values.base.extraVars }}
{{- toYaml . | nindent 8 }}
Expand Down
4 changes: 2 additions & 2 deletions templates/edge-streams/edge-stream-processor-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ spec:
{{- include "smartface.commonEnv" . | nindent 8 }}
{{- include "smartface.rmqConfig" . | nindent 8 }}
{{- include "smartface.dbConfig" . | nindent 8 }}
{{- if .Values.configurations.faceTemplateCompatibilityVersion }}
{{- if .Values.configurations.facetemplate.compatibilityVersion }}
- name: SF_FACE_TEMPLATE_COMPATIBILITY_VERSION
value: {{ .Values.configurations.faceTemplateCompatibilityVersion | quote }}
value: {{ .Values.configurations.facetemplate.compatibilityVersion | quote }}
{{- end }}
{{- with .Values.edgeStreamProcessor.extraVars }}
{{- toYaml . | nindent 8 }}
Expand Down
4 changes: 2 additions & 2 deletions templates/edge-streams/face-matcher-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ spec:
{{- include "smartface.commonEnv" . | nindent 8 }}
{{- include "smartface.rmqConfig" . | nindent 8 }}
{{- include "smartface.dbConfig" . | nindent 8 }}
{{- if .Values.configurations.faceTemplateCompatibilityVersion }}
{{- if .Values.configurations.facetemplate.compatibilityVersion }}
- name: SF_FACE_TEMPLATE_COMPATIBILITY_VERSION
value: {{ .Values.configurations.faceTemplateCompatibilityVersion | quote }}
value: {{ .Values.configurations.facetemplate.compatibilityVersion | quote }}
{{- end }}
{{- with .Values.faceMatcher.extraVars }}
{{- toYaml . | nindent 8 }}
Expand Down
4 changes: 2 additions & 2 deletions templates/extractor-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ spec:
env:
{{- include "smartface.commonEnv" . | nindent 8 }}
{{- include "smartface.rmqConfig" . | nindent 8 }}
{{- if .Values.extractor.extractionAlgorithm }}
{{- if .Values.configurations.facetemplate.extractionAlgorithm }}
- name: Extraction__Algorithm
value: {{ .Values.extractor.extractionAlgorithm | quote }}
value: {{ .Values.configurations.facetemplate.extractionAlgorithm | quote }}
{{- end }}
{{- with .Values.extractor.extraVars }}
{{- toYaml . | nindent 8 }}
Expand Down
9 changes: 3 additions & 6 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ configurations:
# Example of possible values: 1.40, 1.39
# It is specifically intended for use during the process of migrating templates
# Use this setting with caution, becouse it can break functionality
faceTemplateCompatibilityVersion: null
facetemplate:
compatibilityVersion: null
extractionAlgorithm: null

features:
multitenancy:
Expand Down Expand Up @@ -503,11 +505,6 @@ extractor:
digest: null
# -- Docker image pull policy
pullPolicy: IfNotPresent
# If the extractionAlgorithm value is null, the default algorithm is used.
# Possible values for this property are "accurate_mask" and "balanced".
# It is specifically intended for use during the process of migrating templates
# Use this setting with caution, becouse it can break functionality
extractionAlgorithm: null
# -- Additional environment variables for the extractor component
# extraVars:
# - name: EXTRA_VAR1
Expand Down

0 comments on commit d9347ff

Please sign in to comment.