Skip to content

Commit e6a9f7c

Browse files
authored
Merge pull request #28 from fluxcd/crd-v1
Upgrade CRDs to apiextensions.k8s.io/v1
2 parents 005066b + b1549e1 commit e6a9f7c

File tree

7 files changed

+370
-338
lines changed

7 files changed

+370
-338
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

config/crd/bases/helm.fluxcd.io_helmreleases.yaml

Lines changed: 305 additions & 306 deletions
Large diffs are not rendered by default.

config/default/kustomization.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ resources:
55
- ../crd
66
- ../rbac
77
- ../manager
8-
- github.com/fluxcd/source-controller/config//crd?ref=v0.0.5
9-
- github.com/fluxcd/source-controller/config//manager?ref=v0.0.5
8+
- github.com/fluxcd/source-controller/config//crd?ref=v0.0.6
9+
- github.com/fluxcd/source-controller/config//manager?ref=v0.0.6
1010
- namespace.yaml

go.mod

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
module github.com/fluxcd/helm-controller
22

3-
go 1.13
3+
go 1.14
44

55
require (
66
github.com/fluxcd/pkg v0.0.3
7-
github.com/fluxcd/source-controller v0.0.5
7+
github.com/fluxcd/source-controller v0.0.6
88
github.com/go-logr/logr v0.1.0
9-
github.com/onsi/ginkgo v1.11.0
10-
github.com/onsi/gomega v1.8.1
9+
github.com/onsi/ginkgo v1.12.1
10+
github.com/onsi/gomega v1.10.1
1111
go.uber.org/zap v1.10.0
1212
helm.sh/helm/v3 v3.2.4
1313
k8s.io/api v0.18.4
1414
k8s.io/apiextensions-apiserver v0.18.4
1515
k8s.io/apimachinery v0.18.4
1616
k8s.io/cli-runtime v0.18.4
1717
k8s.io/client-go v0.18.4
18-
sigs.k8s.io/controller-runtime v0.6.0
18+
sigs.k8s.io/controller-runtime v0.6.1
1919
)

go.sum

Lines changed: 52 additions & 20 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)