Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: cala chart and dev #6603

Merged
merged 1 commit into from
May 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions charts/cala/templates/cala-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,12 @@ spec:
apiVersion: v1
fieldPath: spec.nodeName
startupProbe:
grpc:
httpGet:
path: /graphql
port: {{ .Values.cala.server.service.port }}
livenessProbe:
grpc:
httpGet:
path: /graphql
port: {{ .Values.cala.server.service.port }}
resources:
{{- toYaml .Values.cala.resources | nindent 10 }}
Expand Down
2 changes: 1 addition & 1 deletion dev/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ create-cluster:
--k3s-arg "--disable=servicelb@server:0"

delete-cluster:
k3d cluster delete && rm terraform.tfstate
k3d cluster delete

all: create-cluster init deploy-services deploy

Expand Down
1 change: 1 addition & 0 deletions dev/Tiltfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ include('./galoy-deps/Tiltfile')
include('./bitcoin/Tiltfile')
include('./monitoring/Tiltfile')
include('./galoy/Tiltfile')
include('./cala/Tiltfile')
include('./addons/Tiltfile')
include('./stablesats/Tiltfile')
include('./kafka-connect/Tiltfile')
Expand Down
38 changes: 38 additions & 0 deletions dev/cala/Tiltfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
load('ext://helm_resource', 'helm_resource')
load('ext://namespace', 'namespace_create')
load('ext://secret', 'secret_from_dict')
load('../common/Tiltfile', 'helm_release')
update_settings(k8s_upsert_timeout_secs=120)

name_prefix = 'galoy-dev'
cala_namespace = '{}-cala'.format(name_prefix)
smoketest_namespace = '{}-smoketest'.format(name_prefix)

namespace_create(cala_namespace)

k8s_yaml(secret_from_dict(
name='cala-smoketest',
namespace=cala_namespace,
inputs={
'key': 'value'
},
))

k8s_yaml(secret_from_dict(
name='cala',
namespace=cala_namespace,
inputs={
'pg-con': 'postgres://cala:cala@cala-postgresql:5432/cala',
},
))

helm_release(
'../../charts/cala',
name='cala',
namespace=cala_namespace,
values=['./cala-values.yml'],
dependency_build=True,
add_repos=True
)

k8s_resource(workload='cala', labels='cala')
8 changes: 8 additions & 0 deletions dev/cala/cala-values.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
cala:
secrets:
create: false

postgresql:
primary:
persistence:
enabled: false
Loading