Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Commit efecd89

Browse files
committed
Use SOAP to determine if we are on cloud
1 parent 05109d2 commit efecd89

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

cmd/frontend/graphqlbackend/site_reload.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
"github.com/sourcegraph/sourcegraph/cmd/frontend/internal/processrestart"
1313
"github.com/sourcegraph/sourcegraph/internal/actor"
1414
"github.com/sourcegraph/sourcegraph/internal/auth"
15-
"github.com/sourcegraph/sourcegraph/internal/conf/deploy"
15+
"github.com/sourcegraph/sourcegraph/internal/cloud"
1616
"github.com/sourcegraph/sourcegraph/internal/endpoint"
1717
"github.com/sourcegraph/sourcegraph/lib/errors"
1818
)
@@ -28,8 +28,7 @@ func (r *schemaResolver) ReloadSite(ctx context.Context) (*EmptyResponse, error)
2828
if err := auth.CheckCurrentUserIsSiteAdmin(ctx, r.db); err != nil {
2929
return nil, err
3030
}
31-
32-
if deploy.IsDeployTypeKubernetes(deploy.Type()) {
31+
if cloud.SiteConfig().SourcegraphOperatorAuthProviderEnabled() {
3332
// use k8s client to restart the frontend deployment rollout
3433
client, err := endpoint.LoadClient()
3534
if err != nil {

0 commit comments

Comments
 (0)