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 e6e9418 commit 99b10f8Copy full SHA for 99b10f8
cmd/server/main.go
@@ -235,6 +235,9 @@ func (o *ProxyRunOptions) Validate() error {
235
// validate agent authentication params
236
// all 4 parametes must be empty or must have value (except kubeconfigPath that might be empty)
237
if o.agentNamespace != "" || o.agentServiceAccount != "" || o.authenticationAudience != "" || o.kubeconfigPath != "" {
238
+ if o.clusterCaCert != "" {
239
+ return fmt.Errorf("clusterCaCert can not be used when service account authentication is enabled")
240
+ }
241
if o.agentNamespace == "" {
242
return fmt.Errorf("agentNamespace cannot be empty when agent authentication is enabled")
243
}
0 commit comments