Skip to content
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

feat: kubernetes relationship by lookup #321

Merged
merged 3 commits into from
Nov 29, 2023

Conversation

adityathebe
Copy link
Member

resolves: #320

Copy link

github-actions bot commented Nov 27, 2023

E2E -

0 tests   0 ✔️  0s ⏱️
0 suites  0 💤
0 files    0

Results for commit faeea56.

♻️ This comment has been updated with latest results.

@adityathebe adityathebe marked this pull request as ready for review November 27, 2023 13:29
@adityathebe adityathebe force-pushed the feat/kubernetes-link-resources branch 2 times, most recently from 4683347 to e1487f9 Compare November 27, 2023 14:29
@adityathebe adityathebe requested a review from moshloop November 27, 2023 14:29
db/update.go Outdated Show resolved Hide resolved
@moshloop
Copy link
Member

@adityathebe Could we update the example fixture and maybe add an integration test?

db/config.go Outdated Show resolved Hide resolved
@adityathebe adityathebe force-pushed the feat/kubernetes-link-resources branch from 53ae2cd to faeea56 Compare November 28, 2023 15:50
@adityathebe adityathebe requested a review from moshloop November 28, 2023 15:52
Expect(err).To(BeNil())

Expect(len(configRelationships)).To(Equal(1))
Expect(configRelationships[0].Relation).To(Equal("ConfigMapConfigMap"))
Copy link
Member

Choose a reason for hiding this comment

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

I think this should just be ConfigMap

Copy link
Member Author

Choose a reason for hiding this comment

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

Aren't we concatenating the kind of the two related objects? Eg (from azure demo):

PodConfigMap                    
NodePod           
GrafanaConfigMap         
EKSNode                         
DaemonSetPod

Copy link
Member

Choose a reason for hiding this comment

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

We shouldn't be, but we can tackle that later

Copy link
Member Author

Choose a reason for hiding this comment

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

@moshloop moshloop merged commit 0fea290 into main Nov 29, 2023
7 checks passed
Copy link

🎉 This PR is included in version 0.0.147 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Kubernetes - Link resources by labels
2 participants