Re: [kubernetes/kubernetes] `kubectl apply` (client-side) removes all entries when attempting to remove a single duplicated entry in a persisted object (#58477)

2 views
Skip to first unread message

issssu

unread,
May 6, 2024, 4:30:23 AM5/6/24
to kubernetes/kubernetes, k8s-mirror-api-machinery-bugs, Team mention

same issue with 1.25.3.
Why we need envs with same keys? Can we delete same keys automatically?
The warning may ignored, then next time, I delete this dulplicate key, but kubernetes delete all envs(with same keys), this will lead to serious accidents.


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are on a team that was mentioned.Message ID: <kubernetes/kubernetes/issues/58477/2095449140@github.com>

Benjamin Dumke-von der Ehe

unread,
Apr 17, 2025, 4:20:56 PMApr 17
to kubernetes/kubernetes, k8s-mirror-api-machinery-bugs, Team mention

Just want to leave another workaround here that worked in our case, maybe it helps someone else.

If you have a duplicate ENV_VAR and want to remove one of them, and (this is important and may or may not be the case for you) your container doesn't care about the casing of the variable name, so can remove one of the variables and change the casing of the other one.

Since Kubernetes considers ENV_VAR and Env_Var to be different things, this will circumvent the problem.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are on a team that was mentioned.Message ID: <kubernetes/kubernetes/issues/58477/2813939815@github.com>

balpha left a comment (kubernetes/kubernetes#58477)

Just want to leave another workaround here that worked in our case, maybe it helps someone else.

If you have a duplicate ENV_VAR and want to remove one of them, and (this is important and may or may not be the case for you) your container doesn't care about the casing of the variable name, so can remove one of the variables and change the casing of the other one.

Since Kubernetes considers ENV_VAR and Env_Var to be different things, this will circumvent the problem.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are on a team that was mentioned.Message ID: <kubernetes/kubernetes/issues/58477/2813939815@github.com>

Maciej Szulik

unread,
Aug 26, 2025, 8:28:34 AM (13 days ago) Aug 26
to kubernetes/kubernetes, k8s-mirror-api-machinery-bugs, Team mention
soltysh left a comment (kubernetes/kubernetes#58477)

#125932 is currently being tracked as the long-term solution


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are on a team that was mentioned.Message ID: <kubernetes/kubernetes/issues/58477/3223972960@github.com>

Reply all
Reply to author
Forward
0 new messages