Skip to content

Commit 9abc93d

Browse files
committed
Fix hydra init errors and website urls
1 parent 0832f0e commit 9abc93d

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

‎Tiltfile‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,9 +237,11 @@ k8s_resource(workload="populate-db", resource_deps=["faf-db-migrations"], labels
237237
k8s_yaml(keep_objects_of_kind(helm_with_build_cache("apps/faf-voting", namespace="faf-apps", values=["config/local.yaml"]), kinds=["ConfigMap", "Secret"]))
238238
k8s_resource(new_name="faf-voting-config", objects=["faf-voting:configmap", "faf-voting:secret"], labels=["voting"])
239239

240-
k8s_yaml(helm_with_build_cache("apps/faf-website", namespace="faf-apps", values=["config/local.yaml", "apps/faf-website/values-prod.yaml"]))
240+
website_yaml = helm_with_build_cache("apps/faf-website", namespace="faf-apps", values=["config/local.yaml", "apps/faf-website/values-prod.yaml"])
241+
website_yaml = patch_config(website_yaml, "faf-website", {"OAUTH_URL": "http://ory-hydra:4444", "OAUTH_PUBLIC_URL": "http://localhost:4444", "API_URL": "http://faf-api:8010", "WP_URL": "http://wordpress:80"})
242+
k8s_yaml(website_yaml)
241243
k8s_resource(new_name="faf-website-config", objects=["faf-website:configmap", "faf-website:secret"], labels=["website"])
242-
k8s_resource(workload="faf-website", objects=["faf-website:ingressroute"], resource_deps=["traefik"], labels=["website"], links=[link("https://www.localhost", "FAForever Website")])
244+
k8s_resource(workload="faf-website", objects=["faf-website:ingressroute"], resource_deps=["traefik", "wordpress"], labels=["website"], links=[link("https://www.localhost", "FAForever Website")])
243245

244246
# k8s_yaml(helm_with_build_cache("apps/faf-content", namespace="faf-apps", values=["config/local.yaml"]))
245247
# k8s_resource(new_name="faf-content-config", objects=["faf-content:configmap"], labels=["content"])

‎apps/ory-hydra/templates/init-clients.yaml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,9 @@ spec:
6969
--token-endpoint-auth-method "{{ .tokenEndpointAuthMethod }}" \
7070
{{- end }}
7171
{{- if .owner }}
72-
--owner "{{ .owner }}"
72+
--owner "{{ .owner }}" \
7373
{{- end }}
74+
;
7475
else
7576
echo "Client {{ .id }} already exists, skipping."
7677
fi

0 commit comments

Comments
 (0)