Skip to content

Commit

Permalink
handle description not present
Browse files Browse the repository at this point in the history
  • Loading branch information
tommartensen committed Nov 23, 2023
1 parent 08f9def commit 4f70ae3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion service/cluster/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,13 @@ func (s *clusterImpl) getClusterDetailsFromArtifacts(cluster *v1.Cluster, workfl
func metaClusterParametersFromWorkflow(workflow v1alpha1.Workflow) []*v1.Parameter {
parameters := []*v1.Parameter{}
for _, p := range workflow.Spec.Arguments.Parameters {
description := ""
if p.Description != nil {
description = p.Description.String()
}
parameters = append(parameters, &v1.Parameter{
Name: p.Name,
Description: p.Description.String(),
Description: description,
Value: p.GetValue(),
})
}
Expand Down

0 comments on commit 4f70ae3

Please sign in to comment.