From 2662b2c43494fe8b9176244063d87b6638f42e66 Mon Sep 17 00:00:00 2001 From: nbbathul Date: Wed, 20 Sep 2023 15:10:37 -0500 Subject: [PATCH] Fixing Lint issues --- lib/existing-eks-opensource-observability-pattern/index.ts | 4 ++-- .../graviton-index.ts | 4 ++-- lib/single-new-eks-opensource-observability-pattern/index.ts | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/existing-eks-opensource-observability-pattern/index.ts b/lib/existing-eks-opensource-observability-pattern/index.ts index 29708671..480f082d 100644 --- a/lib/existing-eks-opensource-observability-pattern/index.ts +++ b/lib/existing-eks-opensource-observability-pattern/index.ts @@ -59,13 +59,13 @@ export default class ExistingEksOpenSourceobservabilityPattern { const jsonString = fs.readFileSync(__dirname + '/../../cdk.json', 'utf-8'); const jsonStringnew = JSON.parse(jsonString); - let doc = utils.readYamlDocument(__dirname + '/../common/resources/otel-collector-config.yml') + let doc = utils.readYamlDocument(__dirname + '/../common/resources/otel-collector-config.yml'); doc = utils.changeTextBetweenTokens( doc, "{{ if enableAPIserverJob }}", "{{ end }}", jsonStringnew.context["apiserver.pattern.enabled"] - ); + ); console.log(doc); fs.writeFileSync(__dirname + '/../common/resources/otel-collector-config-new.yml', doc); diff --git a/lib/single-new-eks-opensource-observability-pattern/graviton-index.ts b/lib/single-new-eks-opensource-observability-pattern/graviton-index.ts index 16528477..8bf7d8b1 100644 --- a/lib/single-new-eks-opensource-observability-pattern/graviton-index.ts +++ b/lib/single-new-eks-opensource-observability-pattern/graviton-index.ts @@ -40,13 +40,13 @@ export default class SingleNewEksGravitonOpenSourceObservabilityPattern { const jsonString = fs.readFileSync(__dirname + '/../../cdk.json', 'utf-8'); const jsonStringnew = JSON.parse(jsonString); - let doc = utils.readYamlDocument(__dirname + '/../common/resources/otel-collector-config.yml') + let doc = utils.readYamlDocument(__dirname + '/../common/resources/otel-collector-config.yml'); doc = utils.changeTextBetweenTokens( doc, "{{ if enableAPIserverJob }}", "{{ end }}", jsonStringnew.context["apiserver.pattern.enabled"] - ); + ); console.log(doc); fs.writeFileSync(__dirname + '/../common/resources/otel-collector-config-new.yml', doc); diff --git a/lib/single-new-eks-opensource-observability-pattern/index.ts b/lib/single-new-eks-opensource-observability-pattern/index.ts index dc035ca6..c31ae87c 100644 --- a/lib/single-new-eks-opensource-observability-pattern/index.ts +++ b/lib/single-new-eks-opensource-observability-pattern/index.ts @@ -41,13 +41,13 @@ export default class SingleNewEksOpenSourceobservabilityPattern { const jsonString = fs.readFileSync(__dirname + '/../../cdk.json', 'utf-8'); const jsonStringnew = JSON.parse(jsonString); - let doc = utils.readYamlDocument(__dirname + '/../common/resources/otel-collector-config.yml') + let doc = utils.readYamlDocument(__dirname + '/../common/resources/otel-collector-config.yml'); doc = utils.changeTextBetweenTokens( doc, "{{ if enableAPIserverJob }}", "{{ end }}", jsonStringnew.context["apiserver.pattern.enabled"] - ); + ); console.log(doc); fs.writeFileSync(__dirname + '/../common/resources/otel-collector-config-new.yml', doc);