Skip to content

Commit 2ad5b6f

Browse files
stephenfinpierreprinetti
authored andcommitted
cluster-api: Log if no manifests found
These are supposedly optional (though I'm not sure how things could work without them). In any case, display a breadcrumb if they're not found. Signed-off-by: Stephen Finucane <[email protected]>
1 parent a621ac9 commit 2ad5b6f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/clusterapi/system.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,8 @@ func (c *system) getInfrastructureController(provider *Provider, args []string,
278278
defaultManifestPath := filepath.Join(c.componentDir, fmt.Sprintf("/%s-infrastructure-components.yaml", provider.Name))
279279
if _, err := os.Stat(defaultManifestPath); err == nil {
280280
manifests = append(manifests, defaultManifestPath)
281+
} else {
282+
logrus.Infof("Failed to find manifests for provider %s at %s", provider.Name, defaultManifestPath)
281283
}
282284
return &controller{
283285
Provider: provider,

0 commit comments

Comments
 (0)