Skip to content

Commit

Permalink
docs: add conf environment variables description (#438)
Browse files Browse the repository at this point in the history
When setting up the provider I required ENV variable setup but could not
find those in the docs.

Signed-off-by: anryko <[email protected]>
  • Loading branch information
anryko authored Jun 3, 2024
1 parent dff583d commit 115d4f7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ description: |-

### Optional

- `api_version` (Number) Choose which version of the api you would like to use 1 or 2. Default is `2`
- `api_version` (Number) Choose which version of the api you would like to use 1 or 2 (default is 2)
- `bearer_token` (String) The bearer token to be used to access harbor. Will take precedence over username and password if set
- `insecure` (Boolean) Choose to ignore certificate errors

### Environment variables

The provider can also be configured via environment variables: `HARBOR_URL`, `HARBOR_USERNAME`, `HARBOR_PASSWORD`.
6 changes: 5 additions & 1 deletion templates/index.md.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ For example, the {{ .SchemaMarkdown }} template can be used to replace manual sc

### Optional

- `api_version` (Number) Choose which version of the api you would like to use 1 or 2. Default is `2`
- `api_version` (Number) Choose which version of the api you would like to use 1 or 2 (default is 2)
- `bearer_token` (String) The bearer token to be used to access harbor. Will take precedence over username and password if set
- `insecure` (Boolean) Choose to ignore certificate errors

### Environment variables

The provider can also be configured via environment variables: `HARBOR_URL`, `HARBOR_USERNAME`, `HARBOR_PASSWORD`.

0 comments on commit 115d4f7

Please sign in to comment.