Skip to content

Commit cbccdc2

Browse files
committed
Fix the last bits of retool
1 parent a118dbe commit cbccdc2

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

envs/retool/main.jsonnet

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ local tk = import 'github.com/grafana/jsonnet-libs/tanka-util/main.libsonnet';
22
local ingress = import 'helpers/ingress.libsonnet';
33
local timezone = import 'helpers/timezone.libsonnet';
44
local k = import 'k.libsonnet';
5+
local labsonnet = import 'labsonnet/main.libsonnet';
56

67
local helm = tk.helm.new(std.thisFile);
78

@@ -12,13 +13,17 @@ local retoolHelmDef = helm.template('retool', '../../charts/retool', {
1213
namespace: namespace,
1314
values: {
1415
image: {
15-
tag: '3.300.7-stable',
16+
repository: 'ghcr.io/dzervas/retool',
17+
pullSecrets: [{ name: 'ghcr-cluster-secret' }],
18+
pullPolicy: 'Always',
19+
tag: 'latest',
1620
},
1721

1822
persistentVolumeClaim: { enabled: true },
1923

24+
deployment: { labels: { 'ai/enable': 'true' } },
25+
2026
config: {
21-
// Free edition - use default trial license
2227
licenseKey: 'EXPIRED-LICENSE-KEY-TRIAL',
2328
useInsecureCookies: false,
2429
// Secrets provided via ExternalSecret
@@ -170,7 +175,9 @@ local fixWorkflowPostgresPasswordKey(obj) =
170175
};
171176

172177
{
173-
namespace: k.core.v1.namespace.new(namespace),
178+
namespace:
179+
k.core.v1.namespace.new(namespace)
180+
+ k.core.v1.namespace.metadata.withLabels({ ghcrCreds: 'enabled' }),
174181
retool: retoolHelmDef {
175182
deployment_retool_workflow_backend+: fixWorkflowPostgresPasswordKey(
176183
retoolHelmDef.deployment_retool_workflow_backend
@@ -221,4 +228,10 @@ local fixWorkflowPostgresPasswordKey(obj) =
221228
],
222229
},
223230
},
231+
232+
server:
233+
labsonnet.new('retool-server', 'ghcr.io/dzervas/retool-server')
234+
+ labsonnet.withPort({ port: 8000 })
235+
+ labsonnet.withNamespace(namespace)
236+
+ labsonnet.withImagePullSecrets(['ghcr-cluster-secret']),
224237
}

0 commit comments

Comments
 (0)