Skip to content
This repository was archived by the owner on Apr 10, 2025. It is now read-only.
This repository was archived by the owner on Apr 10, 2025. It is now read-only.

Could not construct reference to Endpoints #349

@ekmobile

Description

@ekmobile

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions