Skip to content
This repository has been archived by the owner on Dec 23, 2021. It is now read-only.

Commit

Permalink
fix(cert): fix cert path not found
Browse files Browse the repository at this point in the history
  • Loading branch information
neilkuan committed Nov 3, 2020
1 parent 4278131 commit 3151e0e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cert-manager.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import * as fs from 'fs';
import * as path from 'path';
import * as yaml from 'js-yaml';
export class CertManager {
public static certManagerConfig(): any {
let certManagerConfigManifest = yaml.safeLoadAll(fs.readFileSync('../cert/cert-manager.yaml').toString());
let certManagerConfigManifest = yaml.safeLoadAll(fs.readFileSync(path.join(__dirname, '../cert/cert-manager.yaml')).toString());
return certManagerConfigManifest;
}
}

0 comments on commit 3151e0e

Please sign in to comment.