mirror of
https://github.com/rocky-linux/peridot.git
synced 2024-11-21 12:41:27 +00:00
Add option to override Hydra and SpiceDB endpoints
This commit is contained in:
parent
ccba0d90ca
commit
dd8c287520
@ -31,11 +31,15 @@
|
||||
package servicecatalog
|
||||
|
||||
func HydraPublic() string {
|
||||
svcName := SvcNameHttp("hydra-public")
|
||||
return EndpointHttp(svcName, NS("hydra-public")) + ":4444"
|
||||
return envOverridable("hydra_public", "http", func() string {
|
||||
svcName := SvcNameHttp("hydra-public")
|
||||
return EndpointHttp(svcName, NS("hydra-public")) + ":4444"
|
||||
})
|
||||
}
|
||||
|
||||
func HydraAdmin() string {
|
||||
svcName := SvcNameHttp("hydra-admin")
|
||||
return EndpointHttp(svcName, NS("hydra-admin")) + ":4445"
|
||||
return envOverridable("hydra_admin", "http", func() string {
|
||||
svcName := SvcNameHttp("hydra-admin")
|
||||
return EndpointHttp(svcName, NS("hydra-admin")) + ":4445"
|
||||
})
|
||||
}
|
||||
|
@ -37,8 +37,10 @@ import (
|
||||
)
|
||||
|
||||
func SpiceDB() string {
|
||||
svcName := SvcNameGrpc("spicedb")
|
||||
return Endpoint(svcName, NS("spicedb"), ":50051")
|
||||
return envOverridable("spicedb", "grpc", func() string {
|
||||
svcName := SvcNameGrpc("spicedb")
|
||||
return Endpoint(svcName, NS("spicedb"), ":50051")
|
||||
})
|
||||
}
|
||||
|
||||
func SpiceDBCredentials() []grpc.DialOption {
|
||||
|
Loading…
Reference in New Issue
Block a user