Skip to content

Commit

Permalink
Fixing Lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
naveen-bathula committed Sep 20, 2023
1 parent 00fa064 commit 2662b2c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions lib/existing-eks-opensource-observability-pattern/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
4 changes: 2 additions & 2 deletions lib/single-new-eks-opensource-observability-pattern/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 2662b2c

Please sign in to comment.