@@ -76,12 +76,7 @@ func (d *ProjectStatusDescriber) Describe(namespace, name string) (string, error
76
76
77
77
return tabbedString (func (out * tabwriter.Writer ) error {
78
78
indent := " "
79
- if len (project .Annotations [projectapi .ProjectDisplayName ]) > 0 &&
80
- project .Annotations [projectapi .ProjectDisplayName ] != namespace {
81
- fmt .Fprintf (out , "In project %s (%s)\n " , project .Annotations [projectapi .ProjectDisplayName ], namespace )
82
- } else {
83
- fmt .Fprintf (out , "In project %s\n " , namespace )
84
- }
79
+ fmt .Fprintf (out , "In project %s\n " , projectapi .DisplayNameAndNameForProject (project ))
85
80
86
81
for _ , group := range groups {
87
82
if len (group .Builds ) != 0 {
@@ -132,7 +127,7 @@ func printLines(out io.Writer, indent string, depth int, lines ...string) {
132
127
func describeDeploymentInServiceGroup (deploy graph.DeploymentFlow ) []string {
133
128
includeLastPass := deploy .Deployment .ActiveDeployment == nil
134
129
if len (deploy .Images ) == 1 {
135
- lines := []string {fmt .Sprintf ("%s deploys %s" , deploy .Deployment .Name , describeImageInPipeline (deploy .Images [0 ], deploy .Deployment .Namespace ))}
130
+ lines := []string {fmt .Sprintf ("%s deploys %s %s " , deploy .Deployment .Name , describeImageInPipeline (deploy .Images [0 ], deploy .Deployment .Namespace ), describeDeploymentConfigTrigger ( deploy . Deployment . DeploymentConfig ))}
136
131
if len (lines [0 ]) > 120 && strings .Contains (lines [0 ], " <- " ) {
137
132
segments := strings .SplitN (lines [0 ], " <- " , 2 )
138
133
lines [0 ] = segments [0 ] + " <-"
@@ -142,7 +137,8 @@ func describeDeploymentInServiceGroup(deploy graph.DeploymentFlow) []string {
142
137
lines = append (lines , describeDeployments (deploy .Deployment , 3 )... )
143
138
return lines
144
139
}
145
- lines := []string {fmt .Sprintf ("%s deploys:" , deploy .Deployment .Name )}
140
+
141
+ lines := []string {fmt .Sprintf ("%s deploys: %s" , deploy .Deployment .Name , describeDeploymentConfigTrigger (deploy .Deployment .DeploymentConfig ))}
146
142
for _ , image := range deploy .Images {
147
143
lines = append (lines , describeImageInPipeline (image , deploy .Deployment .Namespace ))
148
144
lines = append (lines , describeAdditionalBuildDetail (image .Build , includeLastPass )... )
@@ -151,6 +147,14 @@ func describeDeploymentInServiceGroup(deploy graph.DeploymentFlow) []string {
151
147
return lines
152
148
}
153
149
150
+ func describeDeploymentConfigTrigger (dc * deployapi.DeploymentConfig ) string {
151
+ if len (dc .Triggers ) == 0 {
152
+ return "(manual)"
153
+ }
154
+
155
+ return ""
156
+ }
157
+
154
158
func describeStandaloneBuildGroup (pipeline graph.ImagePipeline , namespace string ) []string {
155
159
switch {
156
160
case pipeline .Build != nil :
0 commit comments