Skip to content
This repository was archived by the owner on Jul 6, 2023. It is now read-only.

Commit bb15155

Browse files
author
calvin0327
committed
add update and verify makefile
Signed-off-by: calvin0327 <wen.chen@daocloud.io>
1 parent c1b9e23 commit bb15155

File tree

2,269 files changed

+995224
-21
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,269 files changed

+995224
-21
lines changed

.golangci.yml

+67
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
# This files contains all configuration options for analysis running.
2+
# More details please refer to: https://golangci-lint.run/usage/configuration/
3+
4+
run:
5+
# timeout for analysis, e.g. 30s, 5m, default is 1m
6+
timeout: 50m
7+
8+
# which dirs to skip: issues from them won't be reported;
9+
# can use regexp here: generated.*, regexp is applied on full path;
10+
# default value is empty list, but default dirs are skipped independently
11+
# from this option's value (see skip-dirs-use-default).
12+
# "/" will be replaced by current OS file path separator to properly work
13+
# on Windows.
14+
skip-dirs:
15+
- hack/tools/preferredimports # This code is directly lifted from the Kubernetes codebase, skip checking
16+
- (^|/)vendor($|/)
17+
- (^|/)third_party($|/)
18+
- (^|/)generated($|/)
19+
20+
skip-files:
21+
- "^zz_generated.*"
22+
23+
# default is true. Enables skipping of directories:
24+
# vendor$, third_party$, testdata$, examples$, Godeps$, builtin$
25+
skip-dirs-use-default: false
26+
27+
# One of 'readonly' and 'vendor'.
28+
# - readonly: the go command is disallowed from the implicit automatic updating of go.mod described above.
29+
# Instead, it fails when any changes to go.mod are needed. This setting is most useful to check
30+
# that go.mod does not need updates, such as in a continuous integration and testing system.
31+
# - vendor: the go command assumes that the vendor directory holds the correct copies of dependencies and ignores
32+
# the dependency descriptions in go.mod.
33+
modules-download-mode: readonly
34+
35+
linters:
36+
disable-all: true
37+
enable:
38+
# linters maintained by golang.org
39+
- gofmt
40+
- goimports
41+
# linters default enabled by golangci-lint .
42+
- errcheck
43+
- gosimple
44+
- ineffassign
45+
- staticcheck
46+
- typecheck
47+
- unused
48+
- govet
49+
# other linters supported by golangci-lint.
50+
- gci
51+
- gocyclo
52+
- gosec
53+
- misspell
54+
- whitespace
55+
- revive
56+
57+
linters-settings:
58+
goimports:
59+
local-prefixes: github.com/karmada-io/karmada-operator
60+
gocyclo:
61+
# minimal cyclomatic complexity to report
62+
min-complexity: 15
63+
gci:
64+
sections:
65+
- Standard
66+
- Default
67+
- Prefix(github.com/karmada-io/karmada-operator)

Makefile

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.PHONY: update
2+
update:
3+
hack/update-all.sh
4+
5+
.PHONY: verify
6+
verify:
7+
hack/verify-all.sh

config/crds/operator.karmada.io_karmadas.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,7 @@ spec:
664664
type: object
665665
type: object
666666
serviceType:
667-
description: ServiceType represents the sevice type of karmada
667+
description: ServiceType represents the service type of karmada
668668
apiserver. it is Nodeport by default.
669669
type: string
670670
type: object
@@ -1288,7 +1288,7 @@ spec:
12881288
type: object
12891289
type: array
12901290
karmadaVersion:
1291-
description: KarmadaVersion represente the karmada verison.
1291+
description: KarmadaVersion represente the karmada version.
12921292
type: string
12931293
kubernetesVersion:
12941294
description: KubernetesVersion represente the karmada-apiserver version.

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ module github.com/karmada-io/karmada-operator
33
go 1.18
44

55
require (
6+
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211
67
k8s.io/api v0.25.0
78
k8s.io/apimachinery v0.25.0
89
k8s.io/client-go v0.25.0
@@ -45,7 +46,6 @@ require (
4546
golang.org/x/net v0.0.0-20220722155237-a158d28d115b // indirect
4647
golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8 // indirect
4748
golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f // indirect
48-
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 // indirect
4949
golang.org/x/text v0.3.7 // indirect
5050
golang.org/x/time v0.0.0-20220210224613-90d013bbcef8 // indirect
5151
golang.org/x/tools v0.1.12 // indirect

hack/.import-aliases

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"k8s.io/api/admissionregistration/v1": "admissionregistrationv1",
3+
"k8s.io/api/admissionregistration/v1beta1": "admissionregistrationv1beta1",
4+
"k8s.io/api/admission/v1beta1": "admissionv1beta1",
5+
"k8s.io/api/admission/v1": "admissionv1",
6+
"k8s.io/api/apps/v1": "appsv1",
7+
"k8s.io/api/apps/v1beta1": "appsv1beta1",
8+
"k8s.io/api/apps/v1beta2": "appsv1beta2",
9+
"k8s.io/api/authentication/v1": "authenticationv1",
10+
"k8s.io/api/authentication/v1beta1": "authenticationv1beta1",
11+
"k8s.io/api/authorization/v1": "authorizationv1",
12+
"k8s.io/api/authorization/v1beta1": "authorizationv1beta1",
13+
"k8s.io/api/autoscaling/v1": "autoscalingv1",
14+
"k8s.io/api/autoscaling/v2": "autoscalingv2",
15+
"k8s.io/api/batch/v1": "batchv1",
16+
"k8s.io/api/batch/v1beta1": "batchv1beta1",
17+
"k8s.io/api/certificates/v1beta1": "certificatesv1beta1",
18+
"k8s.io/api/coordination/v1": "coordinationv1",
19+
"k8s.io/api/coordination/v1beta1": "coordinationv1beta1",
20+
"k8s.io/api/core/v1": "corev1",
21+
"k8s.io/api/discovery/v1": "discoveryv1",
22+
"k8s.io/api/events/v1": "eventsv1",
23+
"k8s.io/api/events/v1beta1": "eventsv1beta1",
24+
"k8s.io/api/extensions/v1beta1": "extensionsv1beta1",
25+
"k8s.io/api/imagepolicy/v1alpha1": "imagepolicyv1alpha1",
26+
"k8s.io/api/networking/v1": "networkingv1",
27+
"k8s.io/api/networking/v1beta1": "networkingv1beta1",
28+
"k8s.io/api/node/v1alpha1": "nodev1alpha1",
29+
"k8s.io/api/node/v1beta1": "nodev1beta1",
30+
"k8s.io/api/node/v1": "nodev1",
31+
"k8s.io/api/policy/v1": "policyv1",
32+
"k8s.io/api/policy/v1beta1": "policyv1beta1",
33+
"k8s.io/api/rbac/v1": "rbacv1",
34+
"k8s.io/api/rbac/v1alpha1": "rbacv1alpha1",
35+
"k8s.io/api/rbac/v1beta1": "rbacv1beta1",
36+
"k8s.io/api/scheduling/v1": "schedulingv1",
37+
"k8s.io/api/scheduling/v1alpha1": "schedulingv1alpha1",
38+
"k8s.io/api/scheduling/v1beta1": "schedulingv1beta1",
39+
"k8s.io/api/storage/v1": "storagev1",
40+
"k8s.io/api/storage/v1alpha1": "storagev1alpha1",
41+
"k8s.io/api/storage/v1beta1": "storagev1beta1",
42+
"k8s.io/apimachinery/pkg/api/errors": "apierrors",
43+
"k8s.io/apimachinery/pkg/apis/meta/v1": "metav1"
44+
}

0 commit comments

Comments
 (0)