Skip to content

Commit

Permalink
Add OIDC auth support in kubectl-etcd plugin (#272)
Browse files Browse the repository at this point in the history
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 -->
  • Loading branch information
evgkrsk authored Jan 31, 2025
1 parent bfcf533 commit d059eb3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/kubectl-etcd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import (
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/client-go/kubernetes"
_ "k8s.io/client-go/plugin/pkg/client/auth" // Import all auth providers
"k8s.io/client-go/tools/clientcmd"
"k8s.io/client-go/tools/portforward"
"k8s.io/client-go/transport/spdy"
Expand Down

0 comments on commit d059eb3

Please sign in to comment.