Skip to content

Commit

Permalink
Liqoctl: install postProviderValues fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cheina97 authored and adamjensenbot committed Jun 9, 2023
1 parent 6030220 commit 2b8b99e
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions pkg/liqoctl/install/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -373,18 +373,20 @@ func (o *Options) preProviderValues() map[string]interface{} {
}

func (o *Options) postProviderValues() map[string]interface{} {
return map[string]interface{}{
"gateway": map[string]interface{}{
values := map[string]interface{}{}
if o.ExtServiceType.Value != "" {
values["gateway"] = map[string]interface{}{
"service": map[string]interface{}{
"type": o.ExtServiceType.Value,
},
},
"auth": map[string]interface{}{
}
values["auth"] = map[string]interface{}{
"service": map[string]interface{}{
"type": o.ExtServiceType.Value,
},
},
}
}
return values
}

func (o *Options) cleanup() error {
Expand Down

0 comments on commit 2b8b99e

Please sign in to comment.