Skip to content

Commit c718073

Browse files
committed
chore: address copilot feedback. update linter version
Signed-off-by: Matthew H. Irby <matt.irby@keyfactor.com>
1 parent 56b43cc commit c718073

5 files changed

Lines changed: 14 additions & 3 deletions

File tree

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
- name: Run linters
6161
uses: golangci/golangci-lint-action@v7
6262
with:
63-
version: v2.4.0
63+
version: v2.12.2
6464

6565
- name: Regenerate CRDs
6666
run: make generate manifests

.golangci.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,14 @@ linters:
3232
- third_party$
3333
- builtin$
3434
- examples$
35+
rules:
36+
# Exclude some linters from running on tests files.
37+
- path: _test\.go
38+
linters:
39+
- gocyclo
40+
- errcheck
41+
- dupl
42+
- gosec
3543
formatters:
3644
enable:
3745
- goimports

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ CONFTEST = $(LOCALBIN)/conftest-$(CONFTEST_VERSION)
192192
KUSTOMIZE_VERSION ?= v5.3.0
193193
CONTROLLER_TOOLS_VERSION ?= v0.14.0
194194
ENVTEST_VERSION ?= latest
195-
GOLANGCI_LINT_VERSION ?= v2.4.0
195+
GOLANGCI_LINT_VERSION ?= v2.12.2
196196
KUBE_LINTER_VERSION ?= v0.6.8
197197
CONFTEST_VERSION ?= v0.60.0
198198

deploy/charts/command-cert-manager-issuer/templates/deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ spec:
2626
{{- toYaml . | nindent 8 }}
2727
{{- end }}
2828
serviceAccountName: {{ include "command-cert-manager-issuer.serviceAccountName" . }}
29+
{{- if not .Values.serviceAccount.automountServiceAccountToken }}
30+
automountServiceAccountToken: false
31+
{{- end }}
2932
securityContext:
3033
{{- toYaml .Values.podSecurityContext | nindent 8 }}
3134
{{- if not .Values.serviceAccount.automountServiceAccountToken }}

docsource/content.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ For example, ClusterIssuer resources can be used to issue certificates for resou
247247
| ownerRoleName | The name of the security role assigned as the certificate owner. The security role must be assigned to the identity context of the issuer. If `ownerRoleId` and `ownerRoleName` are both specified, `ownerRoleId` will take precedence. This field is **required** if the enrollment pattern, certificate template, or system-wide setting requires it. |
248248
| scopes | (Optional) Required if using ambient credentials with Azure AKS. If using ambient credentials, these scopes will be put on the access token generated by the ambient credentials' token provider, if applicable. |
249249
| audience | (Optional) If using ambient credentials, this audience will be put on the access token generated by the ambient credentials' token provider, if applicable. Google's ambient credential token provider generates an OIDC ID Token. If this value is not provided, it will default to `command`. |
250-
| healthcheck | (Optional) Defines the health check configuration for the issuer. If omitted, health checks will be enabled and default to 5 minutes. If disabled, the issuer will remain in a Ready state during outages and forward requests to the Command API before failing. Although requests are retried automatically, issues are harder to diagnose without health checks. |
250+
| healthcheck | (Optional) Defines the health check configuration for the issuer. If omitted, health checks will be enabled and default to 10 minutes. If disabled, the issuer will remain in a Ready state during outages and forward requests to the Command API before failing. Although requests are retried automatically, issues are harder to diagnose without health checks. |
251251
| healthcheck.enabled | (Required if health check block provided) Boolean to enable / disable health checks. By default, health checks are enabled. |
252252
| healthcheck.interval | (Optional) Defines the interval between health checks. Example values: `30s`, `1m`, `5.5m`. To prevent overloading the Command instance, this interval must not be less than `30s`. Default value: `10m`. |
253253

0 commit comments

Comments
 (0)