-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Clarify new-app messages #11220
Clarify new-app messages #11220
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one small change ... we should let go fmt handle the quotes.
if len(meta.Namespace) == 0 || namespace == meta.Namespace { | ||
return meta.Name | ||
if len(meta.Namespace) == 0 { | ||
return fmt.Sprintf(`"%s"`, meta.Name) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just return the string without the quotes
} | ||
return fmt.Sprintf("%q in project %q", meta.Name, meta.Namespace) | ||
return fmt.Sprintf(`"%s/%s"`, meta.Namespace, meta.Name) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
} else { | ||
fmt.Fprintf(out, "--> Deploying template %s\n", qualifiedName) | ||
fmt.Fprintf(out, "--> Deploying template %s to project %s\n", qualifiedName, baseNamespace) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
@@ -50,9 +50,9 @@ func TransformTemplate(tpl *templateapi.Template, client client.TemplateConfigsN | |||
func DescribeGeneratedTemplate(out io.Writer, input string, result *templateapi.Template, baseNamespace string) { | |||
qualifiedName := localOrRemoteName(result.ObjectMeta, baseNamespace) | |||
if len(input) > 0 && result.ObjectMeta.Name != input { | |||
fmt.Fprintf(out, "--> Deploying template %s for %q\n", qualifiedName, input) | |||
fmt.Fprintf(out, "--> Deploying template %s for %q to project %s\n", qualifiedName, input, baseNamespace) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
quote here:
Deploying template %q for ...
OK, done. |
thx, LGTM |
flake #8571 |
[merge] |
f111aae
to
76dd1c4
Compare
rebased and squashed |
[merge] |
Evaluated for origin test up to 76dd1c4 |
continuous-integration/openshift-jenkins/test FAILURE (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/10165/) (Base Commit: 3ed3b35) |
Evaluated for origin merge up to 76dd1c4 |
continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/10223/) (Base Commit: e3a2814) (Image: devenv-rhel7_5200) |
fixes #10462
Suggested message change to: