Skip to content

feat(list): add replica count - #4011

Draft
pmeida wants to merge 1 commit into
knative:mainfrom
pmeida:feat/func-list-replica-count
Draft

feat(list): add replica count#4011
pmeida wants to merge 1 commit into
knative:mainfrom
pmeida:feat/func-list-replica-count

Conversation

@pmeida

@pmeida pmeida commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

Changes

  • Add REPLICAS column to func list output - each deployer backend (k8s, keda, knative) populates a Replicas field on ListItem from the live deployment state

/kind enhancement

Fixes #4004

Release Note

`func list` now shows a `REPLICAS` column indicating how many ready instances of each deployed function are currently running.

Docs


@knative-prow knative-prow Bot added do-not-merge/work-in-progress 🤖 PR should not merge because it is a work in progress. kind/enhancement Feature additions or improvements to existing labels Aug 14, 2026
@knative-prow

knative-prow Bot commented Aug 14, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: pmeida
Once this PR has been reviewed and has the lgtm label, please assign dprotaso for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@knative-prow-robot knative-prow-robot added the needs-rebase Cannot be merged due to conflicts with HEAD. label Aug 14, 2026
@knative-prow knative-prow Bot added size/L 🤖 PR changes 100-499 lines, ignoring generated files. needs-ok-to-test 🤖 Needs an org member to approve testing labels Aug 14, 2026
@knative-prow

knative-prow Bot commented Aug 14, 2026

Copy link
Copy Markdown

Hi @pmeida. Thanks for your PR.

I'm waiting for a knative member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work.

Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@pmeida pmeida changed the title Add replica count to func list output feat(list): add replica count Aug 14, 2026
func list showed no replica information, making it impossible
to tell at a glance how many instances of a function were
running without reaching for kubectl.

Adds a Replicas field to ListItem populated by each deployer
backend: k8s reads deployment.Status.ReadyReplicas, keda fetches
the backing Deployment and does the same, and knative reads
ActualReplicas from the latest ready Revision. The REPLICAS
column is added to the plain text output. Integration tests
assert that a deployed function reports at least one replica.
@pmeida
pmeida force-pushed the feat/func-list-replica-count branch from c3889fe to 20af44d Compare August 14, 2026 15:09
@knative-prow-robot knative-prow-robot removed the needs-rebase Cannot be merged due to conflicts with HEAD. label Aug 14, 2026
@knative-prow knative-prow Bot added size/M 🤖 PR changes 30-99 lines, ignoring generated files. and removed size/L 🤖 PR changes 100-499 lines, ignoring generated files. labels Aug 14, 2026
@matejvasek
matejvasek requested a review from gauron99 August 14, 2026 18:26
@gauron99

Copy link
Copy Markdown
Contributor

you have conflicts here, otherwise looks good

@knative-prow-robot knative-prow-robot added the needs-rebase Cannot be merged due to conflicts with HEAD. label Aug 14, 2026
@knative-prow-robot

Copy link
Copy Markdown

PR needs rebase.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

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

Labels

do-not-merge/work-in-progress 🤖 PR should not merge because it is a work in progress. kind/enhancement Feature additions or improvements to existing needs-ok-to-test 🤖 Needs an org member to approve testing needs-rebase Cannot be merged due to conflicts with HEAD. size/M 🤖 PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

func list should show replica count

3 participants