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
cli: add "cilium bpf config list" #26105
cli: add "cilium bpf config list" #26105
Conversation
2500b1d
to
9827b47
Compare
@@ -32,14 +32,21 @@ const ( | |||
AgentLiveness |
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.
@dylandreimerink @jrajahalme it looks like the "marker" entry UsedEntries
is unused and lost its meaning. When L2 Announcement has been introduced, a new entry has been added to the end (whereas the intention of the marker entry was to be the last entry).
should we delete the entry and move AgentLiveness
to second position?
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.
Moving AgentLiveness
is alright with me, as long as we do it before the feature freeze. Moving after that could pose upgrade issues if the map is not recreated. I also have no idea what UsedEntries
was supposed to be used for.
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.
@dylandreimerink thanks - removed the constant (in agent & common.h
)
removed review-request for @aditighag - as @dylandreimerink covered sig-datapath. he was willing to do the (full) review, because L2Announcement that he introduced is also using the runtime config map. |
This commit introduces the possibility to list the content of the BPF map "cilium_runtime_config" via the cilium cli command `cilium bpf config list`. Signed-off-by: Marco Hofstetter <marco.hofstetter@isovalent.com>
This commit introduces that runtime config map related information are dumped when executing the bugtool / sysdump. Signed-off-by: Marco Hofstetter <marco.hofstetter@isovalent.com>
9827b47
to
770c1ac
Compare
rebased to |
This commit removes the unused constant UsedEntries in the runtime config map. Therefore, AgentLiveness gets moved to position 1. Signed-off-by: Marco Hofstetter <marco.hofstetter@isovalent.com>
removed unused constant -> added |
/test |
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.
Looks great. The de-duplication of the index strings is nice
This PR introduces the possibility to list the content of the BPF map
cilium_runtime_config
via the cilium cli commandcilium bpf config list
.In addition, these information are dumped during sysdump with the bugtool.