1
0
Fork 0
mirror of https://github.com/external-secrets/external-secrets.git synced 2024-12-14 11:57:59 +00:00

fix: remove support for v1beta1 crds

This commit is contained in:
Moritz Johner 2022-01-17 21:44:33 +01:00
parent 418bb5a874
commit 40ff991e17
4 changed files with 6 additions and 8 deletions

View file

@ -18,8 +18,6 @@ IMAGE_REGISTRY ?= ghcr.io/external-secrets/external-secrets
PR_IMG_TAG ?= PR_IMG_TAG ?=
# Produce CRDs that work back to Kubernetes 1.11 (no version conversion)
CRD_OPTIONS ?= "crd:trivialVersions=true"
CRD_DIR ?= deploy/crds CRD_DIR ?= deploy/crds
HELM_DIR ?= deploy/charts/external-secrets HELM_DIR ?= deploy/charts/external-secrets
@ -134,10 +132,10 @@ fmt: lint.check ## Ensure consistent code style
generate: ## Generate code and crds generate: ## Generate code and crds
@go run sigs.k8s.io/controller-tools/cmd/controller-gen object:headerFile="hack/boilerplate.go.txt" paths="./..." @go run sigs.k8s.io/controller-tools/cmd/controller-gen object:headerFile="hack/boilerplate.go.txt" paths="./..."
@go run sigs.k8s.io/controller-tools/cmd/controller-gen $(CRD_OPTIONS) paths="./..." output:crd:artifacts:config=$(CRD_DIR) @go run sigs.k8s.io/controller-tools/cmd/controller-gen crd paths="./..." output:crd:artifacts:config=$(CRD_DIR)
# Remove extra header lines in generated CRDs # Remove extra header lines in generated CRDs
@for i in $(CRD_DIR)/*.yaml; do \ @for i in $(CRD_DIR)/*.yaml; do \
tail -n +3 <"$$i" >"$$i.bkp" && \ tail -n +2 <"$$i" >"$$i.bkp" && \
cp "$$i.bkp" "$$i" && \ cp "$$i.bkp" "$$i" && \
rm "$$i.bkp"; \ rm "$$i.bkp"; \
done done

View file

@ -2,7 +2,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition kind: CustomResourceDefinition
metadata: metadata:
annotations: annotations:
controller-gen.kubebuilder.io/version: v0.5.0 controller-gen.kubebuilder.io/version: v0.8.0
creationTimestamp: null creationTimestamp: null
name: clustersecretstores.external-secrets.io name: clustersecretstores.external-secrets.io
spec: spec:

View file

@ -2,7 +2,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition kind: CustomResourceDefinition
metadata: metadata:
annotations: annotations:
controller-gen.kubebuilder.io/version: v0.5.0 controller-gen.kubebuilder.io/version: v0.8.0
creationTimestamp: null creationTimestamp: null
name: externalsecrets.external-secrets.io name: externalsecrets.external-secrets.io
spec: spec:

View file

@ -2,7 +2,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition kind: CustomResourceDefinition
metadata: metadata:
annotations: annotations:
controller-gen.kubebuilder.io/version: v0.5.0 controller-gen.kubebuilder.io/version: v0.8.0
creationTimestamp: null creationTimestamp: null
name: secretstores.external-secrets.io name: secretstores.external-secrets.io
spec: spec: