|
@@ -865,10 +865,15 @@ func (t *DeploymentHook) PostApply(populatedData map[string]interface{}) error {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
for _, res := range t.resourceGroup.Resources {
|
|
for _, res := range t.resourceGroup.Resources {
|
|
|
- req.SuccessfulResources = append(req.SuccessfulResources, &types.SuccessfullyDeployedResource{
|
|
|
|
|
- ReleaseName: getReleaseName(res),
|
|
|
|
|
- ReleaseType: getReleaseType(res),
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ releaseType := getReleaseType(res)
|
|
|
|
|
+ releaseName := getReleaseName(res)
|
|
|
|
|
+
|
|
|
|
|
+ if releaseType != "" && releaseName != "" {
|
|
|
|
|
+ req.SuccessfulResources = append(req.SuccessfulResources, &types.SuccessfullyDeployedResource{
|
|
|
|
|
+ ReleaseName: releaseName,
|
|
|
|
|
+ ReleaseType: releaseType,
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// finalize the deployment
|
|
// finalize the deployment
|
|
@@ -1056,5 +1061,9 @@ func getReleaseType(res *switchboardTypes.Resource) string {
|
|
|
// GetSource has alrealy been called and validated previously
|
|
// GetSource has alrealy been called and validated previously
|
|
|
source, _ := preview.GetSource(res.Source)
|
|
source, _ := preview.GetSource(res.Source)
|
|
|
|
|
|
|
|
- return source.Name
|
|
|
|
|
|
|
+ if source != nil && source.Name != "" {
|
|
|
|
|
+ return source.Name
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ return ""
|
|
|
}
|
|
}
|