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

run kind targets on the new repo #10

Merged
merged 4 commits into from
May 31, 2024
Merged

Conversation

msherif1234
Copy link
Contributor

@msherif1234 msherif1234 commented May 29, 2024

also fixes #9 Thanks to @astoycos !!

@msherif1234 msherif1234 force-pushed the fix_kind branch 2 times, most recently from 90ba1aa to 53d3f24 Compare May 29, 2024 18:45
Copy link

codecov bot commented May 29, 2024

Codecov Report

Attention: Patch coverage is 0% with 50 lines in your changes are missing coverage. Please review.

Project coverage is 26.38%. Comparing base (7f71813) to head (eb341c4).
Report is 1 commits behind head on main.

Files Patch % Lines
pkg/client/externalversions/factory.go 0.00% 21 Missing ⚠️
...lient/externalversions/apis/v1alpha1/bpfprogram.go 0.00% 3 Missing ⚠️
...nt/externalversions/apis/v1alpha1/fentryprogram.go 0.00% 3 Missing ⚠️
...ent/externalversions/apis/v1alpha1/fexitprogram.go 0.00% 3 Missing ⚠️
...nt/externalversions/apis/v1alpha1/kprobeprogram.go 0.00% 3 Missing ⚠️
...client/externalversions/apis/v1alpha1/tcprogram.go 0.00% 3 Missing ⚠️
...xternalversions/apis/v1alpha1/tracepointprogram.go 0.00% 3 Missing ⚠️
...nt/externalversions/apis/v1alpha1/uprobeprogram.go 0.00% 3 Missing ⚠️
...lient/externalversions/apis/v1alpha1/xdpprogram.go 0.00% 3 Missing ⚠️
controllers/bpfman-operator/common.go 0.00% 1 Missing and 1 partial ⚠️
... and 3 more
Additional details and impacted files
@@             Coverage Diff             @@
##             main      #10       +/-   ##
===========================================
- Coverage   43.82%   26.38%   -17.44%     
===========================================
  Files          18       75       +57     
  Lines        1716     5021     +3305     
===========================================
+ Hits          752     1325      +573     
- Misses        846     3532     +2686     
- Partials      118      164       +46     
Flag Coverage Δ
unittests 26.38% <0.00%> (-17.44%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@msherif1234 msherif1234 force-pushed the fix_kind branch 9 times, most recently from a899de3 to da52dac Compare May 30, 2024 00:17
Makefile Outdated
@@ -302,13 +302,13 @@ build-images: ## Build bpfman, bpfman-agent, and bpfman-operator images.
docker build -t ${BPFMAN_AGENT_IMG} -f Containerfile.bpfman-agent ./

.PHONY: push-images
push-images: ## Push bpfman, bpfman-agent, bpfman-operator images.
push-images: ## bpfman-agent, bpfman-operator images.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
push-images: ## bpfman-agent, bpfman-operator images.
push-images: ## Push bpfman-agent, bpfman-operator images.

Makefile Outdated

.PHONY: load-images-kind
load-images-kind: ## Load bpfman, bpfman-agent, and bpfman-operator images into the running local kind devel cluster.
docker pull ${BPFMAN_IMG}
Copy link
Member

Choose a reason for hiding this comment

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

No point in doing this, just remove locally loading the bpfman image

Comment on lines 81 to 83
## TODO(astoycos) Currently this is just done to ensure we have coverage
## on all image builds. Ultimately we should be running the integration
## tests with these locally built bytecode images.
Copy link
Member

Choose a reason for hiding this comment

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

You can remove this TODO :)

@@ -0,0 +1,18 @@
---
Copy link
Member

Choose a reason for hiding this comment

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

Hrm so I don't think we should be duplicating all these here, let's talk more about the best way to install the example manifests when they live in their own repo, I'm thinking we could just maintain a static yaml and do something like

kustomize apply -k https://raw.githubusercontent.com/bpfman/bpfman/main/examples/config/base/go-xdp-counter/<FULL YAML>

@msherif1234 msherif1234 force-pushed the fix_kind branch 5 times, most recently from 7d378ed to 2712898 Compare May 30, 2024 22:00
Signed-off-by: Mohamed Mahmoud <[email protected]>
update a bunch of tooling around k8s code generators
and fixup based on breaking changes

reorganize client package a bit to remove redundancy

Upgrade to go 1.22

Signed-off-by: Andrew Stoycos <[email protected]>
fix a logr panic in int tests

make sure the unit test fake harness honors
object sub-statuses

Signed-off-by: Andrew Stoycos <[email protected]>
@astoycos astoycos force-pushed the fix_kind branch 3 times, most recently from ff80baf to eb341c4 Compare May 31, 2024 06:42
@astoycos astoycos merged commit 8abeb40 into bpfman:main May 31, 2024
4 of 5 checks passed
msherif1234 added a commit to msherif1234/bpfman-operator that referenced this pull request Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

r.Status().Update() returns object not found during UT from both operator and agent controllers
2 participants