Skip to content

Commit 1314fee

Browse files
committed
Upgrade CRDs to apiextensions.k8s.io/v1
1 parent 005066b commit 1314fee

File tree

6 files changed

+365
-315
lines changed

6 files changed

+365
-315
lines changed

.github/workflows/e2e.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
with:
2525
go-version: 1.14.x
2626
- name: Setup Kubernetes
27-
uses: engineerd/setup-kind@v0.3.0
27+
uses: engineerd/setup-kind@v0.4.0
2828
- name: Setup Helm
2929
uses: ./.github/actions/helm
3030
- name: Setup Kustomize
@@ -40,6 +40,7 @@ jobs:
4040
- name: Check if working tree is dirty
4141
run: |
4242
if [[ $(git diff --stat) != '' ]]; then
43+
git --no-pager diff
4344
echo 'run make test and commit changes'
4445
exit 1
4546
fi

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.13 as builder
1+
FROM golang:1.14 as builder
22

33
WORKDIR /workspace
44

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11

22
# Image URL to use all building/pushing image targets
33
IMG ?= fluxcd/helm-controller:latest
4-
# Produce CRDs that work back to Kubernetes 1.11 (no version conversion)
5-
CRD_OPTIONS ?= "crd:trivialVersions=true"
4+
# Produce CRDs that work back to Kubernetes 1.16
5+
CRD_OPTIONS ?= crd:crdVersions=v1
66

77
# Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set)
88
ifeq (,$(shell go env GOBIN))
@@ -88,7 +88,7 @@ ifeq (, $(shell which controller-gen))
8888
CONTROLLER_GEN_TMP_DIR=$$(mktemp -d) ;\
8989
cd $$CONTROLLER_GEN_TMP_DIR ;\
9090
go mod init tmp ;\
91-
go get sigs.k8s.io/controller-tools/cmd/controller-gen@v0.2.5 ;\
91+
go get sigs.k8s.io/controller-tools/cmd/controller-gen@v0.3.0 ;\
9292
rm -rf $$CONTROLLER_GEN_TMP_DIR ;\
9393
}
9494
CONTROLLER_GEN=$(GOBIN)/controller-gen

0 commit comments

Comments
 (0)