From 8223d0671617ee6dcc68307aefd3634e1bb0ac8d Mon Sep 17 00:00:00 2001 From: Rajamohan Raj Date: Thu, 9 Jul 2020 20:51:34 +0000 Subject: 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 Change-Id: I175cd134cc751bf4b59e72c9c79e0e658a62f348 --- src/orchestrator/pkg/module/instantiation_appcontext_helper.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/orchestrator/pkg/module/instantiation_appcontext_helper.go') 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)}) -- cgit 1.2.3-korg