File tree 4 files changed +18
-9
lines changed
4 files changed +18
-9
lines changed Original file line number Diff line number Diff line change @@ -5,10 +5,12 @@ metadata:
5
5
spec :
6
6
group : demeter.run
7
7
names :
8
- categories : []
8
+ categories :
9
+ - demeter-port
9
10
kind : OgmiosPort
10
11
plural : ogmiosports
11
- shortNames : []
12
+ shortNames :
13
+ - opt
12
14
singular : ogmiosport
13
15
scope : Namespaced
14
16
versions :
28
30
- jsonPath : .status.authToken
29
31
name : Auth Token
30
32
type : string
33
+ - jsonPath : .spec.throughputTier
34
+ name : Throughput Tier
35
+ type : string
31
36
name : v1alpha1
32
37
schema :
33
38
openAPIV3Schema :
@@ -36,18 +41,16 @@ spec:
36
41
spec :
37
42
properties :
38
43
network :
39
- enum :
40
- - mainnet
41
- - preprod
42
- - preview
43
- - sanchonet
44
+ type : string
45
+ throughputTier :
44
46
type : string
45
47
version :
46
48
format : uint8
47
49
minimum : 0.0
48
50
type : integer
49
51
required :
50
52
- network
53
+ - throughputTier
51
54
- version
52
55
type : object
53
56
status :
Original file line number Diff line number Diff line change @@ -11,4 +11,4 @@ metadata:
11
11
spec :
12
12
network : " mainnet"
13
13
version : 1
14
-
14
+ throughputTier : " 0 "
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ pub struct Config {
8
8
pub proxy_tiers_poll_interval : Duration ,
9
9
pub prometheus_addr : String ,
10
10
pub ogmios_port : u16 ,
11
+ pub ogmios_dns : String ,
11
12
pub ssl_crt_path : PathBuf ,
12
13
pub ssl_key_path : PathBuf ,
13
14
}
@@ -39,6 +40,7 @@ impl Config {
39
40
. expect ( "OGMIOS_PORT must be set" )
40
41
. parse ( )
41
42
. expect ( "OGMIOS_PORT must a number" ) ,
43
+ ogmios_dns : env:: var ( "OGMIOS_DNS" ) . expect ( "OGMIOS_DNS must be set" ) ,
42
44
}
43
45
}
44
46
}
Original file line number Diff line number Diff line change @@ -281,7 +281,11 @@ impl ProxyRequest {
281
281
let network = captures. get ( 2 ) ?. as_str ( ) . to_string ( ) ;
282
282
let version = captures. get ( 3 ) ?. as_str ( ) . to_string ( ) ;
283
283
284
- let instance = format ! ( "ogmios-{network}-{version}:{}" , state. config. ogmios_port) ;
284
+ let instance = format ! (
285
+ "ogmios-{network}-{version}.{}:{}" ,
286
+ state. config. ogmios_dns, state. config. ogmios_port
287
+ ) ;
288
+
285
289
let namespace = state. config . proxy_namespace . clone ( ) ;
286
290
287
291
let protocol = get_header ( hyper_req, UPGRADE . as_str ( ) )
You can’t perform that action at this time.
0 commit comments