3 Commits

Author SHA1 Message Date
85a62d24f4 fix(): DOCKERFILES NEED TO SCREAM AT PEOPLE
All checks were successful
Gitea Docker Build Demo / Build_Image (push) Successful in 1m14s
Gitea Docker Build Demo / Test (push) Successful in 1m2s
Release / Test (release) Successful in 1m2s
Release / Build_Image (release) Successful in 1m21s
2025-10-07 08:39:37 +02:00
6ffe638db1 fix(): k8s client call and drop cosign for now
All checks were successful
Gitea Docker Build Demo / Test (push) Successful in 1m6s
Gitea Docker Build Demo / Build_Image (push) Successful in 1m16s
2025-10-07 08:36:21 +02:00
3f20c6a9d6 fix(ci): use variable reference
Some checks failed
Gitea Docker Build Demo / Test (push) Successful in 2m25s
Gitea Docker Build Demo / Build_Image (push) Failing after 2m34s
Release / Test (release) Successful in 2m24s
Release / Build_Image (release) Failing after 7m37s
2025-10-06 11:27:25 +02:00
4 changed files with 18 additions and 11 deletions

View File

@@ -42,8 +42,8 @@ jobs:
file: ./Dockerfile file: ./Dockerfile
push: false push: false
tags: | tags: |
lerentis/canada-kaktus:{{ github.sha }} lerentis/canada-kaktus:${{ github.sha }}
- name: Sign the published Docker image # - name: Sign the published Docker image
env: # env:
COSIGN_EXPERIMENTAL: "true" # COSIGN_EXPERIMENTAL: "true"
run: cosign sign lerentis/canada-kaktus:${{ github.sha }}@${{ steps.build-and-push.outputs.digest }} # run: cosign sign lerentis/canada-kaktus:${{ github.sha }}@${{ steps.build-and-push.outputs.digest }}

View File

@@ -39,8 +39,8 @@ jobs:
file: ./Dockerfile file: ./Dockerfile
push: true push: true
tags: | tags: |
lerentis/canada-kaktus:{{ github.event.release.tag_name }} lerentis/canada-kaktus:${{ github.event.release.tag_name }}
- name: Sign the published Docker image # - name: Sign the published Docker image
env: # env:
COSIGN_EXPERIMENTAL: "true" # COSIGN_EXPERIMENTAL: "true"
run: cosign sign lerentis/canada-kaktus:${{ github.event.release.tag_name }}@${{ steps.build-and-push.outputs.digest }} # run: cosign sign lerentis/canada-kaktus:${{ github.event.release.tag_name }}@${{ steps.build-and-push.outputs.digest }}

View File

@@ -1,4 +1,4 @@
FROM golang:1.24 as build FROM golang:1.24 AS build
WORKDIR /app WORKDIR /app

View File

@@ -6,10 +6,16 @@ import (
"fmt" "fmt"
"html/template" "html/template"
"k8s.io/apimachinery/pkg/runtime/schema"
"k8s.io/client-go/kubernetes/scheme" "k8s.io/client-go/kubernetes/scheme"
"k8s.io/client-go/rest" "k8s.io/client-go/rest"
) )
var CILIUM_GROUP_VERSION = schema.GroupVersion{
Group: "cilium.io",
Version: "v2alpha1",
}
var IP_POOL_TEMPLATE = ` var IP_POOL_TEMPLATE = `
{ {
"apiVersion": "cilium.io/v2alpha1", "apiVersion": "cilium.io/v2alpha1",
@@ -83,6 +89,7 @@ func createRestClient() (*rest.RESTClient, error) {
k8s_config.APIPath = "/apis" k8s_config.APIPath = "/apis"
k8s_config.NegotiatedSerializer = scheme.Codecs.WithoutConversion() k8s_config.NegotiatedSerializer = scheme.Codecs.WithoutConversion()
k8s_config.GroupVersion = &CILIUM_GROUP_VERSION
routeclient, err := rest.RESTClientFor(k8s_config) routeclient, err := rest.RESTClientFor(k8s_config)