Skip to content

Commit

Permalink
Update HPA to v2 in CUE definitions
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
  • Loading branch information
stefanprodan committed Dec 23, 2022
1 parent e2e85a9 commit 0f9c989
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cue/podinfo/hpa.cue
@@ -1,7 +1,7 @@
package podinfo

import (
autoscaling "k8s.io/api/autoscaling/v2beta2"
autoscaling "k8s.io/api/autoscaling/v2"
)

#hpaConfig: {
Expand All @@ -14,7 +14,7 @@ import (

#HorizontalPodAutoscaler: autoscaling.#HorizontalPodAutoscaler & {
_config: #Config
apiVersion: "autoscaling/v2beta2"
apiVersion: "autoscaling/v2"
kind: "HorizontalPodAutoscaler"
metadata: _config.meta
spec: {
Expand Down
2 changes: 1 addition & 1 deletion cue/podinfo/servicemonitor.cue
Expand Up @@ -17,6 +17,6 @@ package podinfo
interval: _config.serviceMonitor.interval
}]
namespaceSelector: matchNames: [_config.meta.namespace]
selector: matchLabels: _config.meta.labels
selector: matchLabels: _config.meta.labels
}
}

0 comments on commit 0f9c989

Please sign in to comment.