Skip to content

Commit 41b7c88

Browse files
committed
Revert "UPSTREAM: allow any flag type to accept optional arguments"
This reverts commit 998c20d.
1 parent 28eafff commit 41b7c88

File tree

3 files changed

+14
-62
lines changed

3 files changed

+14
-62
lines changed

Godeps/_workspace/src/github.com/spf13/pflag/bool.go

Lines changed: 6 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Godeps/_workspace/src/github.com/spf13/pflag/flag.go

Lines changed: 4 additions & 50 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/cmd/cli/describe/describer_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ func TestDeploymentConfigDescriber(t *testing.T) {
7777
deployment, _ := deployutil.MakeDeployment(config, kapi.Codec)
7878
podList := &kapi.PodList{}
7979
eventList := &kapi.EventList{}
80+
deploymentList := &kapi.ReplicationControllerList{}
8081

8182
d := &DeploymentConfigDescriber{
8283
client: &genericDeploymentDescriberClient{
@@ -86,6 +87,9 @@ func TestDeploymentConfigDescriber(t *testing.T) {
8687
getDeploymentFunc: func(namespace, name string) (*kapi.ReplicationController, error) {
8788
return deployment, nil
8889
},
90+
listDeploymentsFunc: func(namespace string, selector labels.Selector) (*kapi.ReplicationControllerList, error) {
91+
return deploymentList, nil
92+
},
8993
listPodsFunc: func(namespace string, selector labels.Selector) (*kapi.PodList, error) {
9094
return podList, nil
9195
},

0 commit comments

Comments
 (0)