Skip to content

Commit

Permalink
Add missing auth field for sentinels
Browse files Browse the repository at this point in the history
  • Loading branch information
aledbf committed Apr 4, 2022
1 parent e2549f0 commit 783cecd
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions components/registry-facade/pkg/registry/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,19 @@ import (
"path/filepath"
"strings"

"github.com/gitpod-io/gitpod/registry-facade/api/config"
"github.com/go-redis/redis/v8"
"github.com/golang/protobuf/jsonpb"

common_grpc "github.com/gitpod-io/gitpod/common-go/grpc"
"github.com/gitpod-io/gitpod/common-go/log"
"github.com/gitpod-io/gitpod/registry-facade/api"
"github.com/gitpod-io/gitpod/registry-facade/api/config"

"github.com/containerd/containerd/content/local"
"github.com/containerd/containerd/remotes"
"github.com/docker/distribution"
"github.com/docker/distribution/reference"
"github.com/docker/distribution/registry/api/errcode"
distv2 "github.com/docker/distribution/registry/api/v2"
"github.com/go-redis/redis/v8"
"github.com/golang/protobuf/jsonpb"
"github.com/gorilla/mux"
httpapi "github.com/ipfs/go-ipfs-http-client"
ma "github.com/multiformats/go-multiaddr"
Expand Down Expand Up @@ -282,6 +281,9 @@ func getRedisClient(cfg config.RedisConfig) (*redis.Client, error) {
SentinelAddrs: cfg.SentinelAddrs,
Username: cfg.Username,
Password: cfg.Password,

SentinelUsername: cfg.Username,
SentinelPassword: cfg.Username,
}), nil
}

Expand Down

0 comments on commit 783cecd

Please sign in to comment.