Skip to content

Commit

Permalink
Controller runtime 0.8.3, CRD v1, Go 1.16 (kube-logging#744)
Browse files Browse the repository at this point in the history
Go 1.16, Controller runtime v0.8.3, CRD v1, controller-gen v0.5.0

Co-authored-by: shifter <[email protected]>
Co-authored-by: Dudás Ádám <[email protected]>
  • Loading branch information
3 people authored May 31, 2021
1 parent 4b93978 commit 3477060
Show file tree
Hide file tree
Showing 27 changed files with 35,196 additions and 34,699 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ executors:
jobs:
build:
docker:
- image: circleci/golang:1.13
- image: circleci/golang:1.16
environment:
GOFLAGS: -mod=readonly

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.14
go-version: 1.16

- name: Checkout code
uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Build the manager binary
FROM golang:1.15 as builder
FROM golang:1.16 as builder

WORKDIR /workspace
# Copy the Go Modules manifests
Expand Down
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ GOFILES_NOVENDOR = $(shell find . -type f -name '*.go' -not -path "./vendor/*" -
GOFILES_NOPLUGINS = $(shell find . -type f -name '*.go' -not -path "./pkg/sdk/model/filter/*" -not -path "./pkg/sdk/model/output/*" -not -path "./pkg/sdk/model/input/*")
PKGS=$(shell go list ./... | grep -v /vendor)

CONTROLLER_GEN_VERSION = v0.2.4
CONTROLLER_GEN_VERSION = v0.5.0
CONTROLLER_GEN = $(PWD)/bin/controller-gen

GOLANGCI_VERSION = 1.33.0
Expand Down Expand Up @@ -90,7 +90,6 @@ bin/kubebuilder: bin/kubebuilder_${KUBEBUILDER_VERSION}
test: generate fmt vet manifests bin/kubebuilder
@which kubebuilder
@which etcd
kubebuilder version
cd pkg/sdk && go test ./...
go test ./controllers/... ./pkg/... -coverprofile cover.out -v

Expand Down Expand Up @@ -164,3 +163,6 @@ check-diff: check
go mod tidy
$(MAKE) generate manifests
git diff --exit-code ':(exclude)./ADOPTERS.md' ':(exclude)./docs/*'

tidy:
find . -iname "go.mod" | xargs -L1 sh -c 'cd $$(dirname $$0); go mod tidy'
Loading

0 comments on commit 3477060

Please sign in to comment.