func (s storeReplicationControllersNamespacer) Get(name string) (*api.ReplicationController, error) { obj, exists, err := s.indexer.GetByKey(s.namespace + "/" + name) if err != nil { return nil, err } if !exists { return nil, errors.NewNotFound(api.Resource("replicationcontroller"), name) } return obj.(*api.ReplicationController), nil }
func (s storePodsNamespacer) Get(name string) (*api.Pod, error) { obj, exists, err := s.indexer.GetByKey(s.namespace + "/" + name) if err != nil { return nil, err } if !exists { return nil, errors.NewNotFound(api.Resource("pod"), name) } return obj.(*api.Pod), nil }