Skip to content

Commit

Permalink
Merge pull request #2 from ComposableFi/cosmos-notifier-fixes
Browse files Browse the repository at this point in the history
Cosmos notifier fixes
  • Loading branch information
rjonczy authored Apr 17, 2024
2 parents 09a4724 + c2b3e8a commit 304d8c1
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 13 deletions.
2 changes: 1 addition & 1 deletion charts/cosmos-notifier/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: v2
name: cosmos-notifier
description: A Helm chart for Kubernetes to deploy cosmos-notifier
type: application
version: 0.1.0
version: 0.1.1
appVersion: "0.1.0"
11 changes: 11 additions & 0 deletions charts/cosmos-notifier/templates/configmap.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "cosmos-notifier.fullname" . }}
labels:
{{- include "cosmos-notifier.labels" . | nindent 4 }}
data:
{{- range $key, $value := .Values.appConfig }}
{{ $key }}: {{ $value | quote }}
{{ end }}
15 changes: 3 additions & 12 deletions charts/cosmos-notifier/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,9 @@ spec:
{{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
ports:
- name: http
containerPort: 80
protocol: TCP
livenessProbe:
httpGet:
path: /
port: http
readinessProbe:
httpGet:
path: /
port: http
envFrom:
- configMapRef:
name: {{ include "cosmos-notifier.fullname" . }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- with .Values.nodeSelector }}
Expand Down
6 changes: 6 additions & 0 deletions charts/cosmos-notifier/values.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
appConfig:
COSMOS_ENDPOINT: ""
SLACK_WEBHOOK_URL: https://hooks.slack.com/services/xxx/xxx/xxx
FETCH_INTERVAL: 15s
CHAIN_ID: ""

replicaCount: 1

image:
Expand Down

0 comments on commit 304d8c1

Please sign in to comment.