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

Validate metrics describeObject, make sure it doesn't point to non-existing objects #1

Open
shaoxt opened this issue Oct 15, 2020 · 0 comments

Comments

@shaoxt
Copy link
Collaborator

shaoxt commented Oct 15, 2020

describeObject doesn't support Rollout object.
Users should avoid to use Rollout object under "describeObject".

apiVersion: autoscaling/v2beta1
kind: HorizontalPodAutoscaler
metadata:
  labels:
    app: hpa-samples
  name: hpa
spec:
  maxReplicas: 10
  minReplicas: 2
  metrics:
    - object:
        metricName: namespace_app_pod_cpu_utilization
        targetValue: 80
        target:
          apiVersion: apps/v1
          kind: Deployment
          name: hpa-samples
      type: Object
  scaleTargetRef:
    apiVersion: apps/v1
    kind: Deployment
    name: hpa-samples-deployment
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

No branches or pull requests

1 participant