hashicorp / terraform-k8s

Terraform Cloud Operator for Kubernetes
https://learn.hashicorp.com/tutorials/terraform/kubernetes-operator?in=terraform/kubernetes
Mozilla Public License 2.0
454 stars 71 forks source link

Updating Makefile and CRD to latest version #129

Closed jtyr closed 2 years ago

jtyr commented 2 years ago

Community Note


This PR is updating the Makefile to be usable with latest kubebulkder (v3.3.0) and controller-gen (v0.8.0). As a consequence of this update, the CRD to is updated to the latest apiVersion: apiextensions.k8s.io/v1. It was generated by running make manifests.

Output:

$ kubectl describe workspace test
Name:         test
Namespace:    default
Labels:       <none>
Annotations:  <none>
API Version:  app.terraform.io/v1alpha1
Kind:         Workspace
...

Release note for CHANGELOG:

Updated Makefile to be usable with latest version of kubebuilder and controller-gen.
CRD apiVersion updated to apiextensions.k8s.io/v1.
hashicorp-cla commented 2 years ago

CLA assistant check
All committers have signed the CLA.

alexsomesan commented 2 years ago

Hi, I tried to re-run make manifests again on a local clone of this branch and it's failing with not finding the controller-gen binary.

The strange thing is that it's looking for it under the local repo directory. Here's what I'm getting:

/Users/alex/work/terraform-k8s/bin/controller-gen rbac:roleName=manager-role crd webhook paths="./..." output:crd:artifacts:config=config/crd/bases
bash: /Users/alex/work/terraform-k8s/bin/controller-gen: No such file or directory
make: *** [manifests] Error 127