diff --git a/.gitea/workflows/main.yaml b/.gitea/workflows/main.yaml index 7abb084..8b7d320 100644 --- a/.gitea/workflows/main.yaml +++ b/.gitea/workflows/main.yaml @@ -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 }} \ No newline at end of file + # - name: Sign the published Docker image + # env: + # COSIGN_EXPERIMENTAL: "true" + # run: cosign sign lerentis/canada-kaktus:${{ github.sha }}@${{ steps.build-and-push.outputs.digest }} \ No newline at end of file diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index 7767a52..44c7647 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -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 }} \ No newline at end of file + # - 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 }} \ No newline at end of file diff --git a/internal/k8s.go b/internal/k8s.go index 7dd19a2..dd1e8e8 100644 --- a/internal/k8s.go +++ b/internal/k8s.go @@ -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)