-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Release: Add archive environment command kosli-dev/server#324 (#92)
- Loading branch information
1 parent
caf6d32
commit db86fb2
Showing
88 changed files
with
1,404 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"currentversion": "v2.7.3"} | ||
{"currentversion": "v2.7.4"} |
46 changes: 46 additions & 0 deletions
46
docs.kosli.com/content/client_reference/kosli_archive_environment.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
--- | ||
title: "kosli archive environment" | ||
beta: false | ||
--- | ||
|
||
# kosli archive environment | ||
|
||
## Synopsis | ||
|
||
Archive a Kosli environment. | ||
The environment will no longer be visible in list of environments, data is still stored in database. | ||
|
||
|
||
```shell | ||
kosli archive environment ENVIRONMENT-NAME [flags] | ||
``` | ||
|
||
## Flags | ||
| Flag | Description | | ||
| :--- | :--- | | ||
| -D, --dry-run | [optional] Run in dry-run mode. When enabled, no data is sent to Kosli and the CLI exits with 0 exit code regardless of any errors. | | ||
| -h, --help | help for environment | | ||
|
||
|
||
## Options inherited from parent commands | ||
| Flag | Description | | ||
| :--- | :--- | | ||
| -a, --api-token string | The Kosli API token. | | ||
| -c, --config-file string | [optional] The Kosli config file path. (default "kosli") | | ||
| --debug | [optional] Print debug logs to stdout. A boolean flag https://docs.kosli.com/faq/#boolean-flags (default false) | | ||
| -H, --host string | [defaulted] The Kosli endpoint. (default "https://app.kosli.com") | | ||
| -r, --max-api-retries int | [defaulted] How many times should API calls be retried when the API host is not reachable. (default 3) | | ||
| --org string | The Kosli organization. | | ||
|
||
|
||
## Examples | ||
|
||
```shell | ||
|
||
# archive a Kosli environment: | ||
kosli archive environment yourEnvironmentName \ | ||
--api-token yourAPIToken \ | ||
--org yourOrgName | ||
|
||
``` | ||
|
46 changes: 46 additions & 0 deletions
46
docs.kosli.com/content/client_reference/kosli_archive_flow.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
--- | ||
title: "kosli archive flow" | ||
beta: false | ||
--- | ||
|
||
# kosli archive flow | ||
|
||
## Synopsis | ||
|
||
Archive a Kosli flow. | ||
The flow will no longer be visible in list of flows, data is still stored in database. | ||
|
||
|
||
```shell | ||
kosli archive flow FLOW-NAME [flags] | ||
``` | ||
|
||
## Flags | ||
| Flag | Description | | ||
| :--- | :--- | | ||
| -D, --dry-run | [optional] Run in dry-run mode. When enabled, no data is sent to Kosli and the CLI exits with 0 exit code regardless of any errors. | | ||
| -h, --help | help for flow | | ||
|
||
|
||
## Options inherited from parent commands | ||
| Flag | Description | | ||
| :--- | :--- | | ||
| -a, --api-token string | The Kosli API token. | | ||
| -c, --config-file string | [optional] The Kosli config file path. (default "kosli") | | ||
| --debug | [optional] Print debug logs to stdout. A boolean flag https://docs.kosli.com/faq/#boolean-flags (default false) | | ||
| -H, --host string | [defaulted] The Kosli endpoint. (default "https://app.kosli.com") | | ||
| -r, --max-api-retries int | [defaulted] How many times should API calls be retried when the API host is not reachable. (default 3) | | ||
| --org string | The Kosli organization. | | ||
|
||
|
||
## Examples | ||
|
||
```shell | ||
|
||
# archive a Kosli flow: | ||
kosli archive flow yourFlowName \ | ||
--api-token yourAPIToken \ | ||
--org yourOrgName | ||
|
||
``` | ||
|
77 changes: 77 additions & 0 deletions
77
docs.kosli.com/content/client_reference/kosli_snapshot_azure.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
--- | ||
title: "kosli snapshot azure" | ||
beta: false | ||
--- | ||
|
||
# kosli snapshot azure | ||
|
||
## Synopsis | ||
|
||
Report a snapshot of running Azure web apps and function apps in an Azure resource group to Kosli. | ||
The reported data includes Azure app names, container image digests and creation timestamps. | ||
|
||
To authenticate to Azure, you need to create Azure service principal with a secret | ||
and provide these Azure credentials via flags or by exporting the equivalent KOSLI env vars (e.g. KOSLI_AZURE_CLIENT_ID). | ||
The service principal needs to have the following permissions: | ||
1) Microsoft.Web/sites/Read | ||
2) Microsoft.ContainerRegistry/registries/pull/read | ||
|
||
|
||
|
||
```shell | ||
kosli snapshot azure ENVIRONMENT-NAME [flags] | ||
``` | ||
|
||
## Flags | ||
| Flag | Description | | ||
| :--- | :--- | | ||
| --azure-client-id string | Azure client ID. | | ||
| --azure-client-secret string | Azure client secret. | | ||
| --azure-resource-group-name string | Azure resource group name. | | ||
| --azure-subscription-id string | Azure subscription ID. | | ||
| --azure-tenant-id string | Azure tenant ID. | | ||
| --digests-source string | [defaulted] Where to get the digests from. Valid values are 'acr' and 'logs'. (default "acr") | | ||
| -D, --dry-run | [optional] Run in dry-run mode. When enabled, no data is sent to Kosli and the CLI exits with 0 exit code regardless of any errors. | | ||
| -h, --help | help for azure | | ||
| --zip | Download logs from Azure as zip files | | ||
|
||
|
||
## Options inherited from parent commands | ||
| Flag | Description | | ||
| :--- | :--- | | ||
| -a, --api-token string | The Kosli API token. | | ||
| -c, --config-file string | [optional] The Kosli config file path. (default "kosli") | | ||
| --debug | [optional] Print debug logs to stdout. A boolean flag https://docs.kosli.com/faq/#boolean-flags (default false) | | ||
| -H, --host string | [defaulted] The Kosli endpoint. (default "https://app.kosli.com") | | ||
| -r, --max-api-retries int | [defaulted] How many times should API calls be retried when the API host is not reachable. (default 3) | | ||
| --org string | The Kosli organization. | | ||
|
||
|
||
## Examples | ||
|
||
```shell | ||
|
||
# Use Azure Container Registry to get the digests for artifacts in a snapshot | ||
kosli snapshot azure yourEnvironmentName \ | ||
--azure-client-id yourAzureClientID \ | ||
--azure-client-secret yourAzureClientSecret \ | ||
--azure-tenant-id yourAzureTenantID \ | ||
--azure-subscription-id yourAzureSubscriptionID \ | ||
--azure-resource-group-name yourAzureResourceGroupName \ | ||
--digests-source acr \ | ||
--api-token yourAPIToken \ | ||
--org yourOrgName | ||
|
||
# Use Docker logs of Azure apps to get the digests for artifacts in a snapshot | ||
kosli snapshot azure yourEnvironmentName \ | ||
--azure-client-id yourAzureClientID \ | ||
--azure-client-secret yourAzureClientSecret \ | ||
--azure-tenant-id yourAzureTenantID \ | ||
--azure-subscription-id yourAzureSubscriptionID \ | ||
--azure-resource-group-name yourAzureResourceGroupName \ | ||
--digests-source logs \ | ||
--api-token yourAPIToken \ | ||
--org yourOrgName | ||
|
||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
--- | ||
title: v2.6.18 | ||
bookCollapseSection: true | ||
weight: 603 | ||
weight: 604 | ||
--- | ||
|
||
# v2.6.18 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
--- | ||
title: v2.7.0 | ||
bookCollapseSection: true | ||
weight: 602 | ||
weight: 603 | ||
--- | ||
|
||
# v2.7.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
--- | ||
title: v2.7.1 | ||
bookCollapseSection: true | ||
weight: 601 | ||
weight: 602 | ||
--- | ||
|
||
# v2.7.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
--- | ||
title: v2.7.2 | ||
bookCollapseSection: true | ||
weight: 600 | ||
weight: 601 | ||
--- | ||
|
||
# v2.7.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
title: v2.7.3 | ||
bookCollapseSection: true | ||
weight: 600 | ||
--- | ||
|
||
# v2.7.3 |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
79 changes: 79 additions & 0 deletions
79
docs.kosli.com/content/legacy_ref/v2.7.3/kosli_attest_artifact.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
--- | ||
title: "kosli attest artifact" | ||
beta: false | ||
--- | ||
|
||
# kosli attest artifact | ||
|
||
## Synopsis | ||
|
||
Attest an artifact creation to a Kosli flow. | ||
The artifact SHA256 fingerprint is calculated (based on --artifact-type flag) or alternatively it can be provided directly (with --fingerprint flag). | ||
|
||
```shell | ||
kosli attest artifact {IMAGE-NAME | FILE-PATH | DIR-PATH} [flags] | ||
``` | ||
|
||
## Flags | ||
| Flag | Description | | ||
| :--- | :--- | | ||
| -t, --artifact-type string | [conditional] The type of the artifact to calculate its SHA256 fingerprint. One of: [docker, file, dir]. Only required if you don't specify '--fingerprint'. | | ||
| -b, --build-url string | The url of CI pipeline that built the artifact. (defaulted in some CIs: https://docs.kosli.com/ci-defaults ). | | ||
| -g, --commit string | [defaulted] The git commit from which the artifact was created. (defaulted in some CIs: https://docs.kosli.com/ci-defaults, otherwise defaults to HEAD ). (default "HEAD") | | ||
| -u, --commit-url string | The url for the git commit that created the artifact. (defaulted in some CIs: https://docs.kosli.com/ci-defaults ). | | ||
| -N, --display-name string | [optional] Artifact display name, if different from file, image or directory name. | | ||
| -D, --dry-run | [optional] Run in dry-run mode. When enabled, no data is sent to Kosli and the CLI exits with 0 exit code regardless of any errors. | | ||
| -x, --exclude strings | [optional] The comma separated list of directories and files to exclude from fingerprinting. Only applicable for --artifact-type dir. | | ||
| -F, --fingerprint string | [conditional] The SHA256 fingerprint of the artifact. Only required if you don't specify '--artifact-type'. | | ||
| -f, --flow string | The Kosli flow name. | | ||
| -h, --help | help for artifact | | ||
| -n, --name string | The name of the artifact in the yml template file. | | ||
| --registry-password string | [conditional] The docker registry password or access token. Only required if you want to read docker image SHA256 digest from a remote docker registry. | | ||
| --registry-provider string | [conditional] The docker registry provider or url. Only required if you want to read docker image SHA256 digest from a remote docker registry. | | ||
| --registry-username string | [conditional] The docker registry username. Only required if you want to read docker image SHA256 digest from a remote docker registry. | | ||
| --repo-root string | [defaulted] The directory where the source git repository is available. (default ".") | | ||
| -T, --trail string | The Kosli trail name. | | ||
|
||
|
||
## Options inherited from parent commands | ||
| Flag | Description | | ||
| :--- | :--- | | ||
| -a, --api-token string | The Kosli API token. | | ||
| -c, --config-file string | [optional] The Kosli config file path. (default "kosli") | | ||
| --debug | [optional] Print debug logs to stdout. A boolean flag https://docs.kosli.com/faq/#boolean-flags (default false) | | ||
| -H, --host string | [defaulted] The Kosli endpoint. (default "https://app.kosli.com") | | ||
| -r, --max-api-retries int | [defaulted] How many times should API calls be retried when the API host is not reachable. (default 3) | | ||
| --org string | The Kosli organization. | | ||
|
||
|
||
## Examples | ||
|
||
```shell | ||
|
||
# Attest to a Kosli flow that a file type artifact has been created | ||
kosli attest artifact FILE.tgz \ | ||
--artifact-type file \ | ||
--build-url https://exampleci.com \ | ||
--commit-url https://github.com/YourOrg/YourProject/commit/yourCommitShaThatThisArtifactWasBuiltFrom \ | ||
--git-commit yourCommitShaThatThisArtifactWasBuiltFrom \ | ||
--flow yourFlowName \ | ||
--trail yourTrailName \ | ||
--name yourTemplateArtifactName \ | ||
--api-token yourApiToken \ | ||
--org yourOrgName | ||
|
||
|
||
# Attest to a Kosli flow that an artifact with a provided fingerprint (sha256) has been created | ||
kosli attest artifact ANOTHER_FILE.txt \ | ||
--build-url https://exampleci.com \ | ||
--commit-url https://github.com/YourOrg/YourProject/commit/yourCommitShaThatThisArtifactWasBuiltFrom \ | ||
--git-commit yourCommitShaThatThisArtifactWasBuiltFrom \ | ||
--flow yourFlowName \ | ||
--fingerprint yourArtifactFingerprint \ | ||
--trail yourTrailName \ | ||
--name yourTemplateArtifactName \ | ||
--api-token yourApiToken \ | ||
--org yourOrgName | ||
|
||
``` | ||
|
Oops, something went wrong.