PowerKube.psm1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Get-ChildItem -Directory -Path $PSScriptRoot/lib/runtimes/ -Recurse -Filter 'native' |
    ForEach-Object {
        # For windows
        $env:PATH = '{0}{1}{2}' -f @(
            $_.FullName
            [System.IO.Path]::PathSeparator
            $env:PATH
        )
        # For Linux
        $env:LD_LIBRARY_PATH = '{0}{1}{2}' -f @(
            $_.FullName
            [System.IO.Path]::PathSeparator
            $env:LD_LIBRARY_PATH
        )
        # For macOS
        $env:DYLD_LIBRARY_PATH = '{0}{1}{2}' -f @(
            $_.FullName
            [System.IO.Path]::PathSeparator
            $env:DYLD_LIBRARY_PATH
        )
    }