-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pkg/k8s: use subresource "nodes/status" to update node annotations #19590
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
maintainer-s-little-helper
bot
added
the
dont-merge/needs-release-note-label
The author needs to describe the release impact of these changes.
label
Apr 27, 2022
/test |
aanm
force-pushed
the
pr/trim-down-cilium-clusterrole
branch
from
April 27, 2022 12:42
a90ff4e
to
f1c2c89
Compare
/test |
aanm
added
release-note/misc
This PR makes changes that have no direct user impact.
release-blocker/1.12
This issue will prevent the release of the next version of Cilium.
labels
Apr 27, 2022
maintainer-s-little-helper
bot
removed
the
dont-merge/needs-release-note-label
The author needs to describe the release impact of these changes.
label
Apr 27, 2022
sayboras
reviewed
Apr 27, 2022
install/kubernetes/cilium/templates/cilium-agent/clusterrole.yaml
Outdated
Show resolved
Hide resolved
aanm
force-pushed
the
pr/trim-down-cilium-clusterrole
branch
from
April 27, 2022 15:09
f1c2c89
to
6f5b095
Compare
/test Job 'Cilium-PR-K8s-1.22-kernel-4.19' failed: Click to show.Test Name
Failure Output
If it is a flake and a GitHub issue doesn't already exist to track it, comment |
sayboras
approved these changes
Apr 27, 2022
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
$ kg node kind-worker -o json | jq .metadata.annotations
{
"io.cilium.network.ipv4-cilium-host": "10.0.0.227",
"io.cilium.network.ipv4-health-ip": "10.0.0.190",
"io.cilium.network.ipv4-pod-cidr": "10.0.0.0/24",
"kind.x-k8s.io/registry": "localhost:5000",
"kubeadm.alpha.kubernetes.io/cri-socket": "unix:///run/containerd/containerd.sock",
"node.alpha.kubernetes.io/ttl": "0",
"volumes.kubernetes.io/controller-managed-attach-detach": "true"
}
We can use the "status" subresource to update node annotations which also allow us to reduce the clusterrole's permissions of the cilium DaemonSet even further. Signed-off-by: André Martins <andre@cilium.io>
aanm
force-pushed
the
pr/trim-down-cilium-clusterrole
branch
from
April 27, 2022 21:37
6f5b095
to
1add133
Compare
/(test-1.22-4.19 |
/test-1.22-4.19 |
This was referenced May 3, 2022
maintainer-s-little-helper
bot
moved this from Backport pending to v1.10
to Backport done to v1.10
in 1.10.11
May 4, 2022
maintainer-s-little-helper
bot
moved this from Backport pending to v1.9
to Backport done to v1.9
in 1.9.16
May 4, 2022
aanm
added
backport-done/1.11
The backport for Cilium 1.11.x for this PR is done.
and removed
backport-pending/1.11
labels
May 4, 2022
maintainer-s-little-helper
bot
moved this from Backport pending to v1.10
to Backport done to v1.11
in 1.11.5
May 4, 2022
This was referenced May 9, 2022
Closed
2 tasks
✔️ LGTM |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
backport-done/1.11
The backport for Cilium 1.11.x for this PR is done.
release-blocker/1.12
This issue will prevent the release of the next version of Cilium.
release-note/misc
This PR makes changes that have no direct user impact.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
We can use the "status" subresource to update node annotations which
also allow us to reduce the clusterrole's permissions of the cilium
DaemonSet even further.
Signed-off-by: André Martins andre@cilium.io