Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
216 commits
Select commit Hold shift + click to select a range
085dfeb
Increase default timeout for OpenStack provider (#1570)
ahmedwaleedmalik Feb 22, 2023
d710662
Add metrics for provisioning nodes (#1572)
eiabea Feb 22, 2023
e80f611
Postpone machine cleanup when instance is still being created (#1571)
Feb 23, 2023
b63dfa1
Support Private IP for Hetzner Cloud (#1579)
moadqassem Feb 28, 2023
ce45ab9
adjust VPC to the new one after we recently switched AWS accounts (#1…
xrstf Mar 14, 2023
20b44fb
do not cache cancelled/timed out validations (#1593)
xrstf Mar 14, 2023
523298e
store MC/OSM logs as artifacts during E2E tests (#1594)
xrstf Mar 14, 2023
ee0d1cd
reduce default log level to prevent credentials from leaking (#1597)
xrstf Mar 23, 2023
4d09804
Anexia Provider: fix failed vm deletion deadlock (#1600)
Mar 27, 2023
2832465
Fix E2E tests for VMware Cloud Director (#1601)
ahmedwaleedmalik Mar 27, 2023
d054e61
Validate the AWS VPC has DNS hostnames enabled (#1590)
xrstf Mar 27, 2023
9470059
remove custom AMI from rhel os (#1607)
moadqassem Mar 28, 2023
09b7c7d
Fix vSphere e2e tests (#1608)
ahmedwaleedmalik Mar 28, 2023
0c507dd
Upgrade to Go 1.20.2 (#1584)
ahmedwaleedmalik Mar 28, 2023
e62960d
initialize iscsi if cloudprovider is Nutanix (#1596)
lucakuendig Mar 28, 2023
0598624
API token authentication support for VMware Cloud Director (#1612)
ahmedwaleedmalik Apr 3, 2023
4ec7ddf
Use OSM with Anexia E2E tests (#1582)
ahmedwaleedmalik Apr 5, 2023
dc7a8a2
Update Golang version to 1.20.3 (#1614)
pkprzekwas Apr 6, 2023
51e7170
fix not found check: errors.As for type match whereas errors.Is for v…
furkhat Apr 6, 2023
dd2680d
Refactor gcp client creating (#1613)
moadqassem Apr 9, 2023
052a4ca
Use zap instead of klog (#1606)
xrstf Apr 20, 2023
81db2c0
Use eu-central-1b for AWS arm tests (#1621)
embik Apr 25, 2023
c862e2f
update container linux config transpiler (#1611)
mate4st Apr 26, 2023
39e6eaf
Synchronize OWNERS_ALIASES file with Github teams (#1624)
kubermatic-bot Apr 29, 2023
a8f4e0f
Support for Kubernetes v1.27 (#1623)
ahmedwaleedmalik May 3, 2023
0ee7860
fix missing formatting in log line (#1628)
xrstf May 4, 2023
fdd3c56
relax CSR validation to support Kubernetes 1.27 (#1629)
xrstf May 5, 2023
c92595c
Add support for OpenNebula as a cloud provider (#1450)
nilsding May 5, 2023
28ee3c0
Update Go to 1.20.4 (#1633)
xmudrii May 10, 2023
b9a1fcc
Anexia Provider: Configure dns servers (#1637)
eiabea May 11, 2023
bc2e86d
remove DisableStrictZoneCheck from AWS 1.27 cloud-config (#1638)
xrstf May 11, 2023
571a7b7
E2E: Fix configuration for spot instances on AWS (#1643)
ahmedwaleedmalik May 12, 2023
c998d90
Bump github.com/docker/distribution (#1639)
dependabot[bot] May 12, 2023
d0f4672
Deprecate user data plugins (#1642)
ahmedwaleedmalik May 12, 2023
8e58848
Switch to cert-manager for certificates (#1644)
ahmedwaleedmalik May 16, 2023
79bc81b
Add documentation for community providers (#1631)
embik May 26, 2023
28336b0
Fix empty network config handling (#1646)
eiabea May 30, 2023
bfd2fd7
Allow external CCMs to handle node objects before MC (#1645)
mfranczy Jun 1, 2023
2fefe6e
Add vmware anti-affinity for machine sets (#1647)
mate4st Jun 5, 2023
f0b1db6
Update Golang to 1.20.5 (#1659)
pkprzekwas Jun 9, 2023
02c047f
Update CRDs for OSM (#1662)
ahmedwaleedmalik Jun 13, 2023
94e2005
Anexia Provider: allow configuration of multiple disks (#1665)
Jun 20, 2023
6bfa9a0
Support for configuring multiple NICs for vSphere (#1673)
ahmedwaleedmalik Jul 3, 2023
102ad6f
use `kubermatic-e2e-flatcar` for e2e tests (#1664)
embik Jul 3, 2023
f39e319
KubeVirt: support for OCI VM image source (#1672)
wozniakjan Jul 4, 2023
5f4e903
Remove support for Kubernetes 1.24 (#1675)
ahmedwaleedmalik Jul 4, 2023
885284c
Bump google.golang.org/grpc from 1.51.0 to 1.53.0 (#1676)
dependabot[bot] Jul 6, 2023
cb07ce8
VSphere: Fine tune multiple NIC support and add E2E tests (#1678)
ahmedwaleedmalik Jul 7, 2023
e5f238c
Propagate datastore cluster for vSphere to cloud-config (#1682)
ahmedwaleedmalik Jul 18, 2023
1c12715
Replace `github.com/ghodss/yaml` with `sigs.k8s.io/yaml` (#1683)
Juneezee Jul 20, 2023
d285b8f
VCD: Fix compute and sizing policies (#1685)
ahmedwaleedmalik Jul 21, 2023
46144bd
Update Kubernetes patch versions for E2E tests (#1691)
ahmedwaleedmalik Jul 24, 2023
5a9f738
Remove support for docker (#1692)
ahmedwaleedmalik Jul 24, 2023
f40677c
Fix version of k8s.io/client-go in go.mod (#1693)
kron4eg Jul 26, 2023
6a870df
Upgrade to Go 1.21 (#1698)
ahmedwaleedmalik Aug 15, 2023
a55b9ae
Support for Kubernetes v1.28 (#1699)
ahmedwaleedmalik Aug 16, 2023
8957c01
Update dependencies (#1700)
ahmedwaleedmalik Aug 17, 2023
ca27728
Install socat explicitly in KIND cluster (#1701)
ahmedwaleedmalik Aug 22, 2023
d69e4e9
Update project owners (#1703)
ahmedwaleedmalik Sep 5, 2023
3a0177e
Update Kubernetes patch versions for E2E tests (#1705)
ahmedwaleedmalik Sep 15, 2023
ae2f558
- Fix isssue of creation of multiple vultr instance due to eventual c…
2000yeshu Sep 25, 2023
da744cd
Remove support for kubernetes v1.25 (#1709)
ahmedwaleedmalik Oct 5, 2023
e6de2fe
Pin flatcar to 3510.2.8 (#1711)
ahmedwaleedmalik Oct 10, 2023
367dbf4
Revert "Pin flatcar to 3510.2.8 (#1711)" (#1715)
ahmedwaleedmalik Oct 11, 2023
c2fa0c3
Bump golang.org/x/net from 0.14.0 to 0.17.0 (#1719)
dependabot[bot] Oct 12, 2023
921c8e1
Remove Zenhub integration (#1724)
ahmedwaleedmalik Oct 23, 2023
f2458f0
Drop centos support for Hetzner (#1725)
ahmedwaleedmalik Oct 23, 2023
34c7d12
Configure provider-id for the machines/nodes (#1723)
ahmedwaleedmalik Oct 23, 2023
e2c9f78
Bump google.golang.org/grpc from 1.57.0 to 1.57.1 (#1727)
dependabot[bot] Oct 26, 2023
1ab3247
Upgrade to Go 1.21.3 (#1728)
ahmedwaleedmalik Oct 30, 2023
1a01cb2
Bump go.opentelemetry.io/contrib/instrumentation/google.golang.org/gr…
dependabot[bot] Nov 22, 2023
953e653
aws: fix rocky linux description filter (#1733)
wozniakjan Nov 23, 2023
22c0e36
Migrate to dl.k8s.io from kubernetes release bucket (#1737)
ahmedwaleedmalik Nov 27, 2023
c162be2
Flatcar Support for GCE (#1739)
ahmedwaleedmalik Nov 29, 2023
4eb097a
Use JoinPath to construct vSphere url (#1738)
embik Dec 6, 2023
5f5c471
Update Prow jobs to build image with Go 1.21.5 (#1746)
embik Dec 12, 2023
ed3adcc
Deprecate sig-virtualization (#1749)
wozniakjan Dec 13, 2023
8f003c3
kubevirt: allow setting storage volume access types (#1740)
wozniakjan Dec 14, 2023
803ee10
AWS: increase spot instance price (#1754)
ahmedwaleedmalik Jan 5, 2024
3461bb5
Adds field to check if a IP reservation is still valid, (#1753)
89Q12 Jan 5, 2024
5291aac
Bump golang.org/x/crypto from 0.14.0 to 0.17.0 (#1750)
dependabot[bot] Jan 5, 2024
ea21341
webhook: refactor to use controller-runtime server (#1751)
LittleFox94 Jan 8, 2024
3f02ef6
Support for Kubernetes 1.29 (#1755)
ahmedwaleedmalik Jan 8, 2024
938522f
Upgrade to Go 1.22 (#1759)
ahmedwaleedmalik Feb 9, 2024
1fe4168
Update prow jobs and remove yamllint image (#1764)
embik Feb 16, 2024
2397824
Remove TORCX_BINDIR from containerd binary call (#1760)
embik Feb 19, 2024
bd68d2c
Support Edge Provider in Machine Controller (#1765)
moadqassem Feb 19, 2024
8cef3ec
Release branch release/v1.59 commit (#1766)
xmudrii Feb 21, 2024
4342ca2
Drop support for kubernetes 1.26 (#1769)
ahmedwaleedmalik Mar 6, 2024
9e086c4
Upgrade to Go 1.22.1 (#1770)
ahmedwaleedmalik Mar 7, 2024
fb5b68d
Bump google.golang.org/protobuf from 1.32.0 to 1.33.0 (#1771)
dependabot[bot] Mar 14, 2024
046343d
Bump dependencies (#1772)
xrstf Mar 21, 2024
7e3d16b
Update golang to 1.22.2 (#1776)
akash-gautam Apr 10, 2024
f339b66
Support for Kubernetes 1.30 (#1777)
ahmedwaleedmalik Apr 18, 2024
eaccda7
Fix vSphere anti-affinity (#1779)
ahmedwaleedmalik Apr 23, 2024
0231d55
Remove user-data plugins from machine-controller (#1789)
ahmedwaleedmalik May 2, 2024
31463a8
Fix namespace for machinesets (#1792)
ahmedwaleedmalik May 6, 2024
f718485
Anexia: various patches (request/response logging, CPU performance ty…
LittleFox94 May 14, 2024
762be54
update to controller-runtime 0.18.2 (#1786)
xrstf May 31, 2024
d4db18e
Fix AMI filter for rocky linux (#1801)
ahmedwaleedmalik Jun 3, 2024
2447748
Update AMI filter for rocky linux (#1803)
ahmedwaleedmalik Jun 3, 2024
ec6b903
Delete provSpec redundant check in MC providers (#1791)
mohamed-rafraf Jun 5, 2024
b14dc1c
Drop cloud provider specific cloud-configs (#1802)
ahmedwaleedmalik Jun 6, 2024
94e1bf2
Bump GO version to 1.22.4 (#1806)
archups Jun 6, 2024
d62ab03
Remove container runtime related code (#1812)
ahmedwaleedmalik Jun 6, 2024
1f263db
Use cluster-exposer from build image (#1813)
ahmedwaleedmalik Jun 6, 2024
300e7d6
Deprecate cluster-dns flag (#1814)
ahmedwaleedmalik Jun 6, 2024
635188c
Bump github.com/hashicorp/go-retryablehttp from 0.7.5 to 0.7.7 (#1819)
dependabot[bot] Jun 25, 2024
9db708c
Hetzner: Skip operating system validation if custom image is provided…
P4sca1 Jun 25, 2024
8f3166a
Support for Hetzner arm64 architecture instances (#1816)
7oku Jun 27, 2024
3dffe17
Bump Go version to 1.22.5 (#1822)
archups Jul 8, 2024
25971d5
Update to latest k8s patches for e2e tests (#1824)
ahmedwaleedmalik Jul 8, 2024
843aa90
Update dependencies (#1825)
ahmedwaleedmalik Jul 8, 2024
b0bc220
Remove kubernetes 1.27 support (#1823)
ahmedwaleedmalik Jul 9, 2024
7a3746a
Cleanup for golangci config (#1828)
ahmedwaleedmalik Jul 12, 2024
b030806
OpenStack: Support enabling config drive (#1829)
ahmedwaleedmalik Jul 23, 2024
d89c4fb
Refactor Tinkerbell provider (#1830)
moadqassem Jul 25, 2024
23dc258
fix hardware metadata validation (#1832)
moadqassem Jul 30, 2024
fda0fa8
refactor tb machine cleanup (#1831)
moadqassem Jul 30, 2024
5349a3c
AWS: Increase IMDS hop limit for EC2 instances (#1833)
ahmedwaleedmalik Jul 31, 2024
aad4dd9
bump to Go 1.23.0 (#1838)
xrstf Aug 14, 2024
67426e6
bump Dockerfile to golang 1.23.0 (#1839)
xrstf Aug 15, 2024
646e5aa
Add support for Kubernetes v1.31 (#1840)
xmudrii Aug 15, 2024
40b32ab
Remove CentOS tests (#1843)
xmudrii Aug 16, 2024
107e351
Anexia: extend network configuration (#1845)
LittleFox94 Aug 21, 2024
3ead298
vSphere: support for VM Groups (#1847)
ahmedwaleedmalik Aug 26, 2024
5401633
Fix vSphere E2E tests (#1844)
xmudrii Aug 26, 2024
7051af1
Move module to k8c.io/machine-controller (#1842)
xmudrii Aug 26, 2024
93fb4f1
add kubermatic to packngo User-Agent (#1848)
displague Aug 27, 2024
64cc5c3
add navid as a maintainer (#1849)
moadqassem Aug 27, 2024
62bda97
disable kubevirt tests and connectiton to dev is fixed (#1852)
moadqassem Aug 27, 2024
24e281f
Add static up support for KubeVirt in KubeOVN (#1851)
moadqassem Aug 28, 2024
c2e5055
copy annoations to VMI (#1853)
moadqassem Aug 28, 2024
4c08148
Add sig-cluster-management as code owners (#1850)
ahmedwaleedmalik Aug 29, 2024
69383af
Support Different Storage Targets for KubeVirt Provider (#1855)
moadqassem Sep 1, 2024
77e8b4e
Remove random mac address as default option and add kubevirt bridge a…
cnvergence Sep 8, 2024
7f090ad
Upgrade to Go 1.23.1 (#1859)
ahmedwaleedmalik Sep 13, 2024
cb8d197
Support topology aware zones and regions in KubeVirt (#1860)
moadqassem Sep 26, 2024
3ebc852
Support Zone-Aware Topology in KubeVirt (#1861)
moadqassem Oct 4, 2024
6a9e720
Support KubeVirt Provider Network (#1862)
moadqassem Oct 4, 2024
0fb8b75
fix template bug and add reboot action (#1864)
mohamed-rafraf Oct 8, 2024
cda075d
Support KubeOVN VPC and Subnet (#1863)
moadqassem Oct 8, 2024
8890198
Revert Changes to KubeVirt Provider Networks (#1865)
moadqassem Oct 9, 2024
713b23c
Fix: Configure Cloud-Init Script to execute automatically (#1866)
mohamed-rafraf Oct 11, 2024
4465175
Upgrade to Go 1.23.2 (#1867)
ahmedwaleedmalik Oct 11, 2024
95ee8c0
Update k8s versions to latest patch (#1868)
ahmedwaleedmalik Oct 11, 2024
46cfdfe
Fix typo in template.go (#1869)
mohamed-rafraf Oct 11, 2024
abbb86c
support ubuntu nobel (#1858)
moadqassem Oct 14, 2024
22c1174
Drop support for Kubernetes v1.28 (#1870)
ahmedwaleedmalik Oct 18, 2024
fd8ed76
Refactor kubervirt provider storage (#1872)
moadqassem Oct 22, 2024
36a68f1
replace packethost/packngo with equinix SDK (#1871)
xrstf Nov 4, 2024
b5a4e91
Support VM Network Multi-Queue in KubeVirt Provider (#1874)
moadqassem Nov 8, 2024
51cf731
Fix bug with handling server types and add new Hetzner server types (…
adoi Nov 15, 2024
4f251c4
remove centos support from machine controller (#1876)
adoi Nov 18, 2024
62b9f9e
Bump github.com/golang-jwt/jwt/v4 from 4.5.0 to 4.5.1 (#1875)
dependabot[bot] Nov 18, 2024
86c117a
Support Importing Volume Over HTTP Using Basic Auth (#1878)
moadqassem Nov 18, 2024
63ed9f0
refactor ubuntu arm image in aws (#1880)
moadqassem Nov 20, 2024
be6a6aa
Synchronize OWNERS_ALIASES file with Github teams (#1881)
kubermatic-bot Nov 29, 2024
1e563a2
Support KubeVirt CDI Datavolume secret ref (#1885)
moadqassem Dec 6, 2024
d269a83
fix decode with tink-kubeconfig envar (#1888)
mohamed-rafraf Jan 2, 2025
049efb4
Bump golang.org/x/crypto from 0.27.0 to 0.31.0 (#1887)
dependabot[bot] Jan 2, 2025
fadb8b7
Add partition number annotation (#1890)
mohamed-rafraf Jan 3, 2025
083c6d5
Synchronize OWNERS_ALIASES file with Github teams (#1894)
kubermatic-bot Jan 11, 2025
d6ee7f4
baremetal: Templating OSImage links through Tinkerbell workflow objec…
mohamed-rafraf Jan 13, 2025
cb06308
feat(metrics): add machine deployment metrics (#1879)
rajaSahil Jan 22, 2025
e0c29cd
Support kubevirt evection strategy in kv provider (#1897)
moadqassem Jan 28, 2025
e9ea007
add new external provider (#1898)
moadqassem Feb 10, 2025
6243011
Change Ubuntu template for Vsphere e2e tests (#1899)
julioc-p Feb 28, 2025
91d2aec
Move APIs and cloud provider types into standalone Go module in ./sdk…
xrstf Feb 28, 2025
047425f
Synchronize OWNERS_ALIASES file with Github teams (#1901)
kubermatic-bot Feb 28, 2025
b5932c1
Synchronize OWNERS_ALIASES file with Github teams (#1904)
kubermatic-bot Mar 3, 2025
1427edd
Bump golang.org/x/net from 0.29.0 to 0.33.0 (#1903)
dependabot[bot] Mar 3, 2025
99a4aa5
Change KubeVirt VM CPU assignment to not overwrite cpu alloc ratio (#…
soer3n Mar 14, 2025
7b6ae89
fix kubevirt cpu check + update sdk version in go.mod (#1912)
soer3n Apr 1, 2025
ed388a8
Bump Go version to 1.23.7 (#1913)
archups Apr 3, 2025
30362bb
Improve SDK, add readme (#1915)
xrstf Apr 4, 2025
744bbba
Update to Go 1.24.2, golangci-lint 2.x (#1914)
xrstf Apr 4, 2025
ff89f64
Bump github.com/golang-jwt/jwt/v4 from 4.5.1 to 4.5.2 (#1910)
dependabot[bot] Apr 4, 2025
a9dc4e6
Update to controller-runtime 0.20, bump golang.org/x libraries (#1917)
xrstf Apr 8, 2025
2530a75
Update the new image tag for KKP owned images (#1922)
archups May 13, 2025
7a93ac5
Add ClusterNamespace Annotations to Worker Nodes (#1924)
moadqassem May 20, 2025
d8c397d
Handle SDK version tags (#1925)
xrstf May 30, 2025
bab47c4
fix AMI query for Ubuntu images (#1927)
xrstf Jun 9, 2025
94d2587
Synchronize OWNERS_ALIASES file with Github teams (#1930)
kubermatic-bot Jun 13, 2025
b0fd2c8
Bump Go version to 1.24.4 (#1934)
archups Jul 2, 2025
aee94df
Synchronize OWNERS_ALIASES file with Github teams (#1936)
kubermatic-bot Jul 8, 2025
aad8f34
Synchronize OWNERS_ALIASES file with Github teams (#1946)
kubermatic-bot Jul 28, 2025
cd742c3
fix various typos (#1935)
xrstf Jul 28, 2025
a941ab2
feat(openstack): add support for defining multiple networks (#1950)
syphernl Jul 29, 2025
0d86633
feat(nutanix): use CachedClient, chore(nutanix): more error log infor…
adberger Aug 4, 2025
f6a7dc0
add support for rocky linux 9 i.e default to 9.6 (#1951)
rajaSahil Aug 22, 2025
bfda6d6
Use flatcar-container-linux-corevm-amd64 for flatcar on Azure (#1956)
ahmedwaleedmalik Sep 3, 2025
5d1aa41
add support for rhel 9 (#1954)
rajaSahil Sep 11, 2025
3e25421
add support for rhel 9 (#1963)
rajaSahil Sep 16, 2025
ad427b2
update rockylinux and rhel image for e2e tests (#1964)
rajaSahil Sep 17, 2025
e7f85ba
Add support for k8s 1.34 (#1955)
archups Sep 18, 2025
ff10585
Add support to provisioning vcloud workers with multiple nics/network…
4ch3los Sep 22, 2025
1b7f311
add support for nvme devices for tinkerbell provider (#1921)
soer3n Sep 25, 2025
c32d551
Add new kubelet configs (#1972)
kron4eg Oct 13, 2025
b362a3a
Move some pkg constants to sdk. (#1973)
kron4eg Oct 13, 2025
345eaa1
fix reference for gen2 ubuntu sku for azure (#1978)
rajaSahil Dec 2, 2025
41e351d
Label KubeVirt VMs based on cluster id and project id (#1981)
moadqassem Dec 13, 2025
a042c0d
Synchronize OWNERS_ALIASES file with Github teams (#1975)
kubermatic-bot Dec 16, 2025
32c8697
drop support for k8s v1.31 (#1985)
rajaSahil Jan 12, 2026
fd6b7b8
Bump Go version to 1.25.5 (#1986)
archups Jan 15, 2026
d8f5df1
Update base image for machine-controller container image to apline:3.…
archups Jan 15, 2026
eae364f
Bump Go version to 1.25.6 (#1989)
archups Jan 19, 2026
cc91256
feat: Add version information to Hetzner provider HTTP client (#1991)
kron4eg Jan 21, 2026
01ad12a
Use EndpointSlices for API server discovery instead of deprecated End…
adoi Jan 21, 2026
9422561
Add support for Kubernetes version 1.35 (#1995)
rajaSahil Feb 2, 2026
6323ea7
Bump controller-runtime to 0.23.1 (#1996)
archups Feb 17, 2026
6b0bb9c
support machine labels to kubev vm (#1998)
moadqassem Feb 17, 2026
767a4db
Synchronize OWNERS_ALIASES file with Github teams (#1999)
kubermatic-bot Feb 25, 2026
e5d1ab5
Bump Go version to 1.25.7 (#2003)
archups Feb 28, 2026
74ad3d7
Bump google.golang.org/grpc from 1.72.2 to 1.79.3 (#2004)
dependabot[bot] Mar 19, 2026
14cfee0
Merge remote-tracking branch 'upstream/main' into dkroell/main-from-u…
davidkroell Mar 26, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .gimps.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# This is the configuration for https://github.com/xrstf/gimps.
# This is the configuration for https://codeberg.org/xrstf/gimps.

importOrder: [std, external, kubermatic, kubernetes]
sets:
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ examples/*.srl
/vendor
.vscode
.gitpod.yml
cmd/machine-controller/__debug_bin
cmd/machine-controller/__debug_bin*
!pkg
114 changes: 85 additions & 29 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,21 @@
version: "2"
run:
deadline: 20m
build-tags:
- e2e
skip-dirs:
- pkg/client
- pkg/machines

linters:
default: none
enable:
- asciicheck
- bidichk
- bodyclose
- deadcode
- depguard
- durationcheck
- errcheck
- errname
- errorlint
- exportloopref
- goconst
- gocyclo
- godot
- gofmt
- gosimple
- govet
- importas
- ineffassign
Expand All @@ -33,29 +26,92 @@ linters:
- nosprintfhostport
- predeclared
- promlinter
- revive
- staticcheck
- structcheck
- tenv
- unconvert
- unused
- varcheck
- wastedassign
- whitespace
disable-all: true

settings:
depguard:
rules:
main:
deny:
- pkg: io/ioutil
desc: https://go.dev/doc/go1.16#ioutil
- pkg: github.com/ghodss/yaml
desc: use sigs.k8s.io/yaml instead
govet:
enable:
- nilness # find tautologies / impossible conditions
importas:
alias:
# Machine Controller
- pkg: k8c.io/machine-controller/sdk/apis/(\w+)/(v[\w\d]+)
alias: $1$2
# Kubernetes
- pkg: k8s.io/api/(\w+)/(v[\w\d]+)
alias: $1$2
- pkg: k8s.io/apimachinery/pkg/apis/meta/v1
alias: metav1
- pkg: k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1
alias: apiextensionsv1
- pkg: k8s.io/apimachinery/pkg/api/errors
alias: apierrors
- pkg: k8s.io/apimachinery/pkg/util/errors
alias: kerrors
# Controller Runtime
- pkg: sigs.k8s.io/controller-runtime/pkg/client
alias: ctrlruntimeclient
# Other Kube APIs
- pkg: go.anx.io/go-anxcloud/pkg/apis/(\w+)/(v[\w\d]+)
alias: anx$1$2
- pkg: github.com/tinkerbell/tink/api/(v[\w\d]+)
alias: tink$1
- pkg: kubevirt.io/api/(\w+)/(v[\w\d]+)
alias: kubevirt$1$2
- pkg: kubevirt.io/containerized-data-importer-api/pkg/apis/(\w+)/(v[\w\d]+)
alias: cdi$1$2
no-unaliased: true
exclusions:
generated: lax
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
rules:
- path: (.+)\.go$
text: func Convert_MachinesV1alpha1Machine_To_ClusterV1alpha1Machine should be ConvertMachinesV1alpha1MachineToClusterV1alpha1Machine
- path: (.+)\.go$
text: func Convert_MachineDeployment_ProviderConfig_To_ProviderSpec should be ConvertMachineDeploymentProviderConfigToProviderSpec
- path: (.+)\.go$
text: func Convert_MachineSet_ProviderConfig_To_ProviderSpec should be ConvertMachineSetProviderConfigToProviderSpec
- path: (.+)\.go$
text: func Convert_Machine_ProviderConfig_To_ProviderSpec should be ConvertMachineProviderConfigToProviderSpec
- path: (.+)\.go$
text: cyclomatic complexity [0-9]+ of func `\(\*provider\)\.Create` is high
- path: (.+)\.go$
text: cyclomatic complexity [0-9]+ of func `\(\*provider\)\.Validate` is high
- path: (.+)\.go$
text: cyclomatic complexity [0-9]+ of func `\(\*provider\)\.getConfig` is high
- path: (.+)\.go$
text: 'SA1019: s.server.IPv6 is deprecated'
- path: (.+)\.go$
text: 'SA1019: mgr.GetEventRecorderFor is deprecated'
paths:
- apis/machines
- third_party$
- builtin$
- examples$
issues:
exclude:
- should have comment or be unexported
- should have comment \\(or a comment on this block\\) or be unexported
- func Convert_MachinesV1alpha1Machine_To_ClusterV1alpha1Machine should be ConvertMachinesV1alpha1MachineToClusterV1alpha1Machine
- func Convert_MachineDeployment_ProviderConfig_To_ProviderSpec should be ConvertMachineDeploymentProviderConfigToProviderSpec
- func Convert_MachineSet_ProviderConfig_To_ProviderSpec should be ConvertMachineSetProviderConfigToProviderSpec
- 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'
- "cyclomatic complexity 31 of func `verifyMigrateUID` is high"
- "cyclomatic complexity 31 of func `main` is high"
- 'cyclomatic complexity 34 of func `\(\*provider\)\.getConfig` is high'
- 'cyclomatic complexity 31 of func `\(\*provider\)\.Validate` is high'
- 'cyclomatic complexity 33 of func `\(\*provider\)\.Create` is high'
max-same-issues: 0
formatters:
enable:
- gofmt
exclusions:
generated: lax
paths:
- apis/machines
- third_party$
- builtin$
- examples$
15 changes: 10 additions & 5 deletions .prow/e2e-features.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ presubmits:
always_run: true
decorate: true
clone_uri: "ssh://git@github.com/kubermatic/machine-controller.git"
path_alias: k8c.io/machine-controller
labels:
preset-aws: "true"
preset-azure: "true"
Expand All @@ -34,7 +35,7 @@ presubmits:
preset-kubeconfig-ci: "true"
spec:
containers:
- image: quay.io/kubermatic/build:go-1.19-node-18-kind-0.17-5
- image: quay.io/kubermatic/build:go-1.25-node-22-kind-0.30-8
command:
- "./hack/ci/run-e2e-tests.sh"
args:
Expand All @@ -52,6 +53,7 @@ presubmits:
always_run: true
decorate: true
clone_uri: "ssh://git@github.com/kubermatic/machine-controller.git"
path_alias: k8c.io/machine-controller
labels:
preset-openstack: "true"
preset-hetzner: "true"
Expand All @@ -63,7 +65,7 @@ presubmits:
preset-kubeconfig-ci: "true"
spec:
containers:
- image: quay.io/kubermatic/build:go-1.19-node-18-kind-0.17-5
- image: quay.io/kubermatic/build:go-1.25-node-22-kind-0.30-8
command:
- "./hack/ci/run-e2e-tests.sh"
args:
Expand All @@ -78,9 +80,11 @@ presubmits:
memory: 7Gi

- name: pull-machine-controller-e2e-ubuntu-upgrade
always_run: true
# In-tree CCM is not supported for openstack starting from k8s 1.26. Please see https://github.com/kubermatic/machine-controller/issues/1626 for updates.
# run_if_changed: "(pkg/cloudprovider/provider/openstack/|pkg/userdata)"
decorate: true
clone_uri: "ssh://git@github.com/kubermatic/machine-controller.git"
path_alias: k8c.io/machine-controller
labels:
preset-openstack: "true"
preset-hetzner: "true"
Expand All @@ -91,7 +95,7 @@ presubmits:
preset-kubeconfig-ci: "true"
spec:
containers:
- image: quay.io/kubermatic/build:go-1.19-node-18-kind-0.17-5
- image: quay.io/kubermatic/build:go-1.25-node-22-kind-0.30-8
command:
- "./hack/ci/run-e2e-tests.sh"
args:
Expand All @@ -109,6 +113,7 @@ presubmits:
always_run: false
decorate: true
clone_uri: "ssh://git@github.com/kubermatic/machine-controller.git"
path_alias: k8c.io/machine-controller
labels:
preset-hetzner: "true"
preset-e2e-ssh: "true"
Expand All @@ -118,7 +123,7 @@ presubmits:
preset-kubeconfig-ci: "true"
spec:
containers:
- image: quay.io/kubermatic/build:go-1.19-node-18-kind-0.17-5
- image: quay.io/kubermatic/build:go-1.25-node-22-kind-0.30-8
command:
- "./hack/ci/run-e2e-tests.sh"
args:
Expand Down
6 changes: 4 additions & 2 deletions .prow/postsubmits.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ postsubmits:
always_run: true
decorate: true
clone_uri: "ssh://git@github.com/kubermatic/machine-controller.git"
path_alias: k8c.io/machine-controller
branches:
- ^main$
# Match on tags
Expand All @@ -26,7 +27,7 @@ postsubmits:
preset-goproxy: "true"
spec:
containers:
- image: quay.io/kubermatic/build:go-1.19-node-18-kind-0.17-5
- image: quay.io/kubermatic/build:go-1.25-node-22-kind-0.30-8
command:
- /bin/bash
- -c
Expand All @@ -48,13 +49,14 @@ postsubmits:
always_run: true
decorate: true
clone_uri: "ssh://git@github.com/kubermatic/machine-controller.git"
path_alias: k8c.io/machine-controller
branches:
- ^main$
labels:
preset-goproxy: "true"
spec:
containers:
- image: quay.io/kubermatic/build:go-1.19-node-18-kind-0.17-5
- image: quay.io/kubermatic/build:go-1.25-node-22-kind-0.30-8
command:
- "./hack/ci/upload-gocache.sh"
resources:
Expand Down
3 changes: 2 additions & 1 deletion .prow/provider-alibaba.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ presubmits:
always_run: false
decorate: true
clone_uri: "ssh://git@github.com/kubermatic/machine-controller.git"
path_alias: k8c.io/machine-controller
max_concurrency: 1
labels:
preset-alibaba: "true"
Expand All @@ -29,7 +30,7 @@ presubmits:
preset-kubeconfig-ci: "true"
spec:
containers:
- image: quay.io/kubermatic/build:go-1.19-node-18-kind-0.17-5
- image: quay.io/kubermatic/build:go-1.25-node-22-kind-0.30-8
command:
- "./hack/ci/run-e2e-tests.sh"
args:
Expand Down
10 changes: 6 additions & 4 deletions .prow/provider-anexia.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,14 @@

presubmits:
- name: pull-machine-controller-e2e-anexia
# We've made the E2E tests for Anexia optional since it doesn't support k8s v1.26 at the moment.
# the tests on k8s v1.26+ will fail.
# TODO: These tests shouldn't be marked as optional.
optional: true
always_run: false
decorate: true
clone_uri: "ssh://git@github.com/kubermatic/machine-controller.git"
path_alias: k8c.io/machine-controller
labels:
preset-hetzner: "true"
preset-e2e-ssh: "true"
Expand All @@ -27,15 +32,12 @@ presubmits:
preset-kubeconfig-ci: "true"
spec:
containers:
- image: quay.io/kubermatic/build:go-1.19-node-18-kind-0.17-5
- image: quay.io/kubermatic/build:go-1.25-node-22-kind-0.30-8
command:
- "./hack/ci/run-e2e-tests.sh"
args:
- "TestAnexiaProvisioningE2E"
env:
# OperatingSystemManager does not yet support Anexia
- name: OPERATING_SYSTEM_MANAGER
value: "false"
- name: CLOUD_PROVIDER
value: anexia
securityContext:
Expand Down
Loading
Loading