Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not construct reference to Endpoints #349

Open
ekmobile opened this issue Aug 9, 2023 · 1 comment
Open

Could not construct reference to Endpoints #349

ekmobile opened this issue Aug 9, 2023 · 1 comment

Comments

@ekmobile
Copy link

ekmobile commented Aug 9, 2023

I'm using Kubernetes 1.27.2 on Docker Desktop for macOS. I reset the Kubernetes Cluster before running any command.

After running

$ kubectl apply -f https://github.com/nats-io/nats-operator/releases/latest/download/00-prereqs.yaml
$ kubectl apply -f https://github.com/nats-io/nats-operator/releases/latest/download/10-deployment.yaml

as described at https://github.com/nats-io/nats-operator I get the following error:

time="2023-08-09T08:37:02Z" level=info msg="nats-operator Version: 0.8.2"
time="2023-08-09T08:37:02Z" level=info msg="Git SHA: 4f36153"
time="2023-08-09T08:37:02Z" level=info msg="Go Version: go1.15.6"
time="2023-08-09T08:37:02Z" level=info msg="Go OS/Arch: linux/amd64"
time="2023-08-09T08:37:02Z" level=info msg="nats-operator is operating at the namespace scope in the \"default\" namespace"
E0809 08:37:02.575012       1 event.go:296] Could not construct reference to: '&v1.Endpoints{TypeMeta:v1.TypeMeta{Kind:"", APIVersion:""}, ObjectMeta:v1.ObjectMeta{Name:"nats-operator", GenerateName:"", Namespace:"default", SelfLink:"", UID:"e1bcb3da-edbd-441b-99da-190d9814e162", ResourceVersion:"700", Generation:0, CreationTimestamp:v1.Time{Time:time.Time{wall:0x0, ext:63827166999, loc:(*time.Location)(0x1dec6c0)}}, DeletionTimestamp:(*v1.Time)(nil), DeletionGracePeriodSeconds:(*int64)(nil), Labels:map[string]string(nil), Annotations:map[string]string{"control-plane.alpha.kubernetes.io/leader":"{\"holderIdentity\":\"nats-operator-84d9d958b9-fr467\",\"leaseDurationSeconds\":15,\"acquireTime\":\"2023-08-09T08:36:39Z\",\"renewTime\":\"2023-08-09T08:37:02Z\",\"leaderTransitions\":0}"}, OwnerReferences:[]v1.OwnerReference(nil), Initializers:(*v1.Initializers)(nil), Finalizers:[]string(nil), ClusterName:"", ManagedFields:[]v1.ManagedFieldsEntry{v1.ManagedFieldsEntry{Manager:"nats-operator", Operation:"Update", APIVersion:"v1", Time:(*v1.Time)(0xc0003d5d00), Fields:(*v1.Fields)(nil)}}}, Subsets:[]v1.EndpointSubset(nil)}' due to: 'selfLink was empty, can't make reference'. Will not report event: 'Normal' 'LeaderElection' 'nats-operator-84d9d958b9-fr467 became leader'
time="2023-08-09T08:37:02Z" level=fatal msg="unexpected error while running the main control loop: the server could not find the requested resource"

Thanks for you help.

@ekmobile ekmobile changed the title Could not construct reference to: &v1.Endpoints{...} Could not construct reference to Endpoints Aug 9, 2023
@ekmobile
Copy link
Author

Same result with Minikube v1.31.1, Darwin 13.4.1, Kubernetes 1.27.3

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

No branches or pull requests

1 participant