Skip to content

XXXX.yaml contains an invalid HorizontalPodAutoscaler #57

@emas80

Description

@emas80

Hi, I have a (correct) horizontal pod autoscaler definition, running on Kubernetes 1.7.11

When I launch kubeval with the -strict, even with -v 1.7.11, I get
core-api.yaml contains an invalid HorizontalPodAutoscaler
---> targetCPUUtilizationPercentage: Additional property targetCPUUtilizationPercentage is not allowed

But the property is correct. By removing the -strict the file is considered correct.
I need the -strict because I must be able to understand if some yaml contains values rejected by kubectl (e.g. adding a real not supported property)

Any ideas on why it tells me it is wrong? This is preventing us from adding this very useful script to our CI/CD release pipeline.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions