Skip to content

Commit 5dd58b9

Browse files
authored
update go and controller-gen (#18)
* update go and controller-gen Signed-off-by: DavidSpek <[email protected]> * cleanup unused gitlab ci Signed-off-by: DavidSpek <[email protected]> Signed-off-by: DavidSpek <[email protected]>
1 parent b92a68a commit 5dd58b9

20 files changed

+82
-158
lines changed

.gitlab-ci.yml

Lines changed: 0 additions & 32 deletions
This file was deleted.

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Build the manager binary
2-
FROM gcr.io/pluralsh/golang:1.15 as builder
2+
FROM golang:1.18.2-alpine3.15 as builder
33

44
ARG TARGETARCH
55

Makefile

Lines changed: 5 additions & 5 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.11 (no version conversion)
5-
CRD_OPTIONS ?= "crd:trivialVersions=true,preserveUnknownFields=false"
4+
5+
CRD_OPTIONS ?= "crd"
66

77
# Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set)
88
ifeq (,$(shell go env GOBIN))
@@ -84,11 +84,11 @@ undeploy: ## Undeploy controller from the K8s cluster specified in ~/.kube/confi
8484

8585
CONTROLLER_GEN = $(shell pwd)/bin/controller-gen
8686
controller-gen: ## Download controller-gen locally if necessary.
87-
$(call go-get-tool,$(CONTROLLER_GEN),sigs.k8s.io/controller-tools/cmd/controller-gen@v0.4.1)
87+
$(call go-get-tool,$(CONTROLLER_GEN),sigs.k8s.io/controller-tools/cmd/controller-gen@v0.9.2)
8888

8989
KUSTOMIZE = $(shell pwd)/bin/kustomize
9090
kustomize: ## Download kustomize locally if necessary.
91-
$(call go-get-tool,$(KUSTOMIZE),sigs.k8s.io/kustomize/kustomize/[email protected].7)
91+
$(call go-get-tool,$(KUSTOMIZE),sigs.k8s.io/kustomize/kustomize/[email protected].7)
9292

9393
client-gen:
9494
./hack/update-codegen.sh
@@ -104,7 +104,7 @@ TMP_DIR=$$(mktemp -d) ;\
104104
cd $$TMP_DIR ;\
105105
go mod init tmp ;\
106106
echo "Downloading $(2)" ;\
107-
GOBIN=$(PROJECT_DIR)/bin go get $(2) ;\
107+
GOBIN=$(PROJECT_DIR)/bin go install $(2) ;\
108108
rm -rf $$TMP_DIR ;\
109109
}
110110
endef

config/crd/bases/platform.plural.sh_configurationoverlays.yaml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
21
---
32
apiVersion: apiextensions.k8s.io/v1
43
kind: CustomResourceDefinition
54
metadata:
65
annotations:
7-
controller-gen.kubebuilder.io/version: v0.4.1
6+
controller-gen.kubebuilder.io/version: v0.9.2
87
creationTimestamp: null
98
name: configurationoverlays.platform.plural.sh
109
spec:
@@ -99,9 +98,3 @@ spec:
9998
storage: true
10099
subresources:
101100
status: {}
102-
status:
103-
acceptedNames:
104-
kind: ""
105-
plural: ""
106-
conditions: []
107-
storedVersions: []

config/crd/bases/platform.plural.sh_dashboards.yaml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
21
---
32
apiVersion: apiextensions.k8s.io/v1
43
kind: CustomResourceDefinition
54
metadata:
65
annotations:
7-
controller-gen.kubebuilder.io/version: v0.4.1
6+
controller-gen.kubebuilder.io/version: v0.9.2
87
creationTimestamp: null
98
name: dashboards.platform.plural.sh
109
spec:
@@ -135,9 +134,3 @@ spec:
135134
storage: true
136135
subresources:
137136
status: {}
138-
status:
139-
acceptedNames:
140-
kind: ""
141-
plural: ""
142-
conditions: []
143-
storedVersions: []

config/crd/bases/platform.plural.sh_defaultstorageclasses.yaml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
21
---
32
apiVersion: apiextensions.k8s.io/v1
43
kind: CustomResourceDefinition
54
metadata:
65
annotations:
7-
controller-gen.kubebuilder.io/version: v0.4.1
6+
controller-gen.kubebuilder.io/version: v0.9.2
87
creationTimestamp: null
98
name: defaultstorageclasses.platform.plural.sh
109
spec:
@@ -48,9 +47,3 @@ spec:
4847
storage: true
4948
subresources:
5049
status: {}
51-
status:
52-
acceptedNames:
53-
kind: ""
54-
plural: ""
55-
conditions: []
56-
storedVersions: []

config/crd/bases/platform.plural.sh_licenses.yaml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
21
---
32
apiVersion: apiextensions.k8s.io/v1
43
kind: CustomResourceDefinition
54
metadata:
65
annotations:
7-
controller-gen.kubebuilder.io/version: v0.4.1
6+
controller-gen.kubebuilder.io/version: v0.9.2
87
creationTimestamp: null
98
name: licenses.platform.plural.sh
109
spec:
@@ -107,9 +106,3 @@ spec:
107106
storage: true
108107
subresources:
109108
status: {}
110-
status:
111-
acceptedNames:
112-
kind: ""
113-
plural: ""
114-
conditions: []
115-
storedVersions: []

config/crd/bases/platform.plural.sh_logfilters.yaml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
21
---
32
apiVersion: apiextensions.k8s.io/v1
43
kind: CustomResourceDefinition
54
metadata:
65
annotations:
7-
controller-gen.kubebuilder.io/version: v0.4.1
6+
controller-gen.kubebuilder.io/version: v0.9.2
87
creationTimestamp: null
98
name: logfilters.platform.plural.sh
109
spec:
@@ -73,9 +72,3 @@ spec:
7372
storage: true
7473
subresources:
7574
status: {}
76-
status:
77-
acceptedNames:
78-
kind: ""
79-
plural: ""
80-
conditions: []
81-
storedVersions: []

config/crd/bases/platform.plural.sh_logtails.yaml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
21
---
32
apiVersion: apiextensions.k8s.io/v1
43
kind: CustomResourceDefinition
54
metadata:
65
annotations:
7-
controller-gen.kubebuilder.io/version: v0.4.1
6+
controller-gen.kubebuilder.io/version: v0.9.2
87
creationTimestamp: null
98
name: logtails.platform.plural.sh
109
spec:
@@ -63,9 +62,3 @@ spec:
6362
storage: true
6463
subresources:
6564
status: {}
66-
status:
67-
acceptedNames:
68-
kind: ""
69-
plural: ""
70-
conditions: []
71-
storedVersions: []

config/crd/bases/platform.plural.sh_proxies.yaml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
21
---
32
apiVersion: apiextensions.k8s.io/v1
43
kind: CustomResourceDefinition
54
metadata:
65
annotations:
7-
controller-gen.kubebuilder.io/version: v0.4.1
6+
controller-gen.kubebuilder.io/version: v0.9.2
87
creationTimestamp: null
98
name: proxies.platform.plural.sh
109
spec:
@@ -133,9 +132,3 @@ spec:
133132
storage: true
134133
subresources:
135134
status: {}
136-
status:
137-
acceptedNames:
138-
kind: ""
139-
plural: ""
140-
conditions: []
141-
storedVersions: []

0 commit comments

Comments
 (0)