fix(): k8s client call and drop cosign for now
This commit is contained in:
		| @@ -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 }} | ||||
| @@ -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 }} | ||||
| @@ -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