mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 22:46:12 +00:00
Fixed FakeKubeClient in kubecfg_test
This commit is contained in:
parent
a3476fcbca
commit
19ddfe72df
@ -65,6 +65,11 @@ func (client *FakeKubeClient) UpdatePod(pod api.Pod) (api.Pod, error) {
|
||||
return api.Pod{}, nil
|
||||
}
|
||||
|
||||
func (client *FakeKubeClient) ListReplicationControllers(selector labels.Selector) (api.ReplicationControllerList, error) {
|
||||
client.actions = append(client.actions, Action{action: "list-controllers"})
|
||||
return api.ReplicationControllerList{}, nil
|
||||
}
|
||||
|
||||
func (client *FakeKubeClient) GetReplicationController(name string) (api.ReplicationController, error) {
|
||||
client.actions = append(client.actions, Action{action: "get-controller", value: name})
|
||||
return client.ctrl, nil
|
||||
|
Loading…
Reference in New Issue
Block a user