# APiVersion- v1- error

**URL:** <https://discuss.kubernetes.io/t/apiversion-v1-error/20292>\
**Category:** General Discussions\
**Created:** [June 12, 2022, 12:06pm UTC](https://discuss.kubernetes.io/t/apiversion-v1-error/20292 "2022-06-12T12:06:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![FridaW](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.kubernetes.io/fridaw/32/10275_2.png) [@FridaW](https://discuss.kubernetes.io/u/FridaW)\
**Post date:** [June 12, 2022, 12:06pm UTC](https://discuss.kubernetes.io/t/apiversion-v1-error/20292/1 "2022-06-12T12:06:40Z")

</div>

Hi,  
I have a question:  
this it my yaml:

```auto
apiVersion: v1
kind: Namespace
metadata:
  name: somename

```

and I got this:

> (inner-domain-328310)$ kubectl apply -f .  
> W0612 11:52:56.368885 624 gcp.go:120] WARNING: the gcp auth plugin is deprecated in v1.22+, unavailable in v1.25+; use gcloud instead.  
> To learn more, consult [https://cloud.google.com/blog/products/containers-kubernetes/kubectl-auth-changes-in-gke](https://cloud.google.com/blog/products/containers-kubernetes/kubectl-auth-changes-in-gke)  
> error validating “somename.yaml”: error validating data: apiVersion not set; if you choose to ignore these errors, turn validation off with --validate=false  
> error validating “sd.yaml”: error validating data: apiVersion not set; if you choose to ignore these errors, turn validation off with --validate=false

someone knows what the problem is?  
thanks
