Add option to override Hydra and SpiceDB endpoints

This commit is contained in:
Mustafa Gezen 2022-07-20 05:33:44 +02:00
parent ccba0d90ca
commit dd8c287520
Signed by untrusted user who does not match committer: mustafa
GPG Key ID: DCDF010D946438C1
2 changed files with 12 additions and 6 deletions

View File

@ -31,11 +31,15 @@
package servicecatalog
func HydraPublic() string {
return envOverridable("hydra_public", "http", func() string {
svcName := SvcNameHttp("hydra-public")
return EndpointHttp(svcName, NS("hydra-public")) + ":4444"
})
}
func HydraAdmin() string {
return envOverridable("hydra_admin", "http", func() string {
svcName := SvcNameHttp("hydra-admin")
return EndpointHttp(svcName, NS("hydra-admin")) + ":4445"
})
}

View File

@ -37,8 +37,10 @@ import (
)
func SpiceDB() string {
return envOverridable("spicedb", "grpc", func() string {
svcName := SvcNameGrpc("spicedb")
return Endpoint(svcName, NS("spicedb"), ":50051")
})
}
func SpiceDBCredentials() []grpc.DialOption {