Skip to content

Commit

Permalink
feat: support builtin connector repository configuration (#1166)
Browse files Browse the repository at this point in the history
* feat: support builtin connector repository configuration

Signed-off-by: ericsyh <ericshenyuhao@outlook.com>

* update

Signed-off-by: ericsyh <ericshenyuhao@outlook.com>

* update

Signed-off-by: ericsyh <ericshenyuhao@outlook.com>

* update

Signed-off-by: ericsyh <ericshenyuhao@outlook.com>

* apply to sn-platform

Signed-off-by: ericsyh <ericshenyuhao@outlook.com>

* update

Signed-off-by: ericsyh <ericshenyuhao@outlook.com>

---------

Signed-off-by: ericsyh <ericshenyuhao@outlook.com>
(cherry picked from commit 4f7210b)
  • Loading branch information
ericsyh committed Jun 13, 2024
1 parent 5e7b450 commit 655cae1
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 3 deletions.
1 change: 1 addition & 0 deletions charts/sn-platform-slim/conf/broker/connectors.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
# specific language governing permissions and limitations
# under the License.
#

- id: pulsar-io-data-generator
name: data-generator
description: Test data generator connector
Expand Down
1 change: 0 additions & 1 deletion charts/sn-platform-slim/conf/broker/log4j2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
# under the License.
#


Configuration:
status: INFO
monitorInterval: 30
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ metadata:
{{- include "pulsar.standardLabels" . | nindent 4 }}
component: {{ .Values.functions.component }}
data:
{{- if .Values.broker.functionmesh.builtinConnectorRepository }}
{{ (.Files.Glob "conf/broker/connectors.yaml").AsConfig | replace "streamnative" .Values.broker.functionmesh.builtinConnectorRepository | indent 2 }}
{{- else }}
{{ (.Files.Glob "conf/broker/connectors.yaml").AsConfig | indent 2 }}

{{- end }}
{{- end }}
1 change: 1 addition & 0 deletions charts/sn-platform-slim/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1119,6 +1119,7 @@ broker:
functionEnabled: true
sourceEnabled: true
sinkEnabled: true
builtinConnectorRepository:
customWorkerConfig:
runnerImages:
labels:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ metadata:
{{- include "pulsar.standardLabels" . | nindent 4 }}
component: {{ .Values.vault.component }}
data:
{{- if .Values.broker.functionmesh.builtinConnectorRepository }}
{{ (.Files.Glob "conf/broker/connectors.yaml").AsConfig | replace "streamnative" .Values.broker.functionmesh.builtinConnectorRepository | indent 2 }}
{{- else }}
{{ (.Files.Glob "conf/broker/connectors.yaml").AsConfig | indent 2 }}

{{- end }}
{{- end }}
1 change: 1 addition & 0 deletions charts/sn-platform/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1194,6 +1194,7 @@ broker:
functionEnabled: true
sourceEnabled: true
sinkEnabled: true
builtinConnectorRepository:
customWorkerConfig:
runnerImages:
labels:
Expand Down

0 comments on commit 655cae1

Please sign in to comment.