Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions pkg/proxy/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,11 @@ func New(restConfig *rest.Config,
config *Config) (*Proxy, error) {

// load the CA from the file listed in the options
caFromFile := CAFromFile{
CAFile: oidcOptions.CAFile,
var caFromFile oidc.CAContentProvider
if len(oidcOptions.CAFile) != 0 {
caFromFile = CAFromFile{
CAFile: oidcOptions.CAFile,
}
}

// setup static JWT Auhenticator
Expand Down