You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: .toolbox.mk
+20-4
Original file line number
Diff line number
Diff line change
@@ -10,29 +10,41 @@ $(TB_LOCALBIN):
10
10
11
11
## Tool Binaries
12
12
TB_GINKGO ?= $(TB_LOCALBIN)/ginkgo
13
+
TB_GOFUMPT ?= $(TB_LOCALBIN)/gofumpt
13
14
TB_GOLANGCI_LINT ?= $(TB_LOCALBIN)/golangci-lint
15
+
TB_GOLINES ?= $(TB_LOCALBIN)/golines
14
16
TB_GORELEASER ?= $(TB_LOCALBIN)/goreleaser
15
17
TB_HELM_DOCS ?= $(TB_LOCALBIN)/helm-docs
16
18
TB_MOCKGEN ?= $(TB_LOCALBIN)/mockgen
17
19
TB_SEMVER ?= $(TB_LOCALBIN)/semver
18
20
19
21
## Tool Versions
20
-
TB_GINKGO_VERSION ?= v2.20.2
21
-
TB_GOLANGCI_LINT_VERSION ?= v1.61.0
22
-
TB_GORELEASER_VERSION ?= v2.3.2
22
+
TB_GINKGO_VERSION ?= v2.22.1
23
+
TB_GOFUMPT_VERSION ?= v0.7.0
24
+
TB_GOLANGCI_LINT_VERSION ?= v1.62.2
25
+
TB_GOLINES_VERSION ?= v0.12.2
26
+
TB_GORELEASER_VERSION ?= v2.5.0
23
27
TB_HELM_DOCS_VERSION ?= v1.14.2
24
-
TB_MOCKGEN_VERSION ?= v0.4.0
28
+
TB_MOCKGEN_VERSION ?= v0.5.0
25
29
TB_SEMVER_VERSION ?= v1.1.3
26
30
27
31
## Tool Installer
28
32
.PHONY: tb.ginkgo
29
33
tb.ginkgo: $(TB_GINKGO)## Download ginkgo locally if necessary.
30
34
$(TB_GINKGO): $(TB_LOCALBIN)
31
35
test -s $(TB_LOCALBIN)/ginkgo || GOBIN=$(TB_LOCALBIN) go install github.com/onsi/ginkgo/v2/ginkgo@$(TB_GINKGO_VERSION)
36
+
.PHONY: tb.gofumpt
37
+
tb.gofumpt: $(TB_GOFUMPT)## Download gofumpt locally if necessary.
38
+
$(TB_GOFUMPT): $(TB_LOCALBIN)
39
+
test -s $(TB_LOCALBIN)/gofumpt || GOBIN=$(TB_LOCALBIN) go install mvdan.cc/gofumpt@$(TB_GOFUMPT_VERSION)
32
40
.PHONY: tb.golangci-lint
33
41
tb.golangci-lint: $(TB_GOLANGCI_LINT)## Download golangci-lint locally if necessary.
34
42
$(TB_GOLANGCI_LINT): $(TB_LOCALBIN)
35
43
test -s $(TB_LOCALBIN)/golangci-lint || GOBIN=$(TB_LOCALBIN) go install github.com/golangci/golangci-lint/cmd/golangci-lint@$(TB_GOLANGCI_LINT_VERSION)
44
+
.PHONY: tb.golines
45
+
tb.golines: $(TB_GOLINES)## Download golines locally if necessary.
46
+
$(TB_GOLINES): $(TB_LOCALBIN)
47
+
test -s $(TB_LOCALBIN)/golines || GOBIN=$(TB_LOCALBIN) go install github.com/segmentio/golines@$(TB_GOLINES_VERSION)
36
48
.PHONY: tb.goreleaser
37
49
tb.goreleaser: $(TB_GORELEASER)## Download goreleaser locally if necessary.
log.Println("Argument 'kubeseal-arguments' is deprecated use (sealed-secrets-service-name, sealed-secrets-service-namespace or sealed-secrets-cert-url).")
31
+
log.Println(
32
+
"Argument 'kubeseal-arguments' is deprecated use (sealed-secrets-service-name, sealed-secrets-service-namespace or sealed-secrets-cert-url).",
33
+
)
32
34
}
33
35
if*f.webExternalURL!="" {
34
36
log.Println("Argument 'web-external-url' is deprecated use (web-context).")
@@ -145,18 +147,54 @@ type flags struct {
145
147
146
148
funcnewFlags() *flags {
147
149
return&flags{
148
-
disableLoadSecrets: flag.Bool("disable-load-secrets", false, "Disable the loading of existing secrets"),
149
-
enableWebLogs: flag.Bool("enable-web-logs", false, "Enable web logs"),
150
-
includeNamespaces: flag.String("include-namespaces", "", "Optional space separated list if namespaces to be included in the sealed secret search"),
151
-
kubesealArgs: flag.String("kubeseal-arguments", "", "Deprecated use (sealed-secrets-service-name, sealed-secrets-service-namespace or sealed-secrets-cert-url)"),
152
-
sealedSecretsServiceName: flag.String("sealed-secrets-service-name", "sealed-secrets", "Name of the sealed secrets service"),
153
-
sealedSecretsServiceNamespace: flag.String("sealed-secrets-service-namespace", "sealed-secrets", "Namespace of the sealed secrets service"),
154
-
sealedSecretsCertURL: flag.String("sealed-secrets-cert-url", "", "URL sealed secrets certificate (required if sealed secrets is not reachable with in cluster service)"),
155
-
initialSecretFile: flag.String("initial-secret-file", "", "Define a file with the initial secret to be displayed. If empty, defaults are used."),
156
-
webExternalURL: flag.String("web-external-url", "", "Deprecated use (web-context)"),
157
-
webContext: flag.String("web-context", "/", "The context the application is running on. (for example, if it is served via a reverse proxy)"),
158
-
printVersion: flag.Bool("version", false, "Print version information and exit"),
159
-
port: flag.Int("port", 8080, "Define the port to run the application on. (default: 8080)"),
160
-
config: flag.String("config", "", "Define the config file"),
150
+
disableLoadSecrets: flag.Bool(
151
+
"disable-load-secrets",
152
+
false,
153
+
"Disable the loading of existing secrets",
154
+
),
155
+
enableWebLogs: flag.Bool("enable-web-logs", false, "Enable web logs"),
156
+
includeNamespaces: flag.String(
157
+
"include-namespaces",
158
+
"",
159
+
"Optional space separated list if namespaces to be included in the sealed secret search",
160
+
),
161
+
kubesealArgs: flag.String(
162
+
"kubeseal-arguments",
163
+
"",
164
+
"Deprecated use (sealed-secrets-service-name, sealed-secrets-service-namespace or sealed-secrets-cert-url)",
165
+
),
166
+
sealedSecretsServiceName: flag.String(
167
+
"sealed-secrets-service-name",
168
+
"sealed-secrets",
169
+
"Name of the sealed secrets service",
170
+
),
171
+
sealedSecretsServiceNamespace: flag.String(
172
+
"sealed-secrets-service-namespace",
173
+
"sealed-secrets",
174
+
"Namespace of the sealed secrets service",
175
+
),
176
+
sealedSecretsCertURL: flag.String(
177
+
"sealed-secrets-cert-url",
178
+
"",
179
+
"URL sealed secrets certificate (required if sealed secrets is not reachable with in cluster service)",
180
+
),
181
+
initialSecretFile: flag.String(
182
+
"initial-secret-file",
183
+
"",
184
+
"Define a file with the initial secret to be displayed. If empty, defaults are used.",
185
+
),
186
+
webExternalURL: flag.String("web-external-url", "", "Deprecated use (web-context)"),
187
+
webContext: flag.String(
188
+
"web-context",
189
+
"/",
190
+
"The context the application is running on. (for example, if it is served via a reverse proxy)",
191
+
),
192
+
printVersion: flag.Bool("version", false, "Print version information and exit"),
193
+
port: flag.Int(
194
+
"port",
195
+
8080,
196
+
"Define the port to run the application on. (default: 8080)",
197
+
),
198
+
config: flag.String("config", "", "Define the config file"),
0 commit comments