kubevela / terraform-controller

A Kubernetes Terraform Controller, managing Cloud resources through Kubernetes
Apache License 2.0
155 stars 69 forks source link

warning when applying CRDs into Kubernetes v1.22. #255

Open zzxwill opened 2 years ago

zzxwill commented 2 years ago

Reported by @anoop2811.

make install
/Users/agopalakrishnan/go/bin/controller-gen "crd:trivialVersions=true" webhook paths="./..." output:crd:artifacts:config=chart/crds
kubectl apply -f chart/crds
Warning: apiextensions.k8s.io/v1beta1 CustomResourceDefinition is deprecated in v1.16+, unavailable in v1.22+; use apiextensions.k8s.io/v1 CustomResourceDefinition
Warning: resource customresourcedefinitions/configurations.terraform.core.oam.dev is missing the kubectl.kubernetes.io/last-applied-configuration annotation which is required by kubectl apply. kubectl apply should only be used on resources created declaratively by either kubectl create --save-config or kubectl apply. The missing annotation will be patched automatically.
customresourcedefinition.apiextensions.k8s.io/configurations.terraform.core.oam.dev configured
Warning: resource customresourcedefinitions/providers.terraform.core.oam.dev is missing the kubectl.kubernetes.io/last-applied-configuration annotation which is required by kubectl apply. kubectl apply should only be used on resources created declaratively by either kubectl create --save-config or kubectl apply. The missing annotation will be patched automatically.
customresourcedefinition.apiextensions.k8s.io/providers.terraform.core.oam.dev configured
zzxwill commented 2 years ago

Hi @anoop2811 As the parent project oam-dev/kubevela hasn't upgraded to support v1.22, I will hold this issue. As most of time, Terraform Controller is released with oam-dev/kubevela.

wonderflow commented 2 years ago

@zzxwill KubeVela has changed all CRD version from v1beta1 to v1, please also upgrade for the terraform controller.