Skip to content

Commit

Permalink
actually call to configure VICE URL
Browse files Browse the repository at this point in the history
  • Loading branch information
ianmcorvidae committed Sep 30, 2024
1 parent 7147b3c commit 35d2caa
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions analyses.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ type Job struct {
}

func (j *Job) accessURL() (string, error) {
if VICEURI == "" {
return "", nil
}
vice_uri, err := url.Parse(VICEURI)
if err != nil {
return "", errors.Wrapf(err, "Error parsing VICE URI from %s", VICEURI)
Expand Down
7 changes: 7 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ func ConfigureUserLookups(cfg *viper.Viper) error {
return nil
}

// ConfigureAnalyses sets up the base VICE url
func ConfigureAnalyses(cfg *viper.Viper) error {
viceBase := cfg.GetString("k8s.frontend.base")
if viceBase == "" {
Expand Down Expand Up @@ -422,6 +423,12 @@ func main() {
}
log.Info("done configuring user lookups")

log.Info("configuring VICE URL...")
if err = ConfigureAnalyses(cfg); err != nil {
log.Fatal(err)
}
log.Info("done configuring VICE URL")

var k8sEnabled bool
if cfg.InConfig("vice.k8s-enabled") {
k8sEnabled = cfg.GetBool("vice.k8s-enabled")
Expand Down

0 comments on commit 35d2caa

Please sign in to comment.