@@ -125,6 +125,10 @@ export function markKongAvailable(kongAvailable, kongMessage, clusterStatus) {
125
125
_kongClusterStatus = clusterStatus ;
126
126
}
127
127
128
+ export function setKongClusterStatus ( clusterStatus ) {
129
+ _kongClusterStatus = clusterStatus ;
130
+ } ;
131
+
128
132
export function getKongClusterStatus ( ) {
129
133
return _kongClusterStatus ;
130
134
}
@@ -339,7 +343,7 @@ let _packageFile = null;
339
343
export function getPackageJson ( ) {
340
344
if ( ! _packageFile ) {
341
345
// Deliberately do not do any error handling here! package.json MUST exist.
342
- const packageFile = path . join ( __dirname , '..' , 'package.json' ) ;
346
+ const packageFile = path . join ( __dirname , '..' , '..' , ' package.json') ;
343
347
_packageFile = JSON . parse ( fs . readFileSync ( packageFile , 'utf8' ) ) ;
344
348
}
345
349
return _packageFile ;
@@ -396,7 +400,7 @@ export function getGitBranch() {
396
400
let _buildDate = null ;
397
401
export function getBuildDate ( ) {
398
402
if ( ! _buildDate ) {
399
- const buildDateFile = path . join ( __dirname , '..' , 'build_date' ) ;
403
+ const buildDateFile = path . join ( __dirname , '..' , '..' , ' build_date') ;
400
404
if ( fs . existsSync ( buildDateFile ) )
401
405
_buildDate = fs . readFileSync ( buildDateFile , 'utf8' ) ;
402
406
else
0 commit comments