Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[POST-REBASE] UPSTREAM:45918: fix --local flag for oc set subcommands #14211

Conversation

juanvallejo
Copy link
Contributor

@juanvallejo juanvallejo commented May 16, 2017

Fixes #14180
Fixes --local flag for oc set ... subcommands.
Addresses #14123 (comment)

kubernetes/kubernetes#45918

Before (With no connection to a cluster)

$ oc set env --local -f ./mydc.json ENV="deploymentconfig"

error: dial tcp 127.0.0.1:8443: getsockopt: connection refused

After (With no connection to a cluster)

NAME      REVISION   DESIRED   CURRENT   TRIGGERED BY
mydc   1          1         1         config,image(mydc:latest)
Affected oc commands

cc @openshift/cli-review @smarterclayton

@juanvallejo juanvallejo changed the title [WIP] fix --local for env,probe cmds [WIP] fix --local flag for oc set subcommands May 16, 2017
@juanvallejo
Copy link
Contributor Author

[test]

@juanvallejo juanvallejo force-pushed the jvallejo/fix-local-flag-set-cmds branch 2 times, most recently from 0506034 to 7b2ca82 Compare May 16, 2017 18:48
@juanvallejo juanvallejo changed the title [WIP] fix --local flag for oc set subcommands [WIP] UPSTREAM:0000: fix --local flag for oc set subcommands May 16, 2017
@juanvallejo juanvallejo force-pushed the jvallejo/fix-local-flag-set-cmds branch 2 times, most recently from 08cad74 to d1771ba Compare May 16, 2017 20:30
@juanvallejo juanvallejo changed the title [WIP] UPSTREAM:0000: fix --local flag for oc set subcommands UPSTREAM:45918: fix --local flag for oc set subcommands May 16, 2017
@juanvallejo juanvallejo force-pushed the jvallejo/fix-local-flag-set-cmds branch 2 times, most recently from 12df03f to 283bb95 Compare June 16, 2017 18:42
@juanvallejo
Copy link
Contributor Author

[test]

@csrwng
Copy link
Contributor

csrwng commented Jun 16, 2017

LGTM

@juanvallejo juanvallejo force-pushed the jvallejo/fix-local-flag-set-cmds branch 2 times, most recently from f67ef22 to 225947c Compare June 20, 2017 16:34
@juanvallejo
Copy link
Contributor Author

flaked on #13271 re[test]

1 similar comment
@juanvallejo
Copy link
Contributor Author

flaked on #13271 re[test]

@juanvallejo juanvallejo force-pushed the jvallejo/fix-local-flag-set-cmds branch from 225947c to 332d67f Compare June 21, 2017 19:59
@juanvallejo
Copy link
Contributor Author

cc @fabianofranz

@fabianofranz
Copy link
Member

LGTM, @liggitt you ok with picking this UPSTREAM commit?

@liggitt
Copy link
Contributor

liggitt commented Jul 10, 2017

if the flake is fixed, can the bigger change wait for the 1.7 rebase?

Adds `allowRemoteCalls` bool arg to f.NewBuilder that returns a
"DisabledClientForMapping" when bool arg is false, allowing a common
method to be used in local and non-local commands.
@juanvallejo juanvallejo force-pushed the jvallejo/fix-local-flag-set-cmds branch from 332d67f to d179a5e Compare July 10, 2017 16:53
@juanvallejo
Copy link
Contributor Author

@liggitt sure, will tag post-rebase

@openshift-bot
Copy link
Contributor

Evaluated for origin test up to d179a5e

@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_request_origin/3034/) (Base Commit: fe7173b) (PR Branch Commit: d179a5e)

@fabianofranz fabianofranz changed the title UPSTREAM:45918: fix --local flag for oc set subcommands [POST-REBASE] UPSTREAM:45918: fix --local flag for oc set subcommands Jul 10, 2017
@openshift-bot
Copy link
Contributor

Origin Action Required: Pull request cannot be automatically merged, please rebase your branch from latest HEAD and push again

@openshift-bot openshift-bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jul 17, 2017
@openshift-merge-robot openshift-merge-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Jul 24, 2017
@openshift-merge-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: juanvallejo
We suggest the following additional approver: liggitt

Assign the PR to them by writing /assign @liggitt in a comment when ready.

No associated issue. Update pull-request body to add a reference to an issue, or get approval with /approve no-issue

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these OWNERS Files:

You can indicate your approval by writing /approve in a comment
You can cancel your approval by writing /approve cancel in a comment

@openshift-merge-robot openshift-merge-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 28, 2017
@openshift-merge-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: juanvallejo
We suggest the following additional approver: liggitt

Assign the PR to them by writing /assign @liggitt in a comment when ready.

No associated issue. Update pull-request body to add a reference to an issue, or get approval with /approve no-issue

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these OWNERS Files:

You can indicate your approval by writing /approve in a comment
You can cancel your approval by writing /approve cancel in a comment

@openshift-merge-robot openshift-merge-robot removed the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 28, 2017
@openshift-merge-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: juanvallejo
We suggest the following additional approver: liggitt

Assign the PR to them by writing /assign @liggitt in a comment when ready.

No associated issue. Update pull-request body to add a reference to an issue, or get approval with /approve no-issue

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these OWNERS Files:

You can indicate your approval by writing /approve in a comment
You can cancel your approval by writing /approve cancel in a comment

@openshift-merge-robot openshift-merge-robot added the vendor-update Touching vendor dir or related files label Oct 14, 2017
@openshift-bot
Copy link
Contributor

Issues go stale after 90d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle stale

@openshift-ci-robot openshift-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Feb 16, 2018
@juanvallejo
Copy link
Contributor Author

/close
Origin already has these changes through a rebase.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/cli kind/post-rebase lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. vendor-update Touching vendor dir or related files
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants