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

Add --local & --dry-run flags to oc set sub-commands #14123

Commits on May 10, 2017

  1. fix local resource output oc set

    some `oc set ...` sub-commands do not implement `--dry-run` or `--local`
    options. This patch adds these missing options to all sub-commands and
    ensures that backwards compatibility remains for commands that treat the
    --output option as a ``dry-run flag.
    
    ```
    $ oc set image dc dctest dctest-1=default/testimage:latest --dry-run
    NAME      REVISION   DESIRED   CURRENT   TRIGGERED BY
    dctest    1          1         1         config
    
    $ oc set image dc dctest dctest-1=default/testimage:latest -o name
    deploymentconfig/dctest
    
    $ oc set build-secret mysecret --push --all -o
    custom-columns=NAME:.metadata.name
    NAME
    gitauthtest
    repo-base
    
    $ oc set build-secret mysecret --push --all --dry-run
    NAME          TYPE      FROM      LATEST
    gitauthtest   Source    Git       1
    NAME        TYPE      FROM      LATEST
    repo-base   Docker    Git       8
    ```
    juanvallejo committed May 10, 2017
    Configuration menu
    Copy the full SHA
    763e6ec View commit details
    Browse the repository at this point in the history