Client-go: Cannot use 'clientSet.CoreV1().RESTClient()' (type rest.Interface) as type Getter Type does not implement 'Getter' as some methods are missing: Get() *restclient.Request

Created on 22 Jan 2019  路  2Comments  路  Source: kubernetes/client-go

I want to watch deployments add or delete
but I use cache.NewListWatchFromClient find something wrong

watchlist := cache.NewListWatchFromClient(
        clientSet.CoreV1().RESTClient(),
        "deployments",
        metav1.NamespaceAll,
        fields.Everything())

1,Cannot use 'clientSet.CoreV1().RESTClient()' (type rest.Interface) as type Getter Type does not implement 'Getter' as some methods are missing: Get() *restclient.Request
2,Cannot use 'fields.Everything()' (type "aranya/vendor/k8s.io/apimachinery/pkg/fields".Selector) as type "k8s.io/apimachinery/pkg/fields".Selector Type does not implement 'fields.Selector' as some methods are missing: DeepCopySelector() Selector,

please help me tks!

All 2 comments

I resolve it

could you tell me how to resolve this problem

Was this page helpful?
0 / 5 - 0 ratings

Related issues

antoineco picture antoineco  路  6Comments

vklonghml picture vklonghml  路  4Comments

mheese picture mheese  路  5Comments

peterwillcn picture peterwillcn  路  5Comments

prestonvanloon picture prestonvanloon  路  6Comments