We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa01231 commit 696820aCopy full SHA for 696820a
pkg/config/config.go
@@ -13,8 +13,8 @@ import (
13
const (
14
ClusterProviderKubeConfig = "kubeconfig"
15
ClusterProviderInCluster = "in-cluster"
16
- ClusterProviderDisabled = "disabled"
17
ClusterProviderAuthHeaders = "auth-headers"
+ ClusterProviderDisabled = "disabled"
18
)
19
20
// StaticConfig is the configuration for the server.
pkg/kubernetes/auth_headers.go
@@ -101,7 +101,7 @@ func (h *K8sAuthHeaders) IsValid() bool {
101
if h.AuthorizationToken != "" {
102
return true
103
}
104
- if h.ClientCertificateData != nil && h.ClientKeyData != nil {
+ if len(h.ClientCertificateData) > 0 && len(h.ClientKeyData) > 0 {
105
106
107
return false
0 commit comments