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

Update cron-job.yml #792

Closed
satyampsoni opened this issue Aug 2, 2023 · 2 comments · Fixed by #947
Closed

Update cron-job.yml #792

satyampsoni opened this issue Aug 2, 2023 · 2 comments · Fixed by #947
Labels
helping with an issue Debugging happening to identify the problem

Comments

@satyampsoni
Copy link

What steps did you take:
I was trying the command kapp deploy -a hellocron -f cron-job.yml -y and got an error shown in the screenshot.
image
apiVersion: batch/v1beta1 is not supported for the newer version of Kubernetes rather than apiVersion: batch/v1.

Environment:

  • kapp Controller version (execute kubectl get deployment -n kapp-controller kapp-controller -o yaml and the annotation is kbld.k14s.io/images):
  • Kubernetes version (use kubectl version)

Vote on this request

This is an invitation to the community to vote on issues, to help us prioritize our backlog. Use the "smiley face" up to the right of this comment to vote.

👍 "I would like to see this addressed as soon as possible"
👎 "There are other more important things to focus on right now"

We are also happy to receive and review Pull Requests if you want to help working on this issue.

@satyampsoni satyampsoni added the bug This issue describes a defect or unexpected behavior label Aug 2, 2023
@praveenrewar
Copy link
Member

Transferring this issue to carvel-dev/kapp as it seems more relevant there.

@praveenrewar praveenrewar transferred this issue from carvel-dev/kapp-controller Aug 3, 2023
@praveenrewar praveenrewar added helping with an issue Debugging happening to identify the problem and removed bug This issue describes a defect or unexpected behavior labels Aug 3, 2023
@praveenrewar
Copy link
Member

@satyampsoni I think you are trying to deploy a CustomResource of kind CronJob and the CustomResourceDefinition doesn't exist on the cluster. You would need the CRD on the cluster before you can create a CustomResource, or you can deploy both of them together using kapp and they will be automatically ordered and the CRD will be created first and then the CR.

Could you share what your expectation was in this case?

@praveenrewar praveenrewar linked a pull request May 2, 2024 that will close this issue
@github-project-automation github-project-automation bot moved this to Closed in Carvel May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
helping with an issue Debugging happening to identify the problem
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants