Skip to content

Commit d059eb3

Browse files
authored
Add OIDC auth support in kubectl-etcd plugin (#272)
Subj. Without such import, there is auth error: ``` Error setting up etcd client: error creating Kubernetes client: no Auth Provider found for name "oidc" ``` <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced commands for managing etcd pods, including status checks, defragmentation, compaction, alarm management, and member management. - **Bug Fixes** - Standardized error handling for improved user feedback during command execution. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent bfcf533 commit d059eb3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cmd/kubectl-etcd/main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import (
2020
corev1 "k8s.io/api/core/v1"
2121
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
2222
"k8s.io/client-go/kubernetes"
23+
_ "k8s.io/client-go/plugin/pkg/client/auth" // Import all auth providers
2324
"k8s.io/client-go/tools/clientcmd"
2425
"k8s.io/client-go/tools/portforward"
2526
"k8s.io/client-go/transport/spdy"

0 commit comments

Comments
 (0)