Compare commits
58
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8095723337 | ||
|
|
062b386f7f | ||
|
|
4ede272b70 | ||
|
|
1cfd5ef55c | ||
|
|
c89dad396b | ||
|
|
cddda7098c | ||
|
|
9a186ad190 | ||
|
|
4ece12d18b | ||
|
|
6d0df79c87 | ||
|
|
445dd7830e | ||
|
|
a73aef4f9d | ||
|
|
a99de02594 | ||
|
|
893318ad53 | ||
|
|
201edb1b82 | ||
|
|
b1c0a4ee11 | ||
|
|
13677136a7 | ||
|
|
cb296c3881 | ||
|
|
3c6b48803d | ||
|
|
f71fa2af8e | ||
|
|
1819ef2b60 | ||
|
|
74d7ca84a5 | ||
|
|
0f7ffe3c85 | ||
|
|
3020510c6f | ||
|
|
475e226b69 | ||
|
|
a5521013b9 | ||
|
|
4aa3436f28 | ||
|
|
6e32555e9e | ||
|
|
13c23863be | ||
|
|
918b45c940 | ||
|
|
3cb65a5a14 | ||
|
|
4ae70ecf74 | ||
|
|
3aa4d1a24a | ||
|
|
1231bc50e5 | ||
|
|
e1847f4cf9 | ||
|
|
55a206d509 | ||
|
|
00179595e4 | ||
|
|
f09e008fb7 | ||
|
|
14a8155dcf | ||
|
|
93ef66f01d | ||
|
|
80746321a9 | ||
|
|
6423ef7d6e | ||
|
|
fdefd05608 | ||
|
|
760fd3903f | ||
|
|
cda1c7ddff | ||
|
|
1274fe610f | ||
|
|
f091ec148b | ||
|
|
66e1d854d3 | ||
|
|
f43c1f3b63 | ||
|
|
0046157633 | ||
|
|
56a781a260 | ||
|
|
29fb9601fd | ||
|
|
c34eea5e13 | ||
|
|
fe90ac7ea4 | ||
|
|
31679a3f53 | ||
|
|
de38c76e24 | ||
|
|
2a396ad981 | ||
|
|
b6a2b73eb8 | ||
|
|
2304e33586 |
@@ -22,3 +22,5 @@ jobs:
|
|||||||
run: git config --global url.git@gitea-ssh.engen.priv.no:.insteadOf https://gitea.engen.priv.no/
|
run: git config --global url.git@gitea-ssh.engen.priv.no:.insteadOf https://gitea.engen.priv.no/
|
||||||
- name: Build
|
- name: Build
|
||||||
run: go build cmd/main.go
|
run: go build cmd/main.go
|
||||||
|
- name: Build manifest
|
||||||
|
run: make build-installer
|
||||||
|
|||||||
@@ -24,3 +24,5 @@ jobs:
|
|||||||
run: go install github.com/google/ko@latest
|
run: go install github.com/google/ko@latest
|
||||||
- name: Build
|
- name: Build
|
||||||
run: KO_DOCKER_REPO=gitea.engen.priv.no/unifi-network-operator-controller PATH=~/go/bin:$PATH ko build --local ./cmd
|
run: KO_DOCKER_REPO=gitea.engen.priv.no/unifi-network-operator-controller PATH=~/go/bin:$PATH ko build --local ./cmd
|
||||||
|
- name: Build manifest
|
||||||
|
run: make build-installer
|
||||||
|
|||||||
@@ -8,8 +8,8 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: golang:1.24-bookworm
|
container: golang:1.24-bookworm
|
||||||
env:
|
env:
|
||||||
GITEA_USER: ${{ secrets.GITEA_USER }}
|
GITEA_USER: ${{ secrets.GITEAUSER }}
|
||||||
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
GITEA_TOKEN: ${{ secrets.GITEATOKEN }}
|
||||||
GITEA_REGISTRY: gitea.engen.priv.no
|
GITEA_REGISTRY: gitea.engen.priv.no
|
||||||
GITEA_ORG: klauvsteinen
|
GITEA_ORG: klauvsteinen
|
||||||
steps:
|
steps:
|
||||||
@@ -33,11 +33,29 @@ jobs:
|
|||||||
echo "TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
|
echo "TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
|
||||||
env
|
env
|
||||||
- name: Docker login
|
- name: Docker login
|
||||||
run: |
|
run: echo "${GITEA_TOKEN}" | docker login "${GITEA_REGISTRY}" --username "${GITEA_USER}" --password-stdin
|
||||||
run: echo "${GITEA_TOKEN}" | docker login "${GITEA_REGISTRY}" --username "${GITEA_USER}" --password-stdin
|
|
||||||
ocker login
|
|
||||||
- name: Build
|
- name: Build
|
||||||
env:
|
|
||||||
KO_DOCKER_REPO: "{$GITEA_REGISTRY}/${GITEA_ORG}/unifi-network-operator-controller
|
|
||||||
run: |
|
run: |
|
||||||
ko publish ./cmd --tags "$TAG,latest" --bare
|
export KO_DOCKER_REPO="${GITEA_REGISTRY}/${GITEA_ORG}/unifi-network-operator-controller"
|
||||||
|
ko publish ./cmd \
|
||||||
|
--tags "$TAG,latest" \
|
||||||
|
--image-label 'org.opencontainers.image.authors=Klauvsteinen <vegard@engen.priv.no>' \
|
||||||
|
--image-label 'org.opencontainers.image.vendor=Klauvsteinen' \
|
||||||
|
--image-label 'org.opencontainers.image.source=https://gitea.engen.priv.no/klauvsteinen/unifi-network-operator' \
|
||||||
|
--image-label 'org.opencontainers.image.url=https://gitea.engen.priv.no/klauvsteinen/unifi-network-operator' \
|
||||||
|
--image-label 'dev.chainguard.package.main=' \
|
||||||
|
--bare
|
||||||
|
- name: Build manifest
|
||||||
|
run: |
|
||||||
|
make build-installer
|
||||||
|
curl -X PUT \
|
||||||
|
-H "Authorization: token $GITEA_TOKEN" \
|
||||||
|
-H "Content-Type: application/x-yaml" \
|
||||||
|
--data-binary @./dist/install.yaml \
|
||||||
|
https://gitea.engen.priv.no/api/packages/klauvsteinen/generic/unifi-network-operator/latest/install.yaml
|
||||||
|
curl -X PUT \
|
||||||
|
-H "Authorization: token $GITEA_TOKEN" \
|
||||||
|
-H "Content-Type: application/x-yaml" \
|
||||||
|
--data-binary @./dist/install.yaml \
|
||||||
|
https://gitea.engen.priv.no/api/packages/klauvsteinen/generic/unifi-network-operator/$TAG/install.yaml
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
# Image URL to use all building/pushing image targets
|
# Image URL to use all building/pushing image targets
|
||||||
IMG ?= registry.engen.priv.no/unifi-network-operator-controller:latest
|
IMG ?= gitea.engen.priv.no/klauvsteinen/unifi-network-operator-controller:latest
|
||||||
|
|
||||||
# Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set)
|
# Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set)
|
||||||
ifeq (,$(shell go env GOBIN))
|
ifeq (,$(shell go env GOBIN))
|
||||||
@@ -8,7 +8,7 @@ else
|
|||||||
GOBIN=$(shell go env GOBIN)
|
GOBIN=$(shell go env GOBIN)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
export KO_DOCKER_REPO=registry.engen.priv.no/unifi-network-operator-controller
|
export KO_DOCKER_REPO=gitea.engen.priv.no/klauvsteinen/unifi-network-operator-controller
|
||||||
|
|
||||||
# CONTAINER_TOOL defines the container tool to be used for building images.
|
# CONTAINER_TOOL defines the container tool to be used for building images.
|
||||||
# Be aware that the target commands are only tested with Docker which is
|
# Be aware that the target commands are only tested with Docker which is
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ domain: engen.priv.no
|
|||||||
layout:
|
layout:
|
||||||
- go.kubebuilder.io/v4
|
- go.kubebuilder.io/v4
|
||||||
projectName: unifi-network-operator
|
projectName: unifi-network-operator
|
||||||
repo: github.com/vegardengen/unifi-network-operator
|
repo: gitea.engen.priv.no/klauvsteinen/unifi-network-operator
|
||||||
resources:
|
resources:
|
||||||
- api:
|
- api:
|
||||||
crdVersion: v1
|
crdVersion: v1
|
||||||
@@ -15,7 +15,7 @@ resources:
|
|||||||
domain: engen.priv.no
|
domain: engen.priv.no
|
||||||
group: unifi
|
group: unifi
|
||||||
kind: Networkconfiguration
|
kind: Networkconfiguration
|
||||||
path: github.com/vegardengen/unifi-network-operator/api/v1beta1
|
path: gitea.engen.priv.no/klauvsteinen/unifi-network-operator/api/v1beta1
|
||||||
version: v1beta1
|
version: v1beta1
|
||||||
- api:
|
- api:
|
||||||
crdVersion: v1
|
crdVersion: v1
|
||||||
@@ -24,7 +24,7 @@ resources:
|
|||||||
domain: engen.priv.no
|
domain: engen.priv.no
|
||||||
group: unifi
|
group: unifi
|
||||||
kind: FirewallZone
|
kind: FirewallZone
|
||||||
path: github.com/vegardengen/unifi-network-operator/api/v1beta1
|
path: gitea.engen.priv.no/klauvsteinen/unifi-network-operator/api/v1beta1
|
||||||
version: v1beta1
|
version: v1beta1
|
||||||
- api:
|
- api:
|
||||||
crdVersion: v1
|
crdVersion: v1
|
||||||
@@ -33,7 +33,7 @@ resources:
|
|||||||
domain: engen.priv.no
|
domain: engen.priv.no
|
||||||
group: unifi
|
group: unifi
|
||||||
kind: FirewallPolicy
|
kind: FirewallPolicy
|
||||||
path: github.com/vegardengen/unifi-network-operator/api/v1beta1
|
path: gitea.engen.priv.no/klauvsteinen/unifi-network-operator/api/v1beta1
|
||||||
version: v1beta1
|
version: v1beta1
|
||||||
- api:
|
- api:
|
||||||
crdVersion: v1
|
crdVersion: v1
|
||||||
@@ -42,6 +42,6 @@ resources:
|
|||||||
domain: engen.priv.no
|
domain: engen.priv.no
|
||||||
group: unifi
|
group: unifi
|
||||||
kind: PortForward
|
kind: PortForward
|
||||||
path: github.com/vegardengen/unifi-network-operator/api/v1beta1
|
path: gitea.engen.priv.no/klauvsteinen/unifi-network-operator/api/v1beta1
|
||||||
version: v1beta1
|
version: v1beta1
|
||||||
version: "3"
|
version: "3"
|
||||||
|
|||||||
@@ -4,5 +4,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1
|
|||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
images:
|
images:
|
||||||
- name: controller
|
- name: controller
|
||||||
newName: registry.engen.priv.no/unifi-network-operator-controller
|
newName: gitea.engen.priv.no/klauvsteinen/unifi-network-operator-controller
|
||||||
newTag: latest
|
newTag: latest
|
||||||
|
|||||||
Vendored
+1
-1
@@ -915,7 +915,7 @@ spec:
|
|||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
key: UNIFI_PASSWORD
|
key: UNIFI_PASSWORD
|
||||||
name: unifi-configuration
|
name: unifi-configuration
|
||||||
image: registry.engen.priv.no/unifi-network-operator-controller:latest
|
image: gitea.engen.priv.no/klauvsteinen/unifi-network-operator-controller:latest
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
path: /healthz
|
path: /healthz
|
||||||
|
|||||||
@@ -0,0 +1,7 @@
|
|||||||
|
defaultBaseImage: cgr.dev/chainguard/static:latest
|
||||||
|
|
||||||
|
labels:
|
||||||
|
org.opencontainers.image.authors: Vegard Engen <vegard@engen.priv.no>
|
||||||
|
org.opencontainers.image.source: https://gitea.engen.priv.no/klauvsteinen/unifi-network-operator
|
||||||
|
org.opencontainers.image.vendor: Klauvsteinen
|
||||||
|
dev.chainguard.package.main: ""
|
||||||
Reference in New Issue
Block a user