Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 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 Down Expand Up @@ -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 Down Expand Up @@ -82,6 +84,7 @@ presubmits:
# 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 Down Expand Up @@ -110,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 Down
2 changes: 2 additions & 0 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 Down Expand Up @@ -48,6 +49,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$
labels:
Expand Down
1 change: 1 addition & 0 deletions .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 Down
1 change: 1 addition & 0 deletions .prow/provider-anexia.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,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 Down
6 changes: 6 additions & 0 deletions .prow/provider-aws.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ presubmits:
# run_if_changed: "(pkg/cloudprovider/provider/aws/|pkg/userdata)"
decorate: true
clone_uri: "ssh://git@github.com/kubermatic/machine-controller.git"
path_alias: k8c.io/machine-controller
labels:
preset-aws: "true"
preset-hetzner: "true"
Expand Down Expand Up @@ -51,6 +52,7 @@ presubmits:
# run_if_changed: "(pkg/cloudprovider/provider/aws/|pkg/userdata)"
decorate: true
clone_uri: "ssh://git@github.com/kubermatic/machine-controller.git"
path_alias: k8c.io/machine-controller
labels:
preset-aws: "true"
preset-hetzner: "true"
Expand Down Expand Up @@ -83,6 +85,7 @@ presubmits:
# run_if_changed: "(pkg/cloudprovider/provider/aws/|pkg/userdata)"
decorate: true
clone_uri: "ssh://git@github.com/kubermatic/machine-controller.git"
path_alias: k8c.io/machine-controller
labels:
preset-aws: "true"
preset-hetzner: "true"
Expand Down Expand Up @@ -115,6 +118,7 @@ presubmits:
# run_if_changed: "(pkg/cloudprovider/provider/aws/|pkg/userdata)"
decorate: true
clone_uri: "ssh://git@github.com/kubermatic/machine-controller.git"
path_alias: k8c.io/machine-controller
labels:
preset-aws: "true"
preset-hetzner: "true"
Expand Down Expand Up @@ -147,6 +151,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-aws: "true"
preset-hetzner: "true"
Expand Down Expand Up @@ -178,6 +183,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-aws-assume-role: "true"
preset-hetzner: "true"
Expand Down
3 changes: 3 additions & 0 deletions .prow/provider-azure.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ presubmits:
run_if_changed: "(pkg/cloudprovider/provider/azure/|pkg/userdata)"
decorate: true
clone_uri: "ssh://git@github.com/kubermatic/machine-controller.git"
path_alias: k8c.io/machine-controller
labels:
preset-azure: "true"
preset-hetzner: "true"
Expand Down Expand Up @@ -49,6 +50,7 @@ presubmits:
run_if_changed: "(pkg/cloudprovider/provider/azure/|pkg/userdata)"
decorate: true
clone_uri: "ssh://git@github.com/kubermatic/machine-controller.git"
path_alias: k8c.io/machine-controller
labels:
preset-azure: "true"
preset-hetzner: "true"
Expand Down Expand Up @@ -82,6 +84,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-azure: "true"
preset-hetzner: "true"
Expand Down
1 change: 1 addition & 0 deletions .prow/provider-digitalocean.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ presubmits:
run_if_changed: "(pkg/cloudprovider/provider/digitalocean/|pkg/userdata)"
decorate: true
clone_uri: "ssh://git@github.com/kubermatic/machine-controller.git"
path_alias: k8c.io/machine-controller
labels:
preset-digitalocean: "true"
preset-hetzner: "true"
Expand Down
1 change: 1 addition & 0 deletions .prow/provider-equinix-metal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ presubmits:
run_if_changed: "(pkg/cloudprovider/provider/equinixmetal/|pkg/userdata)"
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 Down
1 change: 1 addition & 0 deletions .prow/provider-gcp.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-gce: "true"
preset-hetzner: "true"
Expand Down
1 change: 1 addition & 0 deletions .prow/provider-hetzner.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ presubmits:
run_if_changed: "(pkg/cloudprovider/provider/hetzner/|pkg/userdata)"
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 Down
1 change: 1 addition & 0 deletions .prow/provider-kubevirt.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ presubmits:
run_if_changed: "(pkg/cloudprovider/provider/kubevirt/|pkg/userdata)"
decorate: true
clone_uri: "ssh://git@github.com/kubermatic/machine-controller.git"
path_alias: k8c.io/machine-controller
max_concurrency: 1
labels:
preset-kubevirt: "true"
Expand Down
1 change: 1 addition & 0 deletions .prow/provider-linode.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ presubmits:
optional: true
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 Down
1 change: 1 addition & 0 deletions .prow/provider-nutanix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ presubmits:
run_if_changed: "(pkg/cloudprovider/provider/nutanix/)"
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 Down
2 changes: 2 additions & 0 deletions .prow/provider-openstack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ presubmits:
# 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 Down Expand Up @@ -51,6 +52,7 @@ presubmits:
# 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 Down
1 change: 1 addition & 0 deletions .prow/provider-scaleway.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,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-scaleway: "true"
preset-hetzner: "true"
Expand Down
1 change: 1 addition & 0 deletions .prow/provider-vmware-cloud-director.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ presubmits:
# Please check: https://github.com/kubermatic/machine-controller/issues/1619
optional: true
clone_uri: "ssh://git@github.com/kubermatic/machine-controller.git"
path_alias: k8c.io/machine-controller
run_if_changed: "(pkg/cloudprovider/provider/vmwareclouddirector/)"
labels:
preset-vcloud-director: "true"
Expand Down
5 changes: 5 additions & 0 deletions .prow/provider-vsphere.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ presubmits:
run_if_changed: "(pkg/cloudprovider/provider/vsphere/|pkg/userdata)"
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 Down Expand Up @@ -49,6 +50,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-vsphere: "true"
preset-rhel: "true"
Expand Down Expand Up @@ -81,6 +83,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-vsphere: "true"
preset-rhel: "true"
Expand Down Expand Up @@ -113,6 +116,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 Down Expand Up @@ -145,6 +149,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 Down
8 changes: 8 additions & 0 deletions .prow/verify.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-goproxy: "true"
spec:
Expand All @@ -38,6 +39,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-goproxy: "true"
spec:
Expand All @@ -59,6 +61,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-goproxy: "true"
spec:
Expand All @@ -79,6 +82,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-goproxy: "true"
spec:
Expand All @@ -100,6 +104,7 @@ presubmits:
run_if_changed: "^hack/"
decorate: true
clone_uri: "ssh://git@github.com/kubermatic/machine-controller.git"
path_alias: k8c.io/machine-controller
spec:
containers:
- image: quay.io/kubermatic/build:go-1.23-node-20-0
Expand Down Expand Up @@ -128,6 +133,7 @@ presubmits:
always_run: true
decorate: true
clone_uri: "ssh://git@github.com/kubermatic/machine-controller.git"
path_alias: k8c.io/machine-controller
spec:
containers:
- image: quay.io/kubermatic/build:go-1.23-node-20-0
Expand All @@ -145,6 +151,7 @@ presubmits:
run_if_changed: "^go.(mod|sum)$"
decorate: true
clone_uri: "ssh://git@github.com/kubermatic/machine-controller.git"
path_alias: k8c.io/machine-controller
labels:
preset-goproxy: "true"
spec:
Expand All @@ -161,6 +168,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-goproxy: "true"
spec:
Expand Down
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

ARG GO_VERSION=1.23.0
FROM docker.io/golang:${GO_VERSION} AS builder
WORKDIR /go/src/github.com/kubermatic/machine-controller
WORKDIR /go/src/k8c.io/machine-controller
COPY . .
RUN make all

Expand All @@ -23,7 +23,7 @@ FROM alpine:3.19
RUN apk add --no-cache ca-certificates cdrkit

COPY --from=builder \
/go/src/github.com/kubermatic/machine-controller/machine-controller \
/go/src/github.com/kubermatic/machine-controller/webhook \
/go/src/k8c.io/machine-controller/machine-controller \
/go/src/k8c.io/machine-controller/webhook \
/usr/local/bin/
USER nobody
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ build-machine-controller: machine-controller
GOOS=$(GOOS) go build -v \
$(LDFLAGS) \
-o $@ \
github.com/kubermatic/machine-controller/cmd/$*
k8c.io/machine-controller/cmd/$*

.PHONY: clean
clean:
Expand Down Expand Up @@ -81,10 +81,10 @@ docker-image-publish: docker-image
.PHONY: test-unit-docker
test-unit-docker:
@docker run --rm \
-v $$PWD:/go/src/github.com/kubermatic/machine-controller \
-v $$PWD:/go/src/k8c.io/machine-controller \
-v $$PWD/.buildcache:/cache \
-e GOCACHE=/cache \
-w /go/src/github.com/kubermatic/machine-controller \
-w /go/src/k8c.io/machine-controller \
golang:$(GO_VERSION) \
make test-unit "GOFLAGS=$(GOFLAGS)"

Expand Down
Loading