app/models/manageiq/providers/kubernetes/inventory/collector/container_manager/watch_notice.rb
# Endpoints and services come from two different watches but are
# merged into one model in manageiq.  This means we have to watch
# for updates to both entity kinds and if we receive an update
# we have to get the current state of the other one.
#
# If we get an endpoint notice we have to get the service with
# the same name and namespace, and vice versa
Endpoints and services come from two different watches but are
merged into one model in manageiq.  This means we have to watch
for updates to both entity kinds and if we receive an update
we have to get the current state of the other one.

If we get an endpoint notice we have to get the service with
the same name and namespace, and vice versa
Endpoints and services come from two different watches but are merged into one model in manageiq . This means we have to watch for updates to both entity kinds and if we receive an update we have to get the current state of the other one . If we get an endpoint notice we have to get the service with the same name and namespace and vice versa
def endpoints
    unless @endpoints_collected
      @endpoints += get_missing("endpoints")
      @endpoints_collected = true
    end
    @endpoints
  end
def endpoints unless @endpoints_collected @endpoints += get_missing ( "endpoints" ) @endpoints_collected = true end @endpoints end
Endpoints and services come from two different watches but are
merged into one model in manageiq.
Endpoints and services come from two different watches but are merged into one model in manageiq .