Merge pull request #131741 from soltysh/deprecate_preferences

Deprecate kubeconfig's preference field in favor of kuberc

Kubernetes-commit: c40db09a0a2bf8df02be93d7da1912cfa7cbe333
This commit is contained in:
Kubernetes Publisher 2025-05-20 08:11:18 -07:00
commit 6096dfa3cf
4 changed files with 3 additions and 8 deletions

2
go.mod
View File

@ -32,7 +32,7 @@ require (
k8s.io/api v0.0.0-20250516033257-ffe08c772d5b k8s.io/api v0.0.0-20250516033257-ffe08c772d5b
k8s.io/apimachinery v0.0.0-20250516032956-da3bba90543c k8s.io/apimachinery v0.0.0-20250516032956-da3bba90543c
k8s.io/cli-runtime v0.0.0-20250516041905-f18b0eefe81b k8s.io/cli-runtime v0.0.0-20250516041905-f18b0eefe81b
k8s.io/client-go v0.0.0-20250516033711-025e06660a23 k8s.io/client-go v0.0.0-20250520151118-e9c99fd4fa7b
k8s.io/component-base v0.0.0-20250520155120-c849f9a4b209 k8s.io/component-base v0.0.0-20250520155120-c849f9a4b209
k8s.io/component-helpers v0.0.0-20250516035309-11a23324f3f5 k8s.io/component-helpers v0.0.0-20250516035309-11a23324f3f5
k8s.io/klog/v2 v2.130.1 k8s.io/klog/v2 v2.130.1

4
go.sum
View File

@ -203,8 +203,8 @@ k8s.io/apimachinery v0.0.0-20250516032956-da3bba90543c h1:32RPTmIMyn/cz7/8xxQ4Bh
k8s.io/apimachinery v0.0.0-20250516032956-da3bba90543c/go.mod h1:pJRnLHx/rdGhRBHKhKq/NczIcMw4cPylIe+hff1zJaU= k8s.io/apimachinery v0.0.0-20250516032956-da3bba90543c/go.mod h1:pJRnLHx/rdGhRBHKhKq/NczIcMw4cPylIe+hff1zJaU=
k8s.io/cli-runtime v0.0.0-20250516041905-f18b0eefe81b h1:0q2JAnd0WDOGwQT5EWtdZZY0W8JDxqbqm0b1llbJIjk= k8s.io/cli-runtime v0.0.0-20250516041905-f18b0eefe81b h1:0q2JAnd0WDOGwQT5EWtdZZY0W8JDxqbqm0b1llbJIjk=
k8s.io/cli-runtime v0.0.0-20250516041905-f18b0eefe81b/go.mod h1:4RA9rCeHNy1Ymrro9E4wWUVUlA8PNIk6bhsI9yC/RNw= k8s.io/cli-runtime v0.0.0-20250516041905-f18b0eefe81b/go.mod h1:4RA9rCeHNy1Ymrro9E4wWUVUlA8PNIk6bhsI9yC/RNw=
k8s.io/client-go v0.0.0-20250516033711-025e06660a23 h1:h8NujnSdqX3mcu0g7Tcls57Oy5AX1saqB8+mEX0vkbk= k8s.io/client-go v0.0.0-20250520151118-e9c99fd4fa7b h1:qjRvSQyv/mU2SIiFWJ6m+u9Vxy/noKYviJvzjrgtvPI=
k8s.io/client-go v0.0.0-20250516033711-025e06660a23/go.mod h1:70YvuiC0JxRnkbXLUExjxqfqaPzpA0RvkM0mUmvQ2Fo= k8s.io/client-go v0.0.0-20250520151118-e9c99fd4fa7b/go.mod h1:70YvuiC0JxRnkbXLUExjxqfqaPzpA0RvkM0mUmvQ2Fo=
k8s.io/component-base v0.0.0-20250520155120-c849f9a4b209 h1:65rKMkZDIqIauet7x/CTKoqRx1KDSYSAUX94A/h5Y/Y= k8s.io/component-base v0.0.0-20250520155120-c849f9a4b209 h1:65rKMkZDIqIauet7x/CTKoqRx1KDSYSAUX94A/h5Y/Y=
k8s.io/component-base v0.0.0-20250520155120-c849f9a4b209/go.mod h1:SzgZScd22fDw5rIfpj57jWZl3Nr88QOlw4DsgNGfHPQ= k8s.io/component-base v0.0.0-20250520155120-c849f9a4b209/go.mod h1:SzgZScd22fDw5rIfpj57jWZl3Nr88QOlw4DsgNGfHPQ=
k8s.io/component-helpers v0.0.0-20250516035309-11a23324f3f5 h1:+CBpPDBWCtj7qN0LhB1x56399vrxRyma7+EEG100J/U= k8s.io/component-helpers v0.0.0-20250516035309-11a23324f3f5 h1:+CBpPDBWCtj7qN0LhB1x56399vrxRyma7+EEG100J/U=

View File

@ -69,7 +69,6 @@ func Example_view() {
// name: federal-context // name: federal-context
// current-context: federal-context // current-context: federal-context
// kind: Config // kind: Config
// preferences: {}
// users: // users:
// - name: red-user // - name: red-user
// user: // user:

View File

@ -85,7 +85,6 @@ contexts:
name: my-cluster name: my-cluster
current-context: minikube current-context: minikube
kind: Config kind: Config
preferences: {}
users: users:
- name: minikube - name: minikube
user: user:
@ -165,7 +164,6 @@ contexts:
name: my-cluster name: my-cluster
current-context: minikube current-context: minikube
kind: Config kind: Config
preferences: {}
users: users:
- name: minikube - name: minikube
user: user:
@ -247,7 +245,6 @@ contexts:
name: minikube name: minikube
current-context: minikube current-context: minikube
kind: Config kind: Config
preferences: {}
users: users:
- name: minikube - name: minikube
user: user:
@ -272,7 +269,6 @@ contexts:
name: my-cluster name: my-cluster
current-context: my-cluster current-context: my-cluster
kind: Config kind: Config
preferences: {}
users: users:
- name: mu-cluster - name: mu-cluster
user: user: