Skip to content

Commit 937f502

Browse files
authored
Merge pull request #6 from stefanprodan/toolkit-updates
Update source API to v0.0.9
2 parents 16cac58 + 05ef98d commit 937f502

File tree

4 files changed

+34
-281
lines changed

4 files changed

+34
-281
lines changed

Dockerfile

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

33
WORKDIR /workspace
44

@@ -11,7 +11,6 @@ RUN go mod download
1111

1212
# copy source code
1313
COPY main.go main.go
14-
COPY api/ api/
1514
COPY controllers/ controllers/
1615

1716
# build

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 ?= controller:latest
4-
# Produce CRDs that work back to Kubernetes 1.13
5-
CRD_OPTIONS ?= "crd"
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))
@@ -71,7 +71,7 @@ ifeq (, $(shell which controller-gen))
7171
CONTROLLER_GEN_TMP_DIR=$$(mktemp -d) ;\
7272
cd $$CONTROLLER_GEN_TMP_DIR ;\
7373
go mod init tmp ;\
74-
go get sigs.k8s.io/controller-tools/cmd/controller-gen@v0.2.5 ;\
74+
go get sigs.k8s.io/controller-tools/cmd/controller-gen@v0.3.0 ;\
7575
rm -rf $$CONTROLLER_GEN_TMP_DIR ;\
7676
}
7777
CONTROLLER_GEN=$(GOBIN)/controller-gen

go.mod

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
module github.com/stefanprodan/source-watcher
22

3-
go 1.13
3+
go 1.15
44

55
require (
6-
github.com/fluxcd/pkg v0.0.3
7-
github.com/fluxcd/source-controller v0.0.7
6+
github.com/fluxcd/pkg/untar v0.0.5
7+
github.com/fluxcd/source-controller/api v0.0.9
88
github.com/go-logr/logr v0.1.0
9-
go.uber.org/zap v1.10.0
9+
go.uber.org/zap v1.13.0
1010
k8s.io/apimachinery v0.18.4
1111
k8s.io/client-go v0.18.4
1212
sigs.k8s.io/controller-runtime v0.6.1

0 commit comments

Comments
 (0)