Skip to content

Commit

Permalink
[FIX] - CRD Registration
Browse files Browse the repository at this point in the history
The schema generation was not run when the tfvars was added causing the field not to exist
  • Loading branch information
gambol99 committed Sep 9, 2024
1 parent 629e921 commit 3a9d7fb
Show file tree
Hide file tree
Showing 9 changed files with 40 additions and 18 deletions.
6 changes: 2 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,8 @@ controller-gen:
register-gen:
@echo "--> Generating schema register.go files"
@$(foreach api,$(APIS), \
echo " $(api)" && go run k8s.io/code-generator/cmd/register-gen -h hack/boilerplate.go.txt \
--output-file-base zz_generated_register \
-i github.com/appvia/terranetes-controller/pkg/apis/$(api) \
-p github.com/appvia/terranetes-controller/pkg/apis/$(api); )
echo " $(api)" && go run k8s.io/code-generator/cmd/register-gen --go-header-file hack/boilerplate.go.txt \
--output-file zz_generated_register; )

schema-gen:
@echo "--> Generating Kubernetes assets"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.14.0
controller-gen.kubebuilder.io/version: v0.15.0
name: cloudresources.terraform.appvia.io
spec:
group: terraform.appvia.io
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.14.0
controller-gen.kubebuilder.io/version: v0.15.0
name: configurations.terraform.appvia.io
spec:
group: terraform.appvia.io
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.14.0
controller-gen.kubebuilder.io/version: v0.15.0
name: contexts.terraform.appvia.io
spec:
group: terraform.appvia.io
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.14.0
controller-gen.kubebuilder.io/version: v0.15.0
name: plans.terraform.appvia.io
spec:
group: terraform.appvia.io
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.14.0
controller-gen.kubebuilder.io/version: v0.15.0
name: policies.terraform.appvia.io
spec:
group: terraform.appvia.io
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.14.0
controller-gen.kubebuilder.io/version: v0.15.0
name: providers.terraform.appvia.io
spec:
group: terraform.appvia.io
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.14.0
controller-gen.kubebuilder.io/version: v0.15.0
name: revisions.terraform.appvia.io
spec:
group: terraform.appvia.io
Expand Down
38 changes: 31 additions & 7 deletions pkg/register/assets.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3a9d7fb

Please sign in to comment.