Skip to content

Commit ee38d0a

Browse files
authored
Merge pull request #5 from cozystack/move-to-cozystack
Move module, image and copyright to Cozystack
2 parents c8c04fd + c2a2207 commit ee38d0a

25 files changed

Lines changed: 177 additions & 155 deletions

‎.github/workflows/lint.yml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Clone the code
13-
uses: actions/checkout@v4
13+
uses: actions/checkout@v7
1414

1515
- name: Setup Go
16-
uses: actions/setup-go@v5
16+
uses: actions/setup-go@v7
1717
with:
1818
go-version-file: go.mod
1919

2020
- name: Run linter
21-
uses: golangci/golangci-lint-action@v6
21+
uses: golangci/golangci-lint-action@v9
2222
with:
23-
version: v1.63.4
23+
version: v2.14.0

‎.github/workflows/release.yml‎

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,23 @@ jobs:
1616
image:
1717
runs-on: ubuntu-latest
1818
steps:
19-
- uses: actions/checkout@v4
19+
- uses: actions/checkout@v7
2020

21-
- uses: docker/setup-qemu-action@v3
22-
- uses: docker/setup-buildx-action@v3
21+
- uses: docker/setup-qemu-action@v4
22+
- uses: docker/setup-buildx-action@v4
2323

24-
- uses: docker/login-action@v3
24+
- uses: docker/login-action@v4
2525
with:
2626
registry: ghcr.io
2727
username: ${{ github.actor }}
2828
password: ${{ secrets.GITHUB_TOKEN }}
2929

3030
- id: meta
31-
uses: docker/metadata-action@v5
31+
uses: docker/metadata-action@v6
32+
env:
33+
# GHCR links a multi-arch package to its repo via the index
34+
# annotation; the Dockerfile LABEL only reaches the per-arch configs.
35+
DOCKER_METADATA_ANNOTATIONS_LEVELS: manifest,index
3236
with:
3337
images: ${{ env.IMAGE }}
3438
tags: |
@@ -38,11 +42,13 @@ jobs:
3842
type=semver,pattern={{major}}.{{minor}}
3943
4044
- id: build
41-
uses: docker/build-push-action@v6
45+
uses: docker/build-push-action@v7
4246
with:
4347
context: .
4448
platforms: linux/amd64,linux/arm64
4549
tags: ${{ steps.meta.outputs.tags }}
50+
labels: ${{ steps.meta.outputs.labels }}
51+
annotations: ${{ steps.meta.outputs.annotations }}
4652
push: true
4753
cache-from: type=gha
4854
cache-to: type=gha,mode=max

‎.github/workflows/test.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Clone the code
13-
uses: actions/checkout@v4
13+
uses: actions/checkout@v7
1414

1515
- name: Setup Go
16-
uses: actions/setup-go@v5
16+
uses: actions/setup-go@v7
1717
with:
1818
go-version-file: go.mod
1919

‎.golangci.yml‎

