Skip to content

Commit d173ed0

Browse files
Merge branch 'master' into release
2 parents 9d55e1c + 993a5ee commit d173ed0

File tree

14 files changed

+153
-30
lines changed

14 files changed

+153
-30
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
steps:
1414
- uses: actions/setup-go@v3
1515
with:
16-
go-version: "1.18"
16+
go-version: oldstable
1717
- uses: actions/checkout@v3
1818
- name: Build
1919
run: make
@@ -23,7 +23,7 @@ jobs:
2323
steps:
2424
- uses: actions/setup-go@v3
2525
with:
26-
go-version: "1.18"
26+
go-version: oldstable
2727
- uses: actions/checkout@v3
2828
- name: Install revive
2929
run: go install github.com/mgechev/revive@latest
@@ -46,7 +46,7 @@ jobs:
4646
steps:
4747
- uses: actions/setup-go@v3
4848
with:
49-
go-version: "1.18"
49+
go-version: oldstable
5050
- uses: actions/checkout@v3
5151
- name: run the tests
5252
run: make test
@@ -100,7 +100,7 @@ jobs:
100100
- uses: actions/checkout@v3
101101
- uses: actions/setup-go@v3
102102
with:
103-
go-version: "1.18"
103+
go-version: oldstable
104104
- name: Install k3d
105105
run: curl -L --silent --fail "https://raw.githubusercontent.com/rancher/k3d/main/install.sh" | bash
106106
# The TAG env var can interfere with the k3d install script.

.gitlint

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ ignore-merge-commits=true
3030
# Enable debug mode (prints more output). Disabled by default.
3131
# debug=true
3232

33+
# Enable search regex and remove warning message.
34+
regex-style-search=true
35+
3336
# Enable community contributed rules
3437
# See http://jorisroovers.github.io/gitlint/contrib_rules for details
3538
# contrib=contrib-body-requires-signed-off-by
@@ -106,11 +109,16 @@ regex=^.*
106109
# Use 'all' to ignore all rules
107110
# ignore=T1,body-min-length
108111

109-
# [ignore-body-lines]
112+
[ignore-body-lines]
110113
# Ignore certain lines in a commit body that match a regex.
111114
# E.g. Ignore all lines that start with 'Co-Authored-By'
112115
# regex=^Co-Authored-By
113116

117+
# ignore lines that are "footnotes", that start like `[1]: ` or `[2]: ` and so on
118+
# this will make it easy to put long urls in commit messages without
119+
# triggering gitlint body rules
120+
regex=^\[[0-9]+\]:? +
121+
114122
# This is a contrib rule - a community contributed rule. These are disabled by default.
115123
# You need to explicitly enable them one-by-one by adding them to the "contrib" option
116124
# under [general] section above.

.golangci.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ linters:
66
enable:
77
- asciicheck
88
# - deadcode
9-
- depguard
109
- dupl
1110
- errcheck
1211
- exhaustive
@@ -37,7 +36,6 @@ linters:
3736
- unconvert
3837
# - unparam
3938
- unused
40-
- varcheck
4139
- whitespace
4240
linters-settings:
4341
funlen:

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 docker.io/golang:1.18 as builder
2+
FROM docker.io/golang:1.20 as builder
33
ARG GIT_VERSION="(unset)"
44
ARG COMMIT_ID="(unset)"
55
ARG ARCH=""

Makefile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,9 +206,9 @@ bundle-build:
206206
@false
207207
# See vcs history for how this could be restored or adapted in the future.
208208

209-
.PHONY: check check-revive check-golangci-lint check-format check-yaml check-gosec
209+
.PHONY: check check-revive check-golangci-lint check-format check-yaml check-gosec check-dockerfile-go-version
210210

211-
check: check-revive check-golangci-lint check-format vet check-yaml check-gosec
211+
check: check-revive check-golangci-lint check-format vet check-yaml check-gosec check-dockerfile-go-version
212212

213213
check-format:
214214
! $(GOFMT_CMD) $(CHECK_GOFMT_FLAGS) . | sed 's,^,formatting error: ,' | grep 'go$$'
@@ -227,6 +227,10 @@ check-yaml:
227227
check-gosec: gosec
228228
$(GOSEC) -quiet -exclude=G101 -fmt json ./...
229229

230+
check-dockerfile-go-version:
231+
# use go-version-check.sh --show to list vaild golang builder images
232+
$(CURDIR)/hack/go-version-check.sh --check
233+
230234
check-gitlint: gitlint
231235
$(GITLINT) -C .gitlint --commits origin/master.. lint
232236

config/crd/kustomization.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ resources:
66
- bases/samba-operator.samba.org_smbsecurityconfigs.yaml
77
- bases/samba-operator.samba.org_smbcommonconfigs.yaml
88
# +kubebuilder:scaffold:crdkustomizeresource
9-
patchesStrategicMerge:
9+
patches:
1010
# [WEBHOOK] To enable webhook, uncomment all the sections with [WEBHOOK] prefix.
1111
# patches here are for enabling the conversion webhook for each CRD
1212
#- patches/webhook_in_smbshares.yaml

config/manager-full/kustomization.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ apiVersion: kustomize.config.k8s.io/v1beta1
22
kind: Kustomization
33
resources:
44
- ../manager
5-
patchesStrategicMerge:
5+
patches:
66
# Protect the /metrics endpoint by putting it behind auth.
77
# If you want your controller-manager to expose the /metrics
88
# endpoint w/o any authn/z, please comment the following line.
9-
- auth_proxy_patch.yaml
9+
- path: auth_proxy_patch.yaml
1010

1111
# [WEBHOOK] To enable webhook, uncomment all the sections with [WEBHOOK] prefix including the one in
1212
# crd/kustomization.yaml

docs/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ resources.
1717
Development effort takes place using Linux environment and requires at
1818
minimum:
1919

20-
1. [Go 1.18](https://golang.org/dl/) installed
20+
1. [Go 1.19](https://golang.org/dl/) installed
2121
2. [GitHub](https://github.com/) account
2222
3. Development tools: git, make, and podman or docker
2323
4. Testing: [minikube](https://minikube.sigs.k8s.io)

docs/developers-notes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
## Build from source
55

66
The top-level [Makefile](../Makefile) is the entry point for various build
7-
commands. The minimal required Go version is 1.18. A developer can verify the
7+
commands. The minimal required Go version is 1.19. A developer can verify the
88
build environment by running:
99

1010
```bash

go.mod

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/samba-in-kubernetes/samba-operator
22

3-
go 1.18
3+
go 1.19
44

55
require (
66
github.com/go-logr/logr v1.2.3
@@ -59,11 +59,11 @@ require (
5959
go.uber.org/atomic v1.7.0 // indirect
6060
go.uber.org/multierr v1.6.0 // indirect
6161
go.uber.org/zap v1.24.0 // indirect
62-
golang.org/x/net v0.7.0 // indirect
62+
golang.org/x/net v0.17.0 // indirect
6363
golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b // indirect
64-
golang.org/x/sys v0.5.0 // indirect
65-
golang.org/x/term v0.5.0 // indirect
66-
golang.org/x/text v0.7.0 // indirect
64+
golang.org/x/sys v0.13.0 // indirect
65+
golang.org/x/term v0.13.0 // indirect
66+
golang.org/x/text v0.13.0 // indirect
6767
golang.org/x/time v0.3.0 // indirect
6868
gomodules.xyz/jsonpatch/v2 v2.2.0 // indirect
6969
google.golang.org/appengine v1.6.7 // indirect

0 commit comments

Comments
 (0)