Skip to content

feat: add status.resourcesCount field to appset and change limit default#24698

Merged
alexmt merged 1 commit into
argoproj:masterfrom
alexmt:resource-limit-default
Sep 23, 2025
Merged

feat: add status.resourcesCount field to appset and change limit default#24698
alexmt merged 1 commit into
argoproj:masterfrom
alexmt:resource-limit-default

Conversation

@alexmt

@alexmt alexmt commented Sep 22, 2025

Copy link
Copy Markdown
Collaborator

PR is a followup for #24690

It changes the default limit of number of resources stored in applicationset status to 5000.
Also adds resourcesCount field to help building future applicationset UI that will show appset resources tree.

@alexmt alexmt requested a review from a team as a code owner September 22, 2025 21:46
@bunnyshell

bunnyshell Bot commented Sep 22, 2025

Copy link
Copy Markdown

❌ Preview Environment deleted from Bunnyshell

Available commands (reply to this comment):

  • 🚀 /bns:deploy to deploy the environment

// Resources is a list of Applications resources managed by this application set.
Resources []ResourceStatus `json:"resources,omitempty" protobuf:"bytes,3,opt,name=resources"`
Resources []ResourceStatus `json:"resources,omitempty" protobuf:"bytes,3,opt,name=resources"`
ResourcesCount int64 `json:"resourcesCount,omitempty" protobuf:"varint,4,opt,name=resourcesCount"`

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Should have a docstring for this, particularly to explain it may differ from the actual length of resources.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Makes sense. Added documentation

Signed-off-by: Alexander Matyushentsev <AMatyushentsev@gmail.com>
@alexmt alexmt force-pushed the resource-limit-default branch from 6f5cdf9 to 9d76def Compare September 22, 2025 22:08
@codecov

codecov Bot commented Sep 22, 2025

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 60.48%. Comparing base (452f6c6) to head (9d76def).
⚠️ Report is 783 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #24698      +/-   ##
==========================================
- Coverage   60.51%   60.48%   -0.04%     
==========================================
  Files         350      350              
  Lines       60196    60199       +3     
==========================================
- Hits        36430    36411      -19     
- Misses      20832    20849      +17     
- Partials     2934     2939       +5     

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

@alexmt alexmt enabled auto-merge (squash) September 22, 2025 22:51
@alexmt

alexmt commented Sep 23, 2025

Copy link
Copy Markdown
Collaborator Author

thanks for review @crenshaw-dev PTAL

@alexmt alexmt merged commit f6f1a42 into argoproj:master Sep 23, 2025
28 checks passed
@alexmt alexmt added the cherry-pick/3.2 Candidate for cherry picking into the 3.2 release branch label Sep 23, 2025
@alexmt alexmt deleted the resource-limit-default branch September 23, 2025 16:21
@argo-cd-cherry-pick-bot

Copy link
Copy Markdown

❌ Cherry-pick failed for 3.2. Please check the workflow logs for details.

alexmt added a commit to alexmt/argo-cd that referenced this pull request Sep 23, 2025
…ult (argoproj#24698)

Signed-off-by: Alexander Matyushentsev <AMatyushentsev@gmail.com>
alexmt added a commit that referenced this pull request Sep 24, 2025
…ult (#24698) (#24711)

Signed-off-by: Alexander Matyushentsev <AMatyushentsev@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cherry-pick/3.2 Candidate for cherry picking into the 3.2 release branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants