Skip to content

Commit

Permalink
Merge pull request #255 from itdove/error_msg
Browse files Browse the repository at this point in the history
Change message when cd can not be found from cc
  • Loading branch information
itdove committed Aug 23, 2022
2 parents 574d716 + a074513 commit 51e220c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Expand Up @@ -7,6 +7,8 @@
## Bug fixes

- Change pipe to ModeCharDevice test.
- [Change cm to retrieve credentials (if available) regardless of cluster status #253](https://github.com/stolostron/cm-cli/issues/253)
- Change error message
## Internal changes

- Use [applier](github.com/stolostron/applier) instead of clusteradm package to apply resources
2 changes: 1 addition & 1 deletion pkg/clusterpoolhost/clusterdeployment.go
Expand Up @@ -22,7 +22,7 @@ func (cph *ClusterPoolHost) GetClusterDeployment(cc *hivev1.ClusterClaim) (*hive
return nil, err
}
if len(cc.Spec.Namespace) == 0 {
return nil, fmt.Errorf("something wrong happened, the clusterclaim %s doesn't have a spec.namespace set", cc.Name)
return nil, fmt.Errorf("the clusterclaim %s doesn't have a spec.namespace set yet and so the clusterdeployment can not be found", cc.Name)
}
cdu, err := dynamicClient.
Resource(helpers.GvrCD).
Expand Down

0 comments on commit 51e220c

Please sign in to comment.