Skip to content

Commit

Permalink
Merge pull request #134 from shoplineapp/feature/update-chart-for-exi…
Browse files Browse the repository at this point in the history
…sting-eventBus

feat: update-chart-for-existing-eventBus
  • Loading branch information
chingyi authored Nov 10, 2023
2 parents 44efdd2 + 32f6656 commit 42b7294
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 5 deletions.
2 changes: 1 addition & 1 deletion sl-namespace-init/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: v1
name: sl-namespace-init
description: Helm chart to auto namespace init
version: 0.3.0
version: 0.4.0
appVersion: 0.1.0
4 changes: 3 additions & 1 deletion sl-namespace-init/templates/eventbus.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{{- if .Values.eventBus }}
apiVersion: argoproj.io/v1alpha1
kind: EventBus
metadata:
name: default
name: {{ .Values.eventBus | default "default" }}
spec:
jetstream:
auth: token
Expand All @@ -11,3 +12,4 @@ spec:
maxAge: 24h
settings: |
max_file_store: 1GB
{{- end }}
1 change: 1 addition & 0 deletions sl-namespace-init/templates/eventsource.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ metadata:
spec:
template:
serviceAccountName: kube-argo
eventBusName: {{ .Values.eventBus | default "default" }}
resource:
ns-event:
group: ""
Expand Down
6 changes: 6 additions & 0 deletions sl-namespace-init/templates/sensor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ spec:
- name: ns
eventSourceName: ns-event
eventName: ns-event
eventBusName: {{ .Values.eventBus | default "default" }}
triggers:
- template:
name: ns-workflow
Expand Down Expand Up @@ -55,6 +56,11 @@ spec:
container:
image: 332947256684.dkr.ecr.ap-southeast-1.amazonaws.com/kube-argo:0.1.0
command: [bash, -c]
resources:
requests:
memory: "256Mi"
limits:
memory: "512Mi"
args:
- |
ns=$(echo '{{"{{"}}inputs.parameters.message{{"}}"}}' | jq -r '."metadata"."labels"."kubernetes.io/metadata.name"')
Expand Down
6 changes: 3 additions & 3 deletions sl-namespace-init/values.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
cluster_name: ""

slack_noti_channel: ""

slack_url: ""

namespace: ""

argo_slack_url: ""

argo_url: ""
argo_url: ""

eventBus: ""

0 comments on commit 42b7294

Please sign in to comment.