Skip to content
This repository has been archived by the owner on May 6, 2022. It is now read-only.

Endpoints kind not registered in the schema #1628

Closed
ash2k opened this issue Dec 18, 2017 · 3 comments
Closed

Endpoints kind not registered in the schema #1628

ash2k opened this issue Dec 18, 2017 · 3 comments

Comments

@ash2k
Copy link
Contributor

ash2k commented Dec 18, 2017

Found this in controller-manager logs:

E1215 09:25:55.121886       1 event.go:260] Could not construct reference to:
'&v1.Endpoints{TypeMeta:v1.TypeMeta{Kind:"", APIVersion:""}, ObjectMeta:v1.ObjectMeta{Name:"service-catalog-controller-manager", GenerateName:"", Namespace:"service-catalog", SelfLink:"/api/v1/namespaces/service-catalog/endpoints/service-catalog-controller-manager", UID:"e31348c3-d303-11e7-8316-06ee2612ca84", ResourceVersion:"13123257", Generation:0, CreationTimestamp:v1.Time{Time:time.Time{wall:0x0, ext:63647336730, loc:(*time.Location)(0x25ae700)}}, DeletionTimestamp:(*v1.Time)(nil), DeletionGracePeriodSeconds:(*int64)(nil), Labels:map[string]string(nil), Annotations:map[string]string{"control-plane.alpha.kubernetes.io/leader":"{\"holderIdentity\":\"service-catalog-controller-manager-7d4bd8bd6-l5wj7-external-service-catalog-controller\",\"leaseDurationSeconds\":15,\"acquireTime\":\"2017-12-15T09:25:55Z\",\"renewTime\":\"2017-12-15T09:25:55Z\",\"leaderTransitions\":6}"}, OwnerReferences:[]v1.OwnerReference(nil), Initializers:(*v1.Initializers)(nil), Finalizers:[]string(nil), ClusterName:""}, Subsets:[]v1.EndpointSubset(nil)}'
due to: 'no kind is registered for the type v1.Endpoints'. Will not report event: 'Normal' 'LeaderElection' 'service-catalog-controller-manager-7d4bd8bd6-l5wj7-external-service-catalog-controller became leader'
I1215 09:25:55.122011       1 leaderelection.go:184] successfully acquired leaseservice-catalog/service-catalog-controller-manager

Service Catalog 0.1.3

@ash2k
Copy link
Contributor Author

ash2k commented Apr 24, 2018

Still happening with v0.1.15.

@jboyd01
Copy link
Contributor

jboyd01 commented Apr 24, 2018

We have it reported in production deployments that are using ConfigMaps:

E0424 19:38:27.199679       1 event.go:260] Could not construct reference to: 
'&v1.ConfigMap{TypeMeta:v1.TypeMeta{Kind:"", APIVersion:""}, 
ObjectMeta:v1.ObjectMeta{Name:"service-catalog-controller-manager", 
GenerateName:"", Namespace:"catalog", SelfLink:"/api/v1/namespaces/catalog/configmaps/service-
catalog-controller-manager", UID:"412c6bf4-47f1-11e8-a501-c85b76aab8ec", ResourceVersion:"5519",
 Generation:0, CreationTimestamp:v1.Time{Time:time.Time{wall:0x0, ext:63660193014, loc:
(*time.Location)(0x34bc6c0)}}, DeletionTimestamp:(*v1.Time)(nil), DeletionGracePeriodSeconds:(*int64)
(nil), Labels:map[string]string(nil), Annotations:map[string]string{"control-
plane.alpha.kubernetes.io/leader":"{\"holderIdentity\":\"catalog-catalog-controller-manager-dc5f5844b-
9krhj-external-service-catalog-controller\",\"leaseDurationSeconds\":15,\"acquireTime\":\"2018-04-
24T19:38:22Z\",\"renewTime\":\"2018-04-24T19:38:26Z\",\"leaderTransitions\":1}"}, OwnerReferences:
[]v1.OwnerReference(nil), Initializers:(*v1.Initializers)(nil), Finalizers:[]string(nil), ClusterName:""}, 
Data:map[string]string(nil), BinaryData:map[string][]uint8(nil)}' due to: 'no kind is registered for the type 
v1.ConfigMap'. Will not report event: 'Normal' 'LeaderElection' 'catalog-catalog-controller-manager-
dc5f5844b-9krhj-external-service-catalog-controller became leader'

and additionally the ConfigMap doesn't show leadership election events.

@ash2k
Copy link
Contributor Author

ash2k commented Apr 24, 2018

I'll send a PR, it's a trivial fix (should be).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants