mirror of
https://github.com/rocky-linux/peridot.git
synced 2024-11-24 14:11:25 +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
|
package servicecatalog
|
||||||
|
|
||||||
func HydraPublic() string {
|
func HydraPublic() string {
|
||||||
|
return envOverridable("hydra_public", "http", func() string {
|
||||||
svcName := SvcNameHttp("hydra-public")
|
svcName := SvcNameHttp("hydra-public")
|
||||||
return EndpointHttp(svcName, NS("hydra-public")) + ":4444"
|
return EndpointHttp(svcName, NS("hydra-public")) + ":4444"
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
func HydraAdmin() string {
|
func HydraAdmin() string {
|
||||||
|
return envOverridable("hydra_admin", "http", func() string {
|
||||||
svcName := SvcNameHttp("hydra-admin")
|
svcName := SvcNameHttp("hydra-admin")
|
||||||
return EndpointHttp(svcName, NS("hydra-admin")) + ":4445"
|
return EndpointHttp(svcName, NS("hydra-admin")) + ":4445"
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
@ -37,8 +37,10 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func SpiceDB() string {
|
func SpiceDB() string {
|
||||||
|
return envOverridable("spicedb", "grpc", func() string {
|
||||||
svcName := SvcNameGrpc("spicedb")
|
svcName := SvcNameGrpc("spicedb")
|
||||||
return Endpoint(svcName, NS("spicedb"), ":50051")
|
return Endpoint(svcName, NS("spicedb"), ":50051")
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
func SpiceDBCredentials() []grpc.DialOption {
|
func SpiceDBCredentials() []grpc.DialOption {
|
||||||
|
Loading…
Reference in New Issue
Block a user