Skip to content

Add VersionCheck and Metadata to Agent labels #7737

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

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

AlexFenlon
Copy link
Contributor

Proposed changes

  • Add version check to see if it is Agent V2 or Agent V3
  • Add metadata on the deplyoment to send to Agent

Checklist

Before creating a PR, run through this checklist and mark each as complete.

  • I have read the CONTRIBUTING doc
  • I have added tests that prove my fix is effective or that my feature works
  • I have checked that all unit tests pass after adding my changes
  • I have updated necessary documentation
  • I have rebased my branch onto main
  • I will ensure my PR is targeting the main branch and pulling from my branch from my own fork

@AlexFenlon AlexFenlon requested a review from a team as a code owner May 2, 2025 13:22
@github-actions github-actions bot added enhancement Pull requests for new features/feature enhancements go Pull requests that update Go code labels May 2, 2025
@AlexFenlon AlexFenlon linked an issue May 2, 2025 that may be closed by this pull request
5 tasks
Copy link

codecov bot commented May 2, 2025

Codecov Report

Attention: Patch coverage is 35.39823% with 73 lines in your changes missing coverage. Please review.

Project coverage is 52.27%. Comparing base (a12b334) to head (cc74dad).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
internal/nginx/manager.go 0.00% 27 Missing ⚠️
...nternal/common_cluster_info/common_cluster_info.go 0.00% 26 Missing ⚠️
internal/metadata/metadata.go 71.87% 6 Missing and 3 partials ⚠️
cmd/nginx-ingress/main.go 0.00% 8 Missing ⚠️
internal/nginx/version.go 85.00% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7737      +/-   ##
==========================================
- Coverage   52.35%   52.27%   -0.08%     
==========================================
  Files          89       90       +1     
  Lines       21373    21478     +105     
==========================================
+ Hits        11190    11228      +38     
- Misses       9717     9780      +63     
- Partials      466      470       +4     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

return "", fmt.Errorf("replicaset %s has no owner", replicaSet.Name)
case "DaemonSet":
return owner.Name, nil
default:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should we allow users to use StatefulSets?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

didn't know we supported this, yeah i'll put it in.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

return "", err
}
owners := pod.GetOwnerReferences()
if len(owners) != 1 {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why might the pod only have one owner? The user can set this up how they want.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

similar to here

but yeah not sure why we had this like that...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Pull requests for new features/feature enhancements go Pull requests that update Go code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Include file with deployment metadata
2 participants