kubernetes-cronhpa-controller icon indicating copy to clipboard operation
kubernetes-cronhpa-controller copied to clipboard

[Proposal] Add replicas/updatedReplicas/availableReplicas/unavailableReplicas to job status

Open mdl-mhy opened this issue 1 year ago • 0 comments

It'll be quite useful to add these information to those scalable objects. e.g.,

apiVersion: autoscaling.alibabacloud.com/v1beta1
kind: CronHorizontalPodAutoscaler
metadata:
  name: foo
  namespace: testing
spec:
  jobs:
  - name: job1
    schedule: 0 03 18 * * *
    targetSize: 1
  scaleTargetRef:
    apiVersion: apps/v1
    kind: Deployment
    name: dep1
status:
  conditions:
  - jobId: ee23a447-a173-43eb-a400-77398c4bc0f4
    lastProbeTime: "2024-08-11T10:03:00Z"
    message: xxxx
    name: job1
    runOnce: false
    schedule: 0 03 18 * * *
    state: Succeed
    targetSize: 1
  scaleTargetRef:
    apiVersion: apps/v1
    kind: Deployment
    name: dep1

image

mdl-mhy avatar Aug 12 '24 08:08 mdl-mhy