Skip to content

Commit

Permalink
Use lowercase keys
Browse files Browse the repository at this point in the history
  • Loading branch information
yiannistri committed Mar 11, 2022
1 parent f38a7ba commit aa9bd5f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
10 changes: 5 additions & 5 deletions cmd/gitops/ui/run/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,12 +191,12 @@ func runCmd(cmd *cobra.Command, args []string) error {
OIDCConfig.RedirectURL = options.OIDC.RedirectURL
OIDCConfig.TokenDuration = options.OIDC.TokenDuration
} else {
OIDCConfig.IssuerURL = string(secret.Data["IssuerURL"])
OIDCConfig.ClientID = string(secret.Data["ClientID"])
OIDCConfig.ClientSecret = string(secret.Data["ClientSecret"])
OIDCConfig.RedirectURL = string(secret.Data["RedirectURL"])
OIDCConfig.IssuerURL = string(secret.Data["issuerURL"])
OIDCConfig.ClientID = string(secret.Data["clientID"])
OIDCConfig.ClientSecret = string(secret.Data["clientSecret"])
OIDCConfig.RedirectURL = string(secret.Data["redirectURL"])

tokenDuration, err := time.ParseDuration(string(secret.Data["TokenDuration"]))
tokenDuration, err := time.ParseDuration(string(secret.Data["tokenDuration"]))
if err != nil {
appConfig.Logger.Error(err, "Invalid token duration")
tokenDuration = time.Hour
Expand Down
1 change: 0 additions & 1 deletion pkg/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ type ApplicationsConfig struct {
FetcherFactory applicationv2.FetcherFactory
GitlabAuthClient auth.GitlabAuthClient
ClusterConfig kube.ClusterConfig
UseOIDC bool
}

var _ applicationv2.FetcherFactory = &DefaultFetcherFactory{}
Expand Down

0 comments on commit aa9bd5f

Please sign in to comment.