Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
85a62d24f4
|
|||
6ffe638db1
|
|||
3f20c6a9d6
|
@@ -42,8 +42,8 @@ jobs:
|
||||
file: ./Dockerfile
|
||||
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 }}
|
||||
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 }}
|
@@ -39,8 +39,8 @@ jobs:
|
||||
file: ./Dockerfile
|
||||
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 }}
|
||||
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 }}
|
@@ -1,4 +1,4 @@
|
||||
FROM golang:1.24 as build
|
||||
FROM golang:1.24 AS build
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
|
@@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user