File tree Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -63,10 +63,17 @@ func (r *Storage) GetGRPCServiceEndpoint() string {
6363}
6464
6565func (r * Storage ) GetHostFromConfigEndpoint () string {
66- var configuration schema.Configuration
67-
66+ var rawYamlConfiguration string
6867 // skip handle error because we already checked in webhook
69- configuration , _ = ParseConfiguration (r .Spec .Configuration )
68+ success , dynConfig , _ := ParseDynConfig (r .Spec .Configuration )
69+ if success {
70+ config , _ := yaml .Marshal (dynConfig .Config )
71+ rawYamlConfiguration = string (config )
72+ } else {
73+ rawYamlConfiguration = r .Spec .Configuration
74+ }
75+
76+ configuration , _ := ParseConfiguration (rawYamlConfiguration )
7077 randNum := rand .Intn (len (configuration .Hosts )) // #nosec G404
7178 return fmt .Sprintf ("%s:%d" , configuration .Hosts [randNum ].Host , GRPCPort )
7279}
Original file line number Diff line number Diff line change @@ -15,10 +15,10 @@ type: application
1515# This is the chart version. This version number should be incremented each time you make changes
1616# to the chart and its templates, including the app version.
1717# Versions are expected to follow Semantic Versioning (https://semver.org/)
18- version : 0.5.26
18+ version : 0.5.27
1919
2020# This is the version number of the application being deployed. This version number should be
2121# incremented each time you make changes to the application. Versions are not expected to
2222# follow Semantic Versioning. They should reflect the version the application is using.
2323# It is recommended to use it with quotes.
24- appVersion : " 0.5.26 "
24+ appVersion : " 0.5.27 "
You can’t perform that action at this time.
0 commit comments