summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRajamohan Raj <rajamohan.raj@intel.com>2020-07-09 20:51:34 +0000
committerRajamohan Raj <rajamohan.raj@intel.com>2020-07-09 20:56:08 +0000
commit8223d0671617ee6dcc68307aefd3634e1bb0ac8d (patch)
tree7c3835aa2bcaaca183722673d0c7e8fed3f7089e /src
parent9a9a6aedbd7a0dea952baad52d78cf43cd6e2ecf (diff)
Fixing the triple dash issue in YAML.
In this patch, identified the root cause of failure due to triple dash and fixed it. Also reverted back to original helm charts for M3db operator. Issue-ID: MULTICLOUD-1114 Signed-off-by: Rajamohan Raj <rajamohan.raj@intel.com> Change-Id: I175cd134cc751bf4b59e72c9c79e0e658a62f348
Diffstat (limited to 'src')
-rw-r--r--src/orchestrator/pkg/module/instantiation_appcontext_helper.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/orchestrator/pkg/module/instantiation_appcontext_helper.go b/src/orchestrator/pkg/module/instantiation_appcontext_helper.go
index e6e2bf30..1cb3f23d 100644
--- a/src/orchestrator/pkg/module/instantiation_appcontext_helper.go
+++ b/src/orchestrator/pkg/module/instantiation_appcontext_helper.go
@@ -86,6 +86,11 @@ func getResources(st []helm.KubernetesResourceTemplate) ([]resource, error) {
return nil, pkgerrors.Wrap(err, "Failed to get the resources..")
}
n := yamlStruct.Metadata.Name + SEPARATOR + yamlStruct.Kind
+ // This might happen when the rendered file just has some comments inside, no real k8s object.
+ if n == SEPARATOR {
+ log.Info(":: Ignoring, Unable to render the template ::", log.Fields{"YAML PATH": t.FilePath})
+ continue;
+ }
resources = append(resources, resource{name: n, filecontent: string(yamlFile)})