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

8 views
Skip to first unread message

Kirill Kiyutin

unread,
Aug 27, 2020, 7:07:26 AM8/27/20
to kubernetes/kubernetes, k8s-mirror-api-machinery-bugs, Team mention

Is there a workaround for this that doesn't involve deleting the deployment?


You are receiving this because you are on a team that was mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.

jethrogb

unread,
Aug 27, 2020, 7:09:53 AM8/27/20
to kubernetes/kubernetes, k8s-mirror-api-machinery-bugs, Team mention

Use edit, patch, or replace, instead of apply.

Michal Stanke

unread,
Aug 27, 2020, 7:17:56 AM8/27/20
to kubernetes/kubernetes, k8s-mirror-api-machinery-bugs, Team mention

@kiyutink for me there was.

solution was to kubectl apply once more. Then it got all fixed and the env variable appeared back as defined in the manifest.

zhangguanzhang

unread,
Aug 12, 2021, 10:38:22 PM8/12/21
to kubernetes/kubernetes, k8s-mirror-api-machinery-bugs, Team mention

same issue with 1.20.6

kubectl version -o json
{
  "clientVersion": {
    "major": "1",
    "minor": "20",
    "gitVersion": "v1.20.6",
    "gitCommit": "8a62859e515889f07e3e3be6a1080413f17cf2c3",
    "gitTreeState": "clean",
    "buildDate": "2021-04-15T03:28:42Z",
    "goVersion": "go1.15.10",
    "compiler": "gc",
    "platform": "linux/amd64"
  },
  "serverVersion": {
    "major": "1",
    "minor": "20",
    "gitVersion": "v1.20.6",
    "gitCommit": "8a62859e515889f07e3e3be6a1080413f17cf2c3",
    "gitTreeState": "clean",
    "buildDate": "2021-04-15T03:19:55Z",
    "goVersion": "go1.15.10",
    "compiler": "gc",
    "platform": "linux/amd64"
  }
}


You are receiving this because you are on a team that was mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.

Triage notifications on the go with GitHub Mobile for iOS or Android.

Nadav Buchman

unread,
Jul 20, 2023, 5:59:36 AM7/20/23
to kubernetes/kubernetes, k8s-mirror-api-machinery-bugs, Team mention

Just happened to me on both 1.25 and 1.26
Duplicated configmap for which key and name were changed + duplication removed on same apply - the env var is completely absent after applying
ORIGINAL:

GENERAL_STATSD_HOST:   <set to the key 'host' of config map 'general.statsd'>    Optional: false
GENERAL_STATSD_HOST:   <set to the key 'host' of config map 'general.statsd'>    Optional: false

EXPECTED:

GENERAL_STATSD_HOST:   <set to the key 'yard.host' of config map 'general.statsd-k8s'>    Optional: false

ACTUAL


Resolved after re-applying


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/1643632040@github.com>

Reply all
Reply to author
Forward
0 new messages