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