Skip to content

Commit

Permalink
WIP: additional dev fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
NeilHanlon committed Jul 27, 2024
1 parent 204de46 commit f269935
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 13 deletions.
3 changes: 2 additions & 1 deletion ci/resfdeploy.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ local manifestYamlStream = function (value, indent_array_in_object=false, c_docu
protocol: 'TCP',
}]);
local services = if std.objectHas(info, 'services') then info.services else
[{ 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];
[{ 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];

local file_yaml_prefix = if helm_mode then 'helm-' else '';
local nssa = '%s001-ns-sa.yaml' % file_yaml_prefix;
Expand Down Expand Up @@ -283,6 +283,7 @@ local manifestYamlStream = function (value, indent_array_in_object=false, c_docu
},
srv.port,
srv.port,
portName=srv.portName,
selector=metadata.name,
env=mappings.get_env_from_svc(srv.name)
) for srv in services]) +
Expand Down
3 changes: 2 additions & 1 deletion hack/k8s_dev_pf
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,5 @@ trap "trap - SIGTERM && kill -- -$$" SIGINT SIGTERM EXIT
USER="$(whoami)"
kubectl -n "$USER-dev" port-forward svc/spicedb-grpc-dev-service 50051 &
kubectl -n "$USER-dev" port-forward svc/hydra-admin-http-dev-service 4445 &
kubectl -n "$USER-dev" port-forward svc/hydra-public-http-dev-service 4444
kubectl -n "$USER-dev" port-forward svc/hydra-public-http-dev-service 4444 &
sudo kubectl --kubeconfig $KUBECONFIG -n "istio-system" port-forward --address 0.0.0.0 deployment/istio-ingressgateway 80:8080 443:8443
11 changes: 6 additions & 5 deletions hack/setup_dev_temporal
Original file line number Diff line number Diff line change
Expand Up @@ -43,19 +43,20 @@ fi

cd "$DIR_TO_TEMPORAL" || exit 1

export SQL_PLUGIN=postgres
export SQL_PLUGIN=postgres12
export SQL_HOST=localhost
export SQL_PORT=$POSTGRES_PORT
export SQL_USER=postgres
export SQL_PASSWORD=postgres

./temporal-sql-tool create-database temporal
./temporal-sql-tool -database temporal create-database
./temporal-sql-tool -database temporal_visibility create-database

SQL_DATABASE=temporal ./temporal-sql-tool setup-schema -v 0.0
SQL_DATABASE=temporal ./temporal-sql-tool update -schema-dir schema/postgresql/v96/temporal/versioned
SQL_DATABASE=temporal ./temporal-sql-tool update -schema-dir schema/postgresql/v12/temporal/versioned

./temporal-sql-tool create-database temporal_visibility
SQL_DATABASE=temporal_visibility ./temporal-sql-tool setup-schema -v 0.0
SQL_DATABASE=temporal_visibility ./temporal-sql-tool update -schema-dir schema/postgresql/v96/visibility/versioned
SQL_DATABASE=temporal_visibility ./temporal-sql-tool update -schema-dir schema/postgresql/v12/visibility/versioned

sleep 10

Expand Down
1 change: 1 addition & 0 deletions hydra/deploy/admin/deploy.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ resfdeploy.new({
name: 'http',
containerPort: 4445,
protocol: 'TCP',
expose: true,
},
],
health: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ spec:
- name: metrics
containerPort: 9090
protocol: TCP
- name: grpc-membership
- name: membership
protocol: TCP
containerPort: {{ include (printf "temporal.%s.membershipPort" $service) $ }}
{{- if ne $service "worker"}}
Expand Down
8 changes: 6 additions & 2 deletions infrastructure/dev-helm/temporal/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ server:
sidecarContainers: {}
image:
repository: temporalio/server
tag: 1.22.4
tag: "1.20"
pullPolicy: IfNotPresent

# Global default settings (can be overridden per service)
Expand Down Expand Up @@ -198,6 +198,7 @@ server:
annotations: {} # Evaluated as template
type: ClusterIP
port: 7233
membershipPort: 6933
metrics:
annotations:
enabled: true
Expand All @@ -220,6 +221,7 @@ server:
service:
# type: ClusterIP
port: 7234
membershipPort: 6934
metrics:
annotations:
enabled: true
Expand All @@ -242,6 +244,7 @@ server:
service:
# type: ClusterIP
port: 7235
membershipPort: 6935
metrics:
annotations:
enabled: false
Expand All @@ -264,6 +267,7 @@ server:
service:
# type: ClusterIP
port: 7239
membershipPort: 6939
metrics:
annotations:
enabled: true
Expand Down Expand Up @@ -372,7 +376,7 @@ web:
additionalEnv: []

containerSecurityContext: {}

securityContext: {}

schema:
Expand Down
4 changes: 2 additions & 2 deletions spicedb/deploy/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM quay.io/authzed/spicedb:v1.2.0 as spicedb
FROM quay.io/rockylinux/rockylinux:8
FROM quay.io/authzed/spicedb:v1.28.0 as spicedb
FROM quay.io/rockylinux/rockylinux:9

COPY --from=spicedb /usr/local/bin/spicedb /usr/local/bin/spicedb
COPY --from=spicedb /usr/local/bin/grpc_health_probe /usr/local/bin/grpc_health_probe
2 changes: 1 addition & 1 deletion spicedb/deploy/common.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ local DSN = db.dsn('hydra');

{
image: 'quay.io/peridot/spicedb',
tag: 'v0.3.21',
tag: 'v0.3.29',
legacyDb: true,
dsn: {
name: 'DSN',
Expand Down

0 comments on commit f269935

Please sign in to comment.