Skip to content

Commit 120f761

Browse files
Merge pull request #348 from cert-manager/self-upgrade-main
[CI] Merge self-upgrade-main into main
2 parents c33b328 + 679ebe4 commit 120f761

File tree

18 files changed

+48
-40
lines changed

18 files changed

+48
-40
lines changed

.github/workflows/renovate.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
go-version: ${{ steps.go-version.outputs.result }}
5151

5252
- name: Self-hosted Renovate
53-
uses: renovatebot/github-action@aec779d4f7845f8431ddf403cf9659d4702ddde0 # v43.0.18
53+
uses: renovatebot/github-action@a3c115cd6676c8a5bc72f9715f108759e570daf5 # v43.0.19
5454
with:
5555
configurationFile: .github/renovate.json5
5656
token: ${{ steps.octo-sts.outputs.token }}

.golangci.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ linters:
77
paths: [third_party, builtin$, examples$]
88
warn-unused: true
99
settings:
10+
modernize:
11+
disable:
12+
# TODO(erikgb): Enable when we know how to do this correctly in API types
13+
- omitzero
1014
staticcheck:
1115
checks: ["all", "-ST1000", "-ST1001", "-ST1003", "-ST1005", "-ST1012", "-ST1016", "-ST1020", "-ST1021", "-ST1022", "-QF1001", "-QF1003", "-QF1008"]
1216
enable:
@@ -45,6 +49,7 @@ linters:
4549
- makezero
4650
- mirror
4751
- misspell
52+
- modernize
4853
- musttag
4954
- nakedret
5055
- nilerr
@@ -72,9 +77,10 @@ formatters:
7277
sections:
7378
- standard # Standard section: captures all standard packages.
7479
- default # Default section: contains all imports that could not be matched to another section type.
75-
- prefix(github.com/cert-manager/issuer-lib) # Custom section: groups all imports with the specified Prefix.
80+
- localmodule # Local module section: contains all local packages. This section is not present unless explicitly enabled.
7681
- blank # Blank section: contains all blank imports. This section is not present unless explicitly enabled.
7782
- dot # Dot section: contains all dot imports. This section is not present unless explicitly enabled.
83+
custom-order: true
7884
exclusions:
7985
generated: lax
8086
paths: [third_party, builtin$, examples$]

api/v1alpha1/issuer_interface.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//go:build !ignore_autogenerated
2-
// +build !ignore_autogenerated
32

43
/*
54
Copyright 2023 The cert-manager Authors.

controllers/certificaterequest_controller.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ type CertificateRequestReconciler struct {
3535

3636
// SetCAOnCertificateRequest is used to enable setting the CA status field on
3737
// the CertificateRequest resource. This is disabled by default.
38+
//
3839
// Deprecated: this option is for backwards compatibility only. The use of
3940
// ca.crt is discouraged. Instead, the CA certificate should be provided
4041
// separately using a tool such as trust-manager.

controllers/combined_controller.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ type CombinedController struct {
6161

6262
// SetCAOnCertificateRequest is used to enable setting the CA status field on
6363
// the CertificateRequest resource. This is disabled by default.
64+
//
6465
// Deprecated: this option is for backwards compatibility only. The use of
6566
// ca.crt is discouraged. Instead, the CA certificate should be provided
6667
// separately using a tool such as trust-manager.

docs/api.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ const (
6161
```
6262

6363
<a name="Issuer"></a>
64-
## type [Issuer](<https://github.com/cert-manager/issuer-lib/blob/main/api/v1alpha1/issuer_interface.go#L28-L43>)
64+
## type [Issuer](<https://github.com/cert-manager/issuer-lib/blob/main/api/v1alpha1/issuer_interface.go#L27-L42>)
6565

6666

6767

@@ -119,7 +119,7 @@ func (in *IssuerStatus) DeepCopyInto(out *IssuerStatus)
119119
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non\-nil.
120120

121121
<a name="WrappedIssuer"></a>
122-
## type [WrappedIssuer](<https://github.com/cert-manager/issuer-lib/blob/main/api/v1alpha1/issuer_interface.go#L46-L49>)
122+
## type [WrappedIssuer](<https://github.com/cert-manager/issuer-lib/blob/main/api/v1alpha1/issuer_interface.go#L45-L48>)
123123

124124
WrappedIssuer is an issuer type to support objects which are not directly of the type Issuer. This could include cert\-manager issuers for example.
125125

examples/simple/api/simple_cluster_issuer_types.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,8 @@ limitations under the License.
1717
package api
1818

1919
import (
20-
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
21-
2220
"github.com/cert-manager/issuer-lib/api/v1alpha1"
21+
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
2322
)
2423

2524
// +kubebuilder:object:root=true

examples/simple/api/simple_issuer_types.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,8 @@ limitations under the License.
1717
package api
1818

1919
import (
20-
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
21-
2220
"github.com/cert-manager/issuer-lib/api/v1alpha1"
21+
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
2322
)
2423

2524
// +kubebuilder:object:root=true

examples/simple/controller/signer.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ import (
2727
"math/big"
2828
"time"
2929

30-
ctrl "sigs.k8s.io/controller-runtime"
31-
"simple-issuer/api"
32-
3330
"github.com/cert-manager/issuer-lib/api/v1alpha1"
3431
"github.com/cert-manager/issuer-lib/controllers"
3532
"github.com/cert-manager/issuer-lib/controllers/signer"
33+
ctrl "sigs.k8s.io/controller-runtime"
34+
35+
"simple-issuer/api"
3636
)
3737

3838
// +kubebuilder:rbac:groups=cert-manager.io,resources=certificaterequests,verbs=get;list;watch

examples/simple/e2e/e2e_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ import (
4141
"k8s.io/client-go/tools/clientcmd"
4242
"k8s.io/client-go/util/retry"
4343
"sigs.k8s.io/controller-runtime/pkg/client"
44+
4445
"simple-issuer/api"
4546
)
4647

0 commit comments

Comments
 (0)