Skip to content

Commit 0f5a1e7

Browse files
committed
Support offline mode with empty --baseURL
Signed-off-by: Tamal Saha <tamal@appscode.com>
1 parent 07d5eb9 commit 0f5a1e7

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

pkg/apiserver/apiserver.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -186,10 +186,7 @@ func (c completedConfig) New(ctx context.Context) (*LicenseProxyServer, error) {
186186
}
187187

188188
var lc *pc.Client
189-
if !isSpokeCluster {
190-
if c.ExtraConfig.BaseURL == "" {
191-
return nil, fmt.Errorf("missing --baseURL")
192-
}
189+
if !isSpokeCluster && c.ExtraConfig.BaseURL != "" {
193190
if c.ExtraConfig.Token == "" {
194191
return nil, fmt.Errorf("missing --token")
195192
}

0 commit comments

Comments
 (0)