Skip to content

Conversation

@smarterclayton
Copy link
Contributor

Improve deployment config get and describe, add test cases around
the flows.

@bparees @Kargakis follow up from test deployments

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How does one indicate, on a test DC, what post-test tagging to perform?

and, given that, does it make sense to allow someone to specify that tag when they invoke new-app?
$ oc new-app myappIST --as-test --push-tag myProdAppIST

or some such syntax? Since that's the 90% use case for this (stitching together a pipeline)?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It might make sense - it's one more set of arguments. In our hypothesized split, it definitely belongs on oc deploy / oc run

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, here's my straw man:

oc set deployment-hook --pre --image --env -- COMMAND
oc set build-hook --post-commit --shell ...
oc deploy --and-tag=...

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so you're proposing you cannot set it as part of invoking new-app itself? Given the primary use case for creating a test deployment is so it can tag an image when it passes, it seems like i should be able to do that in a single command.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not proposing that, just saying I haven't sorted it out yet and would like to see what the actual "set hooks" command looks like before we do the simpler thing.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i guess i'm ok w/ that strawman.

Improve deployment config get and describe, add test cases around
the flows.
@smarterclayton
Copy link
Contributor Author

[test]

@openshift-bot
Copy link
Contributor

Evaluated for origin test up to 880750e

@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/793/)

routeColumns = []string{"NAME", "HOST/PORT", "PATH", "SERVICE", "LABELS", "INSECURE POLICY", "TLS TERMINATION"}
deploymentColumns = []string{"NAME", "STATUS", "CAUSE"}
deploymentConfigColumns = []string{"NAME", "TRIGGERS", "LATEST"}
deploymentConfigColumns = []string{"NAME", "REVISION", "REPLICAS", "TRIGGERED BY"}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like these more, sup

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also not showing replicas so far has been really disturbing. We need though to show current alongside desired, showing only desired is misleading. We also need to make use of -o wide and put images, containers, and the selector under it. Preparing a pull for that.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we have current on status now?

On Wed, Feb 3, 2016 at 8:00 PM, Michail Kargakis notifications@github.com
wrote:

In pkg/cmd/cli/describe/printer.go
#7010 (comment):

@@ -36,7 +36,7 @@ var (
projectColumns = []string{"NAME", "DISPLAY NAME", "STATUS"}
routeColumns = []string{"NAME", "HOST/PORT", "PATH", "SERVICE", "LABELS", "INSECURE POLICY", "TLS TERMINATION"}
deploymentColumns = []string{"NAME", "STATUS", "CAUSE"}

  • deploymentConfigColumns = []string{"NAME", "TRIGGERS", "LATEST"}
  • deploymentConfigColumns = []string{"NAME", "REVISION", "REPLICAS", "TRIGGERED BY"}

Also not showing replicas so far has been really disturbing. We need
though to show current alongside desired, showing only desired is
misleading. We also need to make use of -o wide and put images, containers,
and the selector under it. Preparing a pull for that.


Reply to this email directly or view it on GitHub
https://github.com/openshift/origin/pull/7010/files#r51814973.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately no, it's #6233

@smarterclayton
Copy link
Contributor Author

Any other comments??? :)

@bparees
Copy link
Contributor

bparees commented Feb 4, 2016

@smarterclayton I didn't have anything else. just the "what args should new-app accept" discussion.

@0xmichalis
Copy link
Contributor

Unrelated to this PR, but what's the plan for oc deploy apart from legacy functionality?

@smarterclayton
Copy link
Contributor Author

Replace with "rollout", repurpose it to be the "micro service deployment
flow" (or simply deprecate it and use "run")

On Thu, Feb 4, 2016 at 10:27 AM, Michail Kargakis notifications@github.com
wrote:

Unrelated to this PR, but what's the plan for oc deploy apart from legacy
functionality?


Reply to this email directly or view it on GitHub
#7010 (comment).

@smarterclayton
Copy link
Contributor Author

I'm going to assume that was LGTM and thus [merge]

@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/793/) (Image: devenv-rhel7_3332)

@openshift-bot
Copy link
Contributor

Evaluated for origin merge up to 880750e

@0xmichalis
Copy link
Contributor

yes, this LGTM

openshift-bot pushed a commit that referenced this pull request Feb 4, 2016
@openshift-bot openshift-bot merged commit d24fec4 into openshift:master Feb 4, 2016
@0xmichalis
Copy link
Contributor

that was fast

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants