Skip to content

Commit

Permalink
Migrate to go modules (#680)
Browse files Browse the repository at this point in the history
* Use go module

* Goodbye vendoring

* Introduce build-machine-controller rule to build machine controller and userdata binaries only and use it in run-machine-controller.sh
  • Loading branch information
irozzo-1A committed Feb 26, 2020
1 parent 9da17c2 commit 1da2394
Show file tree
Hide file tree
Showing 4,248 changed files with 942 additions and 1,576,354 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,3 @@ examples/*.pem
examples/*.csr
examples/*.srl
/webhook
# As long as we don't support modules.
/go.mod
/go.sum
2 changes: 0 additions & 2 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,5 @@ issues:
- func Convert_Machine_ProviderConfig_To_ProviderSpec should be ConvertMachineProviderConfigToProviderSpec
- 'counter\.Set is deprecated: Use NewConstMetric'
- 'eviction\.go:221:4: the surrounding loop is unconditionally terminated'
- '`client` can be `github.com/kubermatic/machine-controller/vendor/sigs.k8s.io/controller-runtime/pkg/client.Reader`'
- '`client` can be `github.com/kubermatic/machine-controller/vendor/sigs.k8s.io/controller-runtime/pkg/client.StatusWriter`'
- 'cyclomatic complexity 31 of func `verifyMigrateUID` is high'
- 'cyclomatic complexity 31 of func `main` is high'
67 changes: 24 additions & 43 deletions .prow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,11 @@ presubmits:
clone_uri: "ssh://git@github.com/kubermatic/machine-controller.git"
spec:
containers:
# Uses go1.11.1
- image: quay.io/kubermatic/dep:0.5.4-2
- image: golang:1.13.8
command:
- make
args:
- machine-controller
- all
resources:
requests:
cpu: 1
Expand All @@ -22,7 +21,7 @@ presubmits:
clone_uri: "ssh://git@github.com/kubermatic/machine-controller.git"
spec:
containers:
- image: quay.io/kubermatic/dep:0.5.4-2
- image: golang:1.13.8
command:
- make
args:
Expand All @@ -37,7 +36,7 @@ presubmits:
clone_uri: "ssh://git@github.com/kubermatic/machine-controller.git"
spec:
containers:
- image: golangci/golangci-lint:v1.16.0
- image: golangci/golangci-lint:v1.23.6
command:
- make
args:
Expand All @@ -57,7 +56,7 @@ presubmits:
command:
- "sh"
- "-c"
- "rm -r ./vendor && yamllint -c .yamllint.conf ."
- "yamllint -c .yamllint.conf ."
resources:
requests:
cpu: 200m
Expand All @@ -68,7 +67,7 @@ presubmits:
clone_uri: "ssh://git@github.com/kubermatic/machine-controller.git"
spec:
containers:
- image: golang:1.13.3
- image: golang:1.13.8
command:
- make
args:
Expand All @@ -95,8 +94,7 @@ presubmits:
preset-alibaba: "true"
spec:
containers:
# Uses go1.11.1
- image: quay.io/kubermatic/dep:0.5.4-2
- image: golang:1.13.8
command:
- "./hack/ci-e2e-test.sh"
args:
Expand All @@ -119,8 +117,7 @@ presubmits:
preset-rhel: "true"
spec:
containers:
# Uses go1.11.1
- image: quay.io/kubermatic/dep:0.5.4-2
- image: golang:1.13.8
command:
- "./hack/ci-e2e-test.sh"
args:
Expand All @@ -143,8 +140,7 @@ presubmits:
preset-e2e-ssh: "true"
spec:
containers:
# Uses go1.11.1
- image: quay.io/kubermatic/dep:0.5.4-2
- image: golang:1.13.8
command:
- "./hack/ci-e2e-test.sh"
args:
Expand All @@ -166,8 +162,7 @@ presubmits:
preset-rhel: "true"
spec:
containers:
# Uses go1.11.1
- image: quay.io/kubermatic/dep:0.5.4-2
- image: golang:1.13.8
command:
- "./hack/ci-e2e-test.sh"
args:
Expand All @@ -189,8 +184,7 @@ presubmits:
preset-rhel: "true"
spec:
containers:
# Uses go1.11.1
- image: quay.io/kubermatic/dep:0.5.4-2
- image: golang:1.13.8
command:
- "./hack/ci-e2e-test.sh"
args:
Expand All @@ -211,8 +205,7 @@ presubmits:
preset-e2e-ssh: "true"
spec:
containers:
# Uses go1.11.1
- image: quay.io/kubermatic/dep:0.5.4-2
- image: golang:1.13.8
command:
- "./hack/ci-e2e-test.sh"
args:
Expand All @@ -233,8 +226,7 @@ presubmits:
preset-rhel: "true"
spec:
containers:
# Uses go1.11.1
- image: quay.io/kubermatic/dep:0.5.4-2
- image: golang:1.13.8
command:
- "./hack/ci-e2e-test.sh"
args:
Expand All @@ -255,8 +247,7 @@ presubmits:
preset-e2e-ssh: "true"
spec:
containers:
# Uses go1.11.1
- image: quay.io/kubermatic/dep:0.5.4-2
- image: golang:1.13.8
command:
- "./hack/ci-e2e-test.sh"
args:
Expand All @@ -276,8 +267,7 @@ presubmits:
preset-e2e-ssh: "true"
spec:
containers:
# Uses go1.11.1
- image: quay.io/kubermatic/dep:0.5.4-2
- image: golang:1.13.8
command:
- "./hack/ci-e2e-test.sh"
args:
Expand All @@ -300,8 +290,7 @@ presubmits:
preset-linode: "true"
spec:
containers:
# Uses go1.11.1
- image: quay.io/kubermatic/dep:0.5.4-2
- image: golang:1.13.8
command:
- "./hack/ci-e2e-test.sh"
args:
Expand All @@ -323,8 +312,7 @@ presubmits:
preset-packet: "true"
spec:
containers:
# Uses go1.11.1
- image: quay.io/kubermatic/dep:0.5.4-2
- image: golang:1.13.8
command:
- "./hack/ci-e2e-test.sh"
args:
Expand All @@ -346,8 +334,7 @@ presubmits:
preset-cherryservers: "true"
spec:
containers:
# Uses go1.11.1
- image: quay.io/kubermatic/dep:0.5.4-2
- image: golang:1.13.8
command:
- "./hack/ci-e2e-test.sh"
args:
Expand All @@ -369,8 +356,7 @@ presubmits:
preset-rhel: "true"
spec:
containers:
# Uses go1.11.1
- image: quay.io/kubermatic/dep:0.5.4-2
- image: golang:1.13.8
command:
- "./hack/ci-e2e-test.sh"
args:
Expand All @@ -391,8 +377,7 @@ presubmits:
preset-e2e-ssh: "true"
spec:
containers:
# Uses go1.11.1
- image: quay.io/kubermatic/dep:0.5.4-2
- image: golang:1.13.8
command:
- "./hack/ci-e2e-test.sh"
args:
Expand All @@ -412,8 +397,7 @@ presubmits:
preset-e2e-ssh: "true"
spec:
containers:
# Uses go1.11.1
- image: quay.io/kubermatic/dep:0.5.4-2
- image: golang:1.13.8
command:
- "./hack/ci-e2e-test.sh"
args:
Expand Down Expand Up @@ -445,8 +429,7 @@ presubmits:
preset-e2e-ssh: "true"
spec:
containers:
# Uses go1.11.1
- image: quay.io/kubermatic/dep:0.5.4-2
- image: golang:1.13.8
command:
- "./hack/ci-e2e-test.sh"
args:
Expand All @@ -467,8 +450,7 @@ presubmits:
preset-e2e-ssh: "true"
spec:
containers:
# Uses go1.11.1
- image: quay.io/kubermatic/dep:0.5.4-2
- image: golang:1.13.8
command:
- "./hack/ci-e2e-test.sh"
args:
Expand All @@ -490,8 +472,7 @@ presubmits:
preset-e2e-ssh: "true"
spec:
containers:
# Uses go1.11.1
- image: quay.io/kubermatic/dep:0.5.4-2
- image: golang:1.13.8
command:
- "./hack/ci-e2e-test.sh"
args:
Expand Down
3 changes: 0 additions & 3 deletions .yamllint.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,3 @@ rules:
document-start: disable
comments: disable
line-length: disable

ignore: |
vendor/
Loading

0 comments on commit 1da2394

Please sign in to comment.