apiVersion: v1
policies:
  - name: Default
    isDefault: true
    rules:
    - identifier: HPA_MISSING_targetCPUUtilizationPercentage
      messageOnFailure: Missing targetCPUUtilizationPercentage - value should be in Percentage  
   customRules:
     - identifier: HPA_MISSING_targetCPUUtilizationPercentage
       name: Ensure HPA Has targetCPUUtilizationPercentage
       defaultMessageOnFailure: Missing targetCPUUtilizationPercentage - value should be in Percentage
       schema:
        properties:
          kind:
           enum:
            - HorizontalPodAutoscaler
          spec:
            type: object
            properties:
              targetCPUUtilizationPercentage:
                type: integer
            required:
            - targetCPUUtilizationPercentage
        required:
          - kind
          - spec
 