Skip to content

Commit

Permalink
fix gateway upgrade validate error. (kubesphere#5232)
Browse files Browse the repository at this point in the history
gateway upgrade validate error.

Signed-off-by: hongzhouzi <hongzhouzi@kubesphere.io>

Signed-off-by: hongzhouzi <hongzhouzi@kubesphere.io>
  • Loading branch information
hongzhouzi authored and wanjunlei committed Aug 11, 2023
1 parent f84b7de commit d28410d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/models/gateway/gateway.go
Expand Up @@ -331,7 +331,7 @@ func (c *gatewayOperator) UpgradeGateway(namespace string) (*v1alpha1.Gateway, e
if l == nil {
return nil, fmt.Errorf("invalid operation, no legacy gateway was found")
}
if l.Namespace != c.options.Namespace {
if l.Namespace != c.getWorkingNamespace(namespace) {
return nil, fmt.Errorf("invalid operation, can't upgrade legacy gateway when working namespace changed")
}

Expand Down

0 comments on commit d28410d

Please sign in to comment.