Skip to content

Add Hubble store getter to gain access to k8s data store.#12114

Merged
aanm merged 1 commit intocilium:masterfrom
lzang:master
Jun 17, 2020
Merged

Add Hubble store getter to gain access to k8s data store.#12114
aanm merged 1 commit intocilium:masterfrom
lzang:master

Conversation

@lzang
Copy link
Copy Markdown
Contributor

@lzang lzang commented Jun 16, 2020

Signed-off-by: Zang Li zangli@google.com

Add the StoreGetter function to Hubble to get access to k8s cache store for network policy and namespace.

@lzang lzang requested review from a team June 16, 2020 18:19
@maintainer-s-little-helper
Copy link
Copy Markdown

Please set the appropriate release note label.

Copy link
Copy Markdown
Member

@joestringer joestringer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM at a glance, will defer to @cilium/kubernetes on whether there's any requirements around sharing the k.namespaceStore across multiple parts of the codebase.

@joestringer joestringer added the release-note/misc This PR makes changes that have no direct user impact. label Jun 16, 2020
Comment thread daemon/cmd/hubble.go Outdated
@coveralls
Copy link
Copy Markdown

coveralls commented Jun 16, 2020

Coverage Status

Coverage decreased (-0.04%) to 37.013% when pulling 3bbbc83 on lzang:master into 496624b on cilium:master.

Signed-off-by: Zang Li <zangli@google.com>
@aanm
Copy link
Copy Markdown
Member

aanm commented Jun 16, 2020

test-me-please

@ciliumbot
Copy link
Copy Markdown

Build finished.

@maintainer-s-little-helper maintainer-s-little-helper Bot added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Jun 17, 2020
@aanm aanm merged commit 5148463 into cilium:master Jun 17, 2020
michi-covalent added a commit that referenced this pull request Jun 23, 2020
This is an extension to #12114 to give Hubble access to the pod store
with `K8sWatcher.GetStore("pod")`. This allows Hubble to provide more
context for flow data.

Signed-off-by: Michi Mutsuzaki <michi@isovalent.com>
michi-covalent added a commit that referenced this pull request Jun 25, 2020
This is an extension to #12114 to give Hubble access to the pod store
with `K8sWatcher.GetStore("pod")`. This allows Hubble to provide more
context for flow data.

Signed-off-by: Michi Mutsuzaki <michi@isovalent.com>
aanm pushed a commit that referenced this pull request Jun 26, 2020
This is an extension to #12114 to give Hubble access to the pod store
with `K8sWatcher.GetStore("pod")`. This allows Hubble to provide more
context for flow data.

Signed-off-by: Michi Mutsuzaki <michi@isovalent.com>
@gandro
Copy link
Copy Markdown
Member

gandro commented Jan 22, 2024

@lzang There seems to be no usages of this getter in the tree. Is this needed for some out of tree implementation?

Would it be possible for you to rely on Resources[{Pod,NetworkPolicy}].Store(ctx) going forward? I'm asking because an upcoming refactor is complicated by having to support this getter and I think the new Resources framework should be a suitable replacement which is less intertwined.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-to-merge This PR has passed all tests and received consensus from code owners to merge. release-note/misc This PR makes changes that have no direct user impact.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants