Skip to content

Commit

Permalink
Merge pull request #1269 from kubernetes-client/fix20
Browse files Browse the repository at this point in the history
Add node 20 to our test matrix, remove node 14, fix test for node 20.
  • Loading branch information
k8s-ci-robot committed Sep 18, 2023
2 parents e5b15c3 + 09ead53 commit 9bc1d55
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node: [ '18', '16', '14' ]
node: [ '20', '18', '16' ]
name: Node ${{ matrix.node }} validation
steps:
- uses: actions/checkout@v4
Expand Down
4 changes: 2 additions & 2 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export class KubeConfig {

public loadFromFile(file: string, opts?: Partial<ConfigOptions>): void {
const rootDirectory = path.dirname(file);
this.loadFromString(fs.readFileSync(file, 'utf8'), opts);
this.loadFromString(fs.readFileSync(file).toString('utf-8'), opts);
this.makePathsAbsolute(rootDirectory);
}

Expand Down Expand Up @@ -245,7 +245,7 @@ export class KubeConfig {
const namespaceFile = `${pathPrefix}${Config.SERVICEACCOUNT_NAMESPACE_PATH}`;
let namespace: string | undefined;
if (fileExists(namespaceFile)) {
namespace = fs.readFileSync(namespaceFile, 'utf8');
namespace = fs.readFileSync(namespaceFile).toString('utf-8');
}
this.contexts = [
{
Expand Down

0 comments on commit 9bc1d55

Please sign in to comment.