Skip to content

Commit

Permalink
fix: fix minor issues after deps update
Browse files Browse the repository at this point in the history
  • Loading branch information
f1ames committed Dec 20, 2023
1 parent a1bb81f commit 2369ac5
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
7 changes: 7 additions & 0 deletions admission-controller/synchronizer/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions admission-controller/synchronizer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"yaml": "^2.3.4"
},
"devDependencies": {
"@types/git-url-parse": "^9.0.3",
"@types/lodash": "^4.14.202",
"@types/node": "^20.10.5",
"typescript": "^5.3.3"
Expand Down
6 changes: 3 additions & 3 deletions admission-controller/synchronizer/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const CLOUD_API_URL = process.env.MONOKLE_CLOUD_API_URL ?? '';

const COMMUNICATION_INTERVAL_SEC = 15;

const logger = pino({
const logger = pino<string>({
name: 'Monokle:Synchronizer',
level: LOG_LEVEL,
});
Expand All @@ -28,10 +28,10 @@ const tokenPath = path.join('/run/secrets/token', '.token');
kc.loadFromCluster();

const apiFetcher = new Fetcher(
new ApiHandler({
new ApiHandler(CLOUD_API_URL, {
name: 'Monokle AdmissionController',
version: CURRENT_VERSION,
}, CLOUD_API_URL),
}),
);
const policyUpdater = new PolicyUpdater(kc, logger);

Expand Down

0 comments on commit 2369ac5

Please sign in to comment.