Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

cli: add support for --kubeconfig flag

Đang mở
#386 0 bình luận 1 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
68/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
go
Lĩnh vực
cli

Hướng nghiên cứu

Start by locating the CLI command setup and the existing Kubernetes client configuration, then trace how the KUBECONFIG environment variable is read. Verify the relevant command help and tests before implementing the flag; done means CLI requests can use an explicitly supplied kubeconfig path without relying on KUBECONFIG.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

enhancement
What problem are you facing?

Switching around kubeconfig files using the KUBECONFIG environment variable might be error prone (e.g. when running commands from history in distinct terminals).

How could Crossplane help solve your problem?

Kubectl and most k8s related clis support the --kubeconfig command line argument in order to support "stateless commands" that don't rely on KUBECONFIG environment variable being set

flux --help | grep '\--kubeconfig'
#>      --kubeconfig string              Path to the kubeconfig file to use for CLI requests.

kubectl cnpg --help | grep '\--kubeconfig'
#>      --kubeconfig string                 Path to the kubeconfig file to use for CLI requests.

kyverno --help | grep 'kubeconfig'
#      --kubeconfig string                   Paths to a kubeconfig. Only required if out-of-cluster.

velero --help | grep 'kubeconfig'
#>      --kubeconfig string                   Path to the kubeconfig file to use to talk to the Kubernetes apiserver. If unset, try the environment variable KUBECONFIG, as well as in-cluster configuration

k9s --help | grep '\--kubeconfig'
#>      --kubeconfig string              Path to the kubeconfig file to use for CLI requests
Ngôn ngữ chính
Go
Star
19
Fork
31
Merge trung bình
2 ngày 12 giờ
Pull request đã merge (30 ngày)
52

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của crossplane/cli

Tất cả issue của crossplane/cli

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.