Skip to content

Commit

Permalink
Adapted ververica deployemtn to 1.10.1
Browse files Browse the repository at this point in the history
  • Loading branch information
pielas committed Sep 18, 2023
1 parent 8daf0ea commit b4db5f2
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/helm-test-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
push:
branches:
- main
- 'preview/*'
tags:
- '*'
workflow_dispatch:
Expand Down Expand Up @@ -56,6 +57,7 @@ jobs:
with:
name: helm-build
path: "dist/${{env.NAME}}-${{steps.setVersion.outputs.version}}.tgz"
- run: curl -u ${{env.CHART_REPOSITORY_AUTH}} --fail --upload-file "dist/${{env.NAME}}-${{steps.setVersion.outputs.version}}.tgz" ${{env.CHARTS_PUBLIC_SNAPSHOTS_URL}}
test-flink:
name: test flink mode
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion src/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: nussknacker
version: 1.10.1
version: 1.10.1-mpk-1
description: Nussknacker - a design, development, and deployment tool for stream processing
home: https://nussknacker.io/
icon: https://nussknacker.io/wp-content/uploads/2021/10/Nussknacker-short-black.svg
Expand Down
4 changes: 3 additions & 1 deletion src/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,9 @@ nussknacker-request-response-scenario

{{- define "nussknacker.modelClassPath" -}}
{{- if .Values.nussknacker.modelClassPath -}}
{{ tpl ( mustToJson .Values.nussknacker.modelClassPath) . }}
{{ tpl ( mustToJson .Valumes.nussknacker.modelClassPath) . }}
{{- else if eq .Values.nussknacker.mode "ververica" -}}
["model/defaultModel.jar", "model/flinkExecutor.jar", "components/flink", "components/common"]
{{- else if eq .Values.nussknacker.mode "flink" -}}
["model/defaultModel.jar", "model/flinkExecutor.jar", "components/flink", "components/common"]
{{- else if eq .Values.nussknacker.mode "streaming-lite" -}}
Expand Down
11 changes: 10 additions & 1 deletion src/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,16 @@ data:
scenarioTypes {
"default": {
{{- if eq .Values.nussknacker.mode "flink" }}
{{- if eq .Values.nussknacker.mode "ververica" }}
deploymentConfig: {
type: "ververica"
workspace: {{ .Values.nussknacker.workspace }}
username: {{ .Values.nussknacker.username | quote }}
password: {{ .Values.nussknacker.password | quote }}
remoteSyslogIp: {{ .Values.nussknacker.remoteSyslogIp | quote }}
remoteSyslogPort: {{ .Values.nussknacker.remoteSyslogPort }}
}
{{- else if eq .Values.nussknacker.mode "flink" }}
deploymentConfig: {
type: "flinkStreaming"
{{- /* Find easier way of passing it through values */}}
Expand Down

0 comments on commit b4db5f2

Please sign in to comment.