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

[Bug]: missing apiVersion for CronJob and HorizontalPodAutoscaler in generate mode #2767

Open
chlunde opened this issue Dec 16, 2024 · 0 comments · May be fixed by #2768
Open

[Bug]: missing apiVersion for CronJob and HorizontalPodAutoscaler in generate mode #2767

chlunde opened this issue Dec 16, 2024 · 0 comments · May be fixed by #2768
Labels
bug Something isn't working

Comments

@chlunde
Copy link
Contributor

chlunde commented Dec 16, 2024

What happened?

In generate mode, the apiVersion for CronJob and HorizontalPodAutoscaler (HPA) is missing in the YAML manifest.

Steps to reproduce

  1. go run . generate --cr examples/simple-prod.yaml | grep -E '(Horiz|CronJob)' -A 1 -B 1
---
kind: CronJob
metadata:
--
---
kind: CronJob
metadata:
--
---
kind: HorizontalPodAutoscaler
metadata:

notice: no apiVersion

Expected behavior

apiVersion: batch/v1
kind: CronJob
metadata:
--
apiVersion: batch/v1
kind: CronJob
metadata:
--
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
@chlunde chlunde added the bug Something isn't working label Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant