Skip to content

Commit 6ab449e

Browse files
committed
WIP: additional dev fixes
1 parent 20dcb85 commit 6ab449e

File tree

8 files changed

+21
-13
lines changed

8 files changed

+21
-13
lines changed

ci/resfdeploy.jsonnet

+2-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ local manifestYamlStream = function (value, indent_array_in_object=false, c_docu
6363
protocol: 'TCP',
6464
}]);
6565
local services = if std.objectHas(info, 'services') then info.services else
66-
[{ name: '%s-%s-%s' % [metadata.name, port.name, env], port: port.containerPort, expose: if std.objectHas(port, 'expose') then port.expose else false } for env in envs for port in ports];
66+
[{ name: '%s-%s-%s' % [metadata.name, port.name, env], port: port.containerPort, portName: port.name, expose: if std.objectHas(port, 'expose') then port.expose else false } for env in envs for port in ports];
6767

6868
local file_yaml_prefix = if helm_mode then 'helm-' else '';
6969
local nssa = '%s001-ns-sa.yaml' % file_yaml_prefix;
@@ -283,6 +283,7 @@ local manifestYamlStream = function (value, indent_array_in_object=false, c_docu
283283
},
284284
srv.port,
285285
srv.port,
286+
portName=srv.portName,
286287
selector=metadata.name,
287288
env=mappings.get_env_from_svc(srv.name)
288289
) for srv in services]) +

hack/k8s_dev_pf

+2-1
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,5 @@ trap "trap - SIGTERM && kill -- -$$" SIGINT SIGTERM EXIT
3737
USER="$(whoami)"
3838
kubectl -n "$USER-dev" port-forward svc/spicedb-grpc-dev-service 50051 &
3939
kubectl -n "$USER-dev" port-forward svc/hydra-admin-http-dev-service 4445 &
40-
kubectl -n "$USER-dev" port-forward svc/hydra-public-http-dev-service 4444
40+
kubectl -n "$USER-dev" port-forward svc/hydra-public-http-dev-service 4444 &
41+
sudo kubectl --kubeconfig $KUBECONFIG -n "istio-system" port-forward --address 0.0.0.0 deployment/istio-ingressgateway 80:8080 443:8443

hack/setup_dev_temporal

+6-5
Original file line numberDiff line numberDiff line change
@@ -43,19 +43,20 @@ fi
4343

4444
cd "$DIR_TO_TEMPORAL" || exit 1
4545

46-
export SQL_PLUGIN=postgres
46+
export SQL_PLUGIN=postgres12
4747
export SQL_HOST=localhost
4848
export SQL_PORT=$POSTGRES_PORT
4949
export SQL_USER=postgres
5050
export SQL_PASSWORD=postgres
5151

52-
./temporal-sql-tool create-database temporal
52+
./temporal-sql-tool -database temporal create-database
53+
./temporal-sql-tool -database temporal_visibility create-database
54+
5355
SQL_DATABASE=temporal ./temporal-sql-tool setup-schema -v 0.0
54-
SQL_DATABASE=temporal ./temporal-sql-tool update -schema-dir schema/postgresql/v96/temporal/versioned
56+
SQL_DATABASE=temporal ./temporal-sql-tool update -schema-dir schema/postgresql/v12/temporal/versioned
5557

56-
./temporal-sql-tool create-database temporal_visibility
5758
SQL_DATABASE=temporal_visibility ./temporal-sql-tool setup-schema -v 0.0
58-
SQL_DATABASE=temporal_visibility ./temporal-sql-tool update -schema-dir schema/postgresql/v96/visibility/versioned
59+
SQL_DATABASE=temporal_visibility ./temporal-sql-tool update -schema-dir schema/postgresql/v12/visibility/versioned
5960

6061
sleep 10
6162

hydra/deploy/admin/deploy.jsonnet

+1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ resfdeploy.new({
3636
name: 'http',
3737
containerPort: 4445,
3838
protocol: 'TCP',
39+
expose: true,
3940
},
4041
],
4142
health: {

infrastructure/dev-helm/temporal/templates/server-deployment.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ spec:
128128
- name: metrics
129129
containerPort: 9090
130130
protocol: TCP
131-
- name: grpc-membership
131+
- name: membership
132132
protocol: TCP
133133
containerPort: {{ include (printf "temporal.%s.membershipPort" $service) $ }}
134134
{{- if ne $service "worker"}}

infrastructure/dev-helm/temporal/values.yaml

+6-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ server:
2121
sidecarContainers: {}
2222
image:
2323
repository: temporalio/server
24-
tag: 1.22.4
24+
tag: "1.20"
2525
pullPolicy: IfNotPresent
2626

2727
# Global default settings (can be overridden per service)
@@ -198,6 +198,7 @@ server:
198198
annotations: {} # Evaluated as template
199199
type: ClusterIP
200200
port: 7233
201+
membershipPort: 6933
201202
metrics:
202203
annotations:
203204
enabled: true
@@ -220,6 +221,7 @@ server:
220221
service:
221222
# type: ClusterIP
222223
port: 7234
224+
membershipPort: 6934
223225
metrics:
224226
annotations:
225227
enabled: true
@@ -242,6 +244,7 @@ server:
242244
service:
243245
# type: ClusterIP
244246
port: 7235
247+
membershipPort: 6935
245248
metrics:
246249
annotations:
247250
enabled: false
@@ -264,6 +267,7 @@ server:
264267
service:
265268
# type: ClusterIP
266269
port: 7239
270+
membershipPort: 6939
267271
metrics:
268272
annotations:
269273
enabled: true
@@ -372,7 +376,7 @@ web:
372376
additionalEnv: []
373377

374378
containerSecurityContext: {}
375-
379+
376380
securityContext: {}
377381

378382
schema:

spicedb/deploy/Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
FROM quay.io/authzed/spicedb:v1.2.0 as spicedb
2-
FROM quay.io/rockylinux/rockylinux:8
1+
FROM quay.io/authzed/spicedb:v1.28.0 as spicedb
2+
FROM quay.io/rockylinux/rockylinux:9
33

44
COPY --from=spicedb /usr/local/bin/spicedb /usr/local/bin/spicedb
55
COPY --from=spicedb /usr/local/bin/grpc_health_probe /usr/local/bin/grpc_health_probe

spicedb/deploy/common.jsonnet

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ local DSN = db.dsn('hydra');
66

77
{
88
image: 'quay.io/peridot/spicedb',
9-
tag: 'v0.3.21',
9+
tag: 'v0.3.29',
1010
legacyDb: true,
1111
dsn: {
1212
name: 'DSN',

0 commit comments

Comments
 (0)