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

This commit is contained in:
2025-10-07 08:36:21 +02:00
parent 3f20c6a9d6
commit 6ffe638db1
3 changed files with 15 additions and 8 deletions

View File

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

View File

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

View File

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