-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #174 from flanksource/playbook-updates
Playbook updates
- Loading branch information
Showing
7 changed files
with
91 additions
and
106 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,3 +1,6 @@ | ||
.envrc | ||
default.nix | ||
|
||
.DS_Store | ||
site/ | ||
**/build/ | ||
|
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,4 +1,5 @@ | ||
{ | ||
"semi": false, | ||
"trailingComma": "none" | ||
"trailingComma": "none", | ||
"singleQuote": true | ||
} |
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,6 +1,6 @@ | ||
.PHONY: | ||
sync: | ||
rm docs/canary-checker/index.md | ||
rm -f docs/canary-checker/index.md | ||
|
||
watch: sync | ||
npm exec -c 'docusaurus start' |
68 changes: 68 additions & 0 deletions
68
mission-control/docs/playbooks/actions/azure_devops_pipeline.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,68 @@ | ||
--- | ||
title: Azure DevOps Pipeline Action | ||
--- | ||
|
||
# <Icon name="azure-devops"/> Azure DevOps Pipeline Action | ||
|
||
This action allows you to invoke pipelines in your Azure DevOps project. | ||
|
||
```yaml title="invoke-azure-devops-pipeline.yaml" | ||
apiVersion: mission-control.flanksource.com/v1 | ||
kind: Playbook | ||
metadata: | ||
name: invoke-azure-devops-pipeline | ||
namespace: default | ||
spec: | ||
parameters: | ||
- name: project | ||
label: Project name | ||
- name: pipeline | ||
label: Pipeline ID | ||
actions: | ||
- name: Invoke pipeline | ||
azureDevopsPipeline: | ||
org: flanksource | ||
project: "{{.params.project}}" | ||
token: | ||
valueFrom: | ||
secretKeyRef: | ||
name: azure-devops | ||
key: token | ||
pipeline: | ||
id: "{{.params.pipeline}}" | ||
``` | ||
| Field | Description | Scheme | Required | Templatable | | ||
| ------------ | ------------------------------------------------------------- | ---------------------------------------------- | -------- | ----------- | | ||
| `org` | Org is the name of the Azure DevOps organization. | `string` | `true` | `true` | | ||
| `project` | Project ID or project name | `string` | `true` | `true` | | ||
| `token` | Token is the personal access token. | <CommonLink to="secrets">_EnvVar_</CommonLink> | `true` | `true` | | ||
| `pipeline` | Pipeline is the azure pipeline to invoke. | [`AzureDevopsPipeline`](#pipeline) | `true` | `true` | | ||
| `parameters` | Parameteres are the settings that influence the pipeline run. | [`AzureDevopsPipelineParameters`](#parameters) | `false` | `true` | | ||
|
||
## Pipeline | ||
|
||
| Field | Description | Scheme | Required | Templatable | | ||
| --------- | ----------------- | -------- | -------- | ----------- | | ||
| `id` | Pipeline ID. | `string` | `true` | `true` | | ||
| `version` | Pipeline version. | `string` | `false` | `true` | | ||
|
||
## Parameters | ||
|
||
| Field | Description | Scheme | Required | Templatable | | ||
| -------------------- | ----------------------------------------- | ---------------- | -------- | ----------- | | ||
| `resources` | The resources the run requires. | `map[string]any` | `false` | `true` | | ||
| `templateParameters` | The template parameters the run requires. | `map[string]any` | `false` | `true` | | ||
| `variables` | The variables the run requires. | `map[string]any` | `false` | `true` | | ||
| `stagesToSkip` | The stages to skip. | `[]string` | `false` | `true` | | ||
|
||
## Templating | ||
|
||
The fields that are marked as `templatable` receives a environment variable that contain details about the corresponding config, check or component and the parameter(if applicable). | ||
|
||
| Field | Description | Schema | | ||
| ----------- | ---------------------------------------- | -------------------------------------------- | | ||
| `config` | Config passed to the playbook | [`ConfigItem`](../references/config_item.md) | | ||
| `component` | Component passed to the playbook | [`Component`](../references/component.md) | | ||
| `check` | Canary Check passed to the playbook | [`Check`](../references/check.md) | | ||
| `params` | User provided parameters to the playbook | `map[string]string` | |
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