|
|
@ -11,7 +11,6 @@ import ( |
|
|
|
"strings" |
|
|
|
"strings" |
|
|
|
"time" |
|
|
|
"time" |
|
|
|
|
|
|
|
|
|
|
|
"github.com/go-kratos/kratos/v2/registry" |
|
|
|
|
|
|
|
jsoniter "github.com/json-iterator/go" |
|
|
|
jsoniter "github.com/json-iterator/go" |
|
|
|
corev1 "k8s.io/api/core/v1" |
|
|
|
corev1 "k8s.io/api/core/v1" |
|
|
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" |
|
|
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" |
|
|
@ -21,6 +20,8 @@ import ( |
|
|
|
"k8s.io/client-go/kubernetes" |
|
|
|
"k8s.io/client-go/kubernetes" |
|
|
|
listerv1 "k8s.io/client-go/listers/core/v1" |
|
|
|
listerv1 "k8s.io/client-go/listers/core/v1" |
|
|
|
"k8s.io/client-go/tools/cache" |
|
|
|
"k8s.io/client-go/tools/cache" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
"github.com/go-kratos/kratos/v2/registry" |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
// Defines the key name of specific fields
|
|
|
|
// Defines the key name of specific fields
|
|
|
|