Skip to content

Commit

Permalink
Merge pull request #34 from keremnalbant/master
Browse files Browse the repository at this point in the history
Add base64 convert command for Windows Users
  • Loading branch information
kodermax committed Jul 9, 2023
2 parents 597373e + aea8ff9 commit 214195d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,15 @@ jobs:

`KUBE_CONFIG_DATA`**required**: A base64-encoded kubeconfig file with credentials for Kubernetes to access the cluster. You can get it by running the following command:

### Bash
```bash
cat $HOME/.kube/config | base64
```
### PowerShell
```PowerShell
$base64Data = [Convert]::ToBase64String([IO.File]::ReadAllBytes("$env:USERPROFILE\.kube\config"))
Write-Output $base64Data
```

Make sure that your `$HOME/.kube/config` doesn't contain a `AWS_PROFILE`, i.e. remove the following section if it exists before doing the base64 encoding:

Expand Down

0 comments on commit 214195d

Please sign in to comment.