Skip to content

Commit

Permalink
docs: adds documentation for Windows install (#3)
Browse files Browse the repository at this point in the history
Co-authored-by: Leonardo Cecchi <[email protected]>
Co-authored-by: Armando Ruocco <[email protected]>
  • Loading branch information
3 people authored Mar 8, 2022
1 parent f4f7189 commit 988bdd3
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ an OpenShift environment.

For details, please refer to Cloud Native PostgreSQL documentation.

## Mac OS and Linux install

You can install the plugin in your system with:

``` sh
Expand All @@ -16,3 +18,38 @@ curl -sSfL \

The plugin requires the Cloud Native PostgreSQL operator to be
installed in the Kubernetes/Openshift cluster.

## Windows install

To install the plugin on Windows go to the [releases
page](https://github.com/EnterpriseDB/kubectl-cnp/releases) and get the most
recent release for your Windows architecture.

For example, if you are using an `x86_64` build of Windows, you would download
the file named `kubectl-cnp_<version>_windows_x86_64.tar.gz`.

The release includes a checksum file, named
`kubectl-cnp-<version>-checksums.txt`, that can be used to validate the
integrity of the Kubectl binary.

To validate the file you can compare the output of the following command
against the relative line in the checksums file:

```
CertUtil -hashfile <tar-file> SHA256
```

Now you can extract the contents of the TAR archive using the following
command:

```
tar xvzf <tar-file>
```

You can copy the `kubectl-cnp.exe` file in any directory pointed by your `PATH`
environment variable, or prepend or append the Kubectl Cnp binary folder to
your `PATH` environment variable.

The directory where `kubectl.exe` is is usually a good choice for copying the
`kubectl-cnp.exe` file to.

0 comments on commit 988bdd3

Please sign in to comment.