# I have created cronjob resource . in the yaml definition i hv given apiVersion: batch/v1beta1 but after applying when i see resource definition changes to the apiVersion: batch/v1

**URL:** <https://discuss.kubernetes.io/t/i-have-created-cronjob-resource-in-the-yaml-definition-i-hv-given-apiversion-batch-v1beta1-but-after-applying-when-i-see-resource-definition-changes-to-the-apiversion-batch-v1/24408>\
**Category:** General Discussions\
**Tags:** development\
**Created:** [June 2, 2023, 2:16pm UTC](https://discuss.kubernetes.io/t/i-have-created-cronjob-resource-in-the-yaml-definition-i-hv-given-apiversion-batch-v1beta1-but-after-applying-when-i-see-resource-definition-changes-to-the-apiversion-batch-v1/24408 "2023-06-02T14:16:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rachna\_awasthi](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.kubernetes.io/rachna_awasthi/32/12649_2.png) [@rachna\_awasthi](https://discuss.kubernetes.io/u/rachna_awasthi)\
**Post date:** [June 2, 2023, 2:16pm UTC](https://discuss.kubernetes.io/t/i-have-created-cronjob-resource-in-the-yaml-definition-i-hv-given-apiversion-batch-v1beta1-but-after-applying-when-i-see-resource-definition-changes-to-the-apiversion-batch-v1/24408/1 "2023-06-02T14:16:53Z")

</div>

I have created cronjob resource . in the yaml definition i hv given apiVersion: batch/v1beta1 but after applying when i see resource definition changes to the apiVersion: batch/v1

### Cluster information:v1.23

Kubernetes version:v1.23  
Cloud being used: (aws)  
Installation method:  
Host OS:  
CNI and version:  
CRI and version:

You can format your yaml by highlighting it and pressing Ctrl-Shift-C, it will make your output easier to read.
