Skip to content

Commit

Permalink
kubecost changes prevent otel collector to deploy
Browse files Browse the repository at this point in the history
kubecost uses another index file but uses the same otel-collector-config.yaml, so we need to remove
"{{ start kubecostJob }}",
            "{{ stop kubecostJob }}",
for it to deploy successfully
  • Loading branch information
freschri authored Jun 12, 2024
1 parent f02f9de commit 7ca1a85
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions lib/single-new-eks-opensource-observability-pattern/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,12 @@ export default class SingleNewEksOpenSourceobservabilityPattern {
"{{ stop enableAdotContainerLogsExporter }}",
jsonStringnew.context["adotcontainerlogs.pattern.enabled"]
);
console.log(doc);
doc = utils.changeTextBetweenTokens(
doc,
"{{ start kubecostJob }}",
"{{ stop kubecostJob }}",
false
);
fs.writeFileSync(__dirname + '/../common/resources/otel-collector-config-new.yml', doc);

if (utils.valueFromContext(scope, "adotcollectormetrics.pattern.enabled", false)) {
Expand Down Expand Up @@ -200,4 +205,4 @@ export default class SingleNewEksOpenSourceobservabilityPattern {
.addOns(...addOns)
.build(scope, stackId);
}
}
}

0 comments on commit 7ca1a85

Please sign in to comment.