Skip to content

Commit 826ea9e

Browse files
committed
Allow empty kubeconfig when server count lease system is enabled
1 parent 93284e6 commit 826ea9e

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

cmd/agent/app/options/options.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,9 +211,6 @@ func (o *GrpcProxyAgentOptions) Validate() error {
211211
if _, err := labels.Parse(o.ServerLeaseSelector); err != nil {
212212
return fmt.Errorf("invalid server count lease selector: %w", err)
213213
}
214-
if o.KubeconfigPath == "" {
215-
return fmt.Errorf("kubeconfig path must be provided if server count lease system is enabled")
216-
}
217214
}
218215
if o.KubeconfigPath != "" {
219216
if _, err := os.Stat(o.KubeconfigPath); os.IsNotExist(err) {

0 commit comments

Comments
 (0)