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

Add status field information #98

Open
jthomperoo opened this issue Jul 9, 2022 · 0 comments · May be fixed by #99
Open

Add status field information #98

jthomperoo opened this issue Jul 9, 2022 · 0 comments · May be fixed by #99

Comments

@jthomperoo
Copy link
Owner

Is your feature request related to a problem? Please describe.
To help with debugging and to provide more context the CPA should give better information when reporting its status.

Describe the solution you'd like
The status should include these fields:

  • lastScaleTime is the last time the CustomPodAutoscaler scaled the number of pods, used by the autoscaler to keep track of downscale stabilization between restarts.
  • currentReplicas is the current number of replicas of pods managed by this autoscaler, as last seen by the autoscaler.
  • desiredReplicas is the desired number of replicas of pods managed by this autoscaler, as last calculated by the autoscaler.
  • currentMetrics is the last set of metrics gathered by this autoscaler, the last metrics gathered in the metric gathering stage
  • currentEvaluation is the last evaluation decision retrieved by this autoscaler, the last evaluation decision retrieved in the evaluation stage
  • reference is the identifier for the resource being scaled in the format <api-version>/<api-kind/<name>.

Of these fields only the reference could be populated by the operator, the rest would rely on the CPA itself updating them.

Along with these new status fields the CPA should also report some of this information as printer columns:

  • Last Scale Time is the last time the CustomPodAutoscaler scaled the number of pods.
  • Current Replicas is the current number of replicas of pods managed by this autoscaler.
  • Desired Replicas is the desired number of replicas of pods managed by this autoscaler.
  • Reference is the identifier for the resource being scaled in the format <api-version>/<api-kind/<name>.

Describe alternatives you've considered
N/A

Additional context
Would allow jthomperoo/custom-pod-autoscaler#168 to be implemented.

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 a pull request may close this issue.

1 participant