Lines changed: 30 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,15 @@
1+
version: "2"
12
run:
2-
timeout: 5m
33
allow-parallel-runners: true
4-
5-
issues:
6-
# don't skip warning about doc comments
7-
# don't exclude the default set of lint
8-
exclude-use-default: false
9-
# restore some of the defaults
10-
# (fill in the rest as needed)
11-
exclude-rules:
12-
- path: "api/*"
13-
linters:
14-
- lll
15-
- path: "internal/*"
16-
linters:
17-
- dupl
18-
- lll
194
linters:
20-
disable-all: true
5+
default: none
216
enable:
7+
- copyloopvar
228
- dupl
239
- errcheck
24-
- copyloopvar
2510
- ginkgolinter
2611
- goconst
2712
- gocyclo
28-
- gofmt
29-
- goimports
30-
- gosimple
3113
- govet
3214
- ineffassign
3315
- lll
@@ -36,12 +18,34 @@ linters:
3618
- prealloc
3719
- revive
3820
- staticcheck
39-
- typecheck
4021
- unconvert
4122
- unparam
4223
- unused
43-
44-
linters-settings:
45-
revive:
24+
settings:
25+
revive:
26+
rules:
27+
- name: comment-spacings
28+
exclusions:
29+
generated: lax
4630
rules:
47-
- name: comment-spacings
31+
- linters:
32+
- lll
33+
path: api/*
34+
- linters:
35+
- dupl
36+
- lll
37+
path: internal/*
38+
paths:
39+
- third_party$
40+
- builtin$
41+
- examples$
42+
formatters:
43+
enable:
44+
- gofmt
45+
- goimports
46+
exclusions:
47+
generated: lax
48+
paths:
49+
- third_party$
50+
- builtin$
51+
- examples$

‎Dockerfile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ARG TARGETARCH
1313
RUN CGO_ENABLED=0 GOARCH=${TARGETARCH} go build -trimpath -o /out/manager ./cmd
1414

1515
FROM gcr.io/distroless/static:nonroot
16-
LABEL org.opencontainers.image.source="https://github.com/lllamnyp/address-controller"
16+
LABEL org.opencontainers.image.source="https://github.com/cozystack/address-controller"
1717
COPY --from=build /out/manager /manager
1818
USER 65532:65532
1919
ENTRYPOINT ["/manager"]

‎Makefile‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
# Image coordinates. TAG defaults to something unique per commit; override for
55
# releases (e.g. make docker-push TAG=v0.1.0) or floating tags (TAG=main).
6-
IMG_REPO ?= ghcr.io/lllamnyp/address-controller
6+
IMG_REPO ?= ghcr.io/cozystack/address-controller
77
TAG ?= $(shell git describe --tags --always --dirty)
88
IMG ?= $(IMG_REPO):$(TAG)
99
PLATFORMS ?= linux/amd64,linux/arm64
@@ -131,7 +131,7 @@ CONTROLLER_TOOLS_VERSION ?= v0.17.1
131131
ENVTEST_VERSION ?= $(shell go list -m -f "{{ .Version }}" sigs.k8s.io/controller-runtime | awk -F'[v.]' '{printf "release-%d.%d", $$2, $$3}')
132132
#ENVTEST_K8S_VERSION is the version of Kubernetes to use for setting up ENVTEST binaries (i.e. 1.31)
133133
ENVTEST_K8S_VERSION ?= $(shell go list -m -f "{{ .Version }}" k8s.io/api | awk -F'[v.]' '{printf "1.%d", $$3}')
134-
GOLANGCI_LINT_VERSION ?= v1.63.4
134+
GOLANGCI_LINT_VERSION ?= v2.14.0
135135

136136
.PHONY: controller-gen
137137
controller-gen: $(CONTROLLER_GEN) ## Download controller-gen locally if necessary.
@@ -154,7 +154,7 @@ $(ENVTEST): $(LOCALBIN)
154154
.PHONY: golangci-lint
155155
golangci-lint: $(GOLANGCI_LINT) ## Download golangci-lint locally if necessary.
156156
$(GOLANGCI_LINT): $(LOCALBIN)
157-
$(call go-install-tool,$(GOLANGCI_LINT),github.com/golangci/golangci-lint/cmd/golangci-lint,$(GOLANGCI_LINT_VERSION))
157+
$(call go-install-tool,$(GOLANGCI_LINT),github.com/golangci/golangci-lint/v2/cmd/golangci-lint,$(GOLANGCI_LINT_VERSION))
158158

159159
# go-install-tool will 'go install' any package with custom target and name of binary, if it doesn't exist
160160
# $1 - target path with name of binary

‎PROJECT‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,22 @@ domain: sdn.cozystack.io
66
layout:
77
- go.kubebuilder.io/v4
88
projectName: address-controller
9-
repo: github.com/lllamnyp/address-controller
9+
repo: github.com/cozystack/address-controller
1010
resources:
1111
- api:
1212
crdVersion: v1
1313
domain: sdn.cozystack.io
1414
group: local
1515
kind: IPAddressClass
16-
path: github.com/lllamnyp/address-controller/api/v1alpha1
16+
path: github.com/cozystack/address-controller/api/v1alpha1
1717
version: v1alpha1
1818
- api:
1919
crdVersion: v1
2020
controller: true
2121
domain: sdn.cozystack.io
2222
group: local
2323
kind: IPAddress
24-
path: github.com/lllamnyp/address-controller/api/v1alpha1
24+
path: github.com/cozystack/address-controller/api/v1alpha1
2525
version: v1alpha1
2626
- api:
2727
crdVersion: v1
@@ -30,6 +30,6 @@ resources:
3030
domain: sdn.cozystack.io
3131
group: local
3232
kind: IPAddressClaim
33-
path: github.com/lllamnyp/address-controller/api/v1alpha1
33+
path: github.com/cozystack/address-controller/api/v1alpha1
3434
version: v1alpha1
3535
version: "3"

‎README.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ analogue), which live in separate projects.
1010
**The full contract — state machines, reconciliation algorithms, field
1111
ownership, and driver obligations — is specified in
1212
[docs/design.md](docs/design.md).** The reference driver implementing it is
13-
[metallb-iad](https://github.com/lllamnyp/metallb-iad).
13+
[metallb-iad](https://github.com/cozystack/metallb-iad).
1414

1515
## Resource model
1616

@@ -96,7 +96,7 @@ cluster. `helm uninstall` leaves the CRDs (and every `IPAddress` ledger
9696
entry) behind by design.
9797

9898
The controller image is published as
99-
`ghcr.io/lllamnyp/address-controller:main` (plus `main-<sha>` and semver tags)
99+
`ghcr.io/cozystack/address-controller:main` (plus `main-<sha>` and semver tags)
100100
by the release workflow on every push to main.
101101

102102
## Development
@@ -106,6 +106,6 @@ make manifests generate # regenerate CRDs, ClusterRole, and deepcopy after API
106106
make build # build the manager
107107
go test ./internal/controller/
108108
make run # run the controller locally
109-
make docker-build docker-push # publish ghcr.io/lllamnyp/address-controller:<git-sha>
109+
make docker-build docker-push # publish ghcr.io/cozystack/address-controller:<git-sha>
110110
make helm-package # lint and package the chart into dist/
111111
```

‎api/v1alpha1/groupversion_info.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright 2026 Timofei Larkin.
2+
Copyright 2026 The Cozystack Authors.
33
44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.

‎api/v1alpha1/ipaddress_types.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright 2026 Timofei Larkin.
2+
Copyright 2026 The Cozystack Authors.
33
44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)