File tree Expand file tree Collapse file tree 4 files changed +13
-9
lines changed Expand file tree Collapse file tree 4 files changed +13
-9
lines changed Original file line number Diff line number Diff line change 41
41
submodules : true
42
42
43
43
- name : Setup Go
44
- uses : actions/setup-go@v2
44
+ uses : actions/setup-go@v5
45
45
with :
46
46
go-version : ${{ env.GO_VERSION }}
47
47
@@ -70,10 +70,11 @@ jobs:
70
70
# this action because it leaves 'annotations' (i.e. it comments on PRs to
71
71
# point out linter violations).
72
72
- name : Lint
73
- uses : golangci/golangci-lint-action@v2
73
+ uses : golangci/golangci-lint-action@v4
74
74
with :
75
75
version : ${{ env.GOLANGCI_VERSION }}
76
- skip-go-installation : true
76
+ skip-pkg-cache : true
77
+ skip-build-cache : true
77
78
78
79
check-diff :
79
80
runs-on : ubuntu-20.04
87
88
submodules : true
88
89
89
90
- name : Setup Go
90
- uses : actions/setup-go@v2
91
+ uses : actions/setup-go@v5
91
92
with :
92
93
go-version : ${{ env.GO_VERSION }}
93
94
@@ -130,7 +131,7 @@ jobs:
130
131
run : git fetch --prune --unshallow
131
132
132
133
- name : Setup Go
133
- uses : actions/setup-go@v2
134
+ uses : actions/setup-go@v5
134
135
with :
135
136
go-version : ${{ env.GO_VERSION }}
136
137
Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ linters:
101
101
- govet
102
102
- gocyclo
103
103
- gocritic
104
- - interfacer
104
+ # - interfacer # panic in spaces/v1alpha1
105
105
- goconst
106
106
- goimports
107
107
- gofmt # We enable this as well as goimports for its simplify mode.
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ func (j *JSON) DeepCopy() *JSON {
52
52
if j == nil {
53
53
return nil
54
54
}
55
- return & JSON {Object : runtime .DeepCopyJSONValue (j .Object ).( map [ string ] interface {}) }
55
+ return & JSON {Object : runtime .DeepCopyJSONValue (j .Object )}
56
56
}
57
57
58
58
// DeepCopyInto copies the receiver, writing into out.
@@ -64,7 +64,7 @@ func (j *JSON) DeepCopyInto(target *JSON) {
64
64
target .Object = nil // shouldn't happen
65
65
return
66
66
}
67
- target .Object = runtime .DeepCopyJSONValue (j .Object ).( map [ string ] interface {})
67
+ target .Object = runtime .DeepCopyJSONValue (j .Object )
68
68
}
69
69
70
70
// MarshalJSON implements json.Marshaler.
Original file line number Diff line number Diff line change @@ -17,10 +17,11 @@ package v1alpha1
17
17
import (
18
18
"reflect"
19
19
20
- xpv1 "github.com/crossplane/crossplane-runtime/apis/common/v1"
21
20
corev1 "k8s.io/api/core/v1"
22
21
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
23
22
"k8s.io/apimachinery/pkg/types"
23
+
24
+ xpv1 "github.com/crossplane/crossplane-runtime/apis/common/v1"
24
25
)
25
26
26
27
// +kubebuilder:object:root=true
@@ -194,6 +195,7 @@ type BackupStatus struct {
194
195
Details BackupStatusDetails `json:"details,omitempty"`
195
196
}
196
197
198
+ // BackupStatusDetails contains additional information about a backup.
197
199
type BackupStatusDetails struct {
198
200
// UploadedFileName is the name of the uploaded file.
199
201
UploadedFileName string `json:"uploadedFileName,omitempty"`
@@ -207,6 +209,7 @@ type BackupStatusDetails struct {
207
209
ControlPlane * PreciseLocalObjectReference `json:"controlPlane,omitempty"`
208
210
}
209
211
212
+ // PreciseLocalObjectReference references by name and uid.
210
213
type PreciseLocalObjectReference struct {
211
214
// Name is the name of the referenced object.
212
215
// +optional
You can’t perform that action at this time.
0 commit comments