Skip to content

Commit 9c28e79

Browse files
authored
Merge pull request #2015 from trloftsh/pipeline_content_updated_tr
Pipeline content updated tr [WIP]
2 parents 66c29e7 + 00780ea commit 9c28e79

13 files changed

Lines changed: 400 additions & 5 deletions

docs/pages/configuration/pipelines/functions/build_images.mdx

Lines changed: 34 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,55 @@ import FragmentConfigOverwriteFlags from '../../../fragments/config-overwrite-fl
77

88
The function `build_images` builds either all images (`--all` flag) or the images provided as arguments (e.g. `build_images api ui`). Images are, by default, processed in parallel.
99

10+
## Arguments
1011

11-
## Args
12+
None
1213

14+
### Usage
15+
16+
```
17+
build_image image1 image2
18+
19+
```
1320

1421
## Flags
1522

23+
By default, flags are disabled. If any of the flags below are enabled, the following actions are taken.
24+
1625
### `--all`
1726

27+
All images will be built.
28+
1829
### `--tag / -t`
1930

31+
The build image tag will be returned.
32+
33+
### `--skip-build`
34+
35+
The image will not be built.
36+
37+
### `--skip-push`
38+
39+
The image will not be pushed to a container registry.
40+
41+
### `--skip-push-on-local-kubernetes`
42+
43+
The image will not be pushed if the current Kubernetes config was detected to be a local cluster like docker-desktop or minikube.
44+
2045
### `--force-rebuild`
2146

22-
### `--max-concurrent`
47+
The images will be forced to be rebuilt.
2348

2449
### `--sequential`
2550

26-
### `--skip`
51+
Images will be built in sequential order, one after another.
2752

28-
### `--skip-push`
53+
### `--max-concurrent-builds`
54+
55+
An integer that represents the maximum number of images that can be built concurrently.
2956

30-
### `--skip-push-on-local-kubernetes`
57+
58+
## Config Overwrite Flags
3159

3260
<FragmentConfigOverwriteFlags/>
61+

docs/pages/configuration/pipelines/functions/create_deployments.mdx

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,45 @@
22
title: Function create_deployments
33
sidebar_label: create_deployments
44
---
5+
6+
This function creates a new deployment for a pipeline.
7+
8+
## Arguments
9+
10+
### `--skip-deploy`
11+
12+
The deployment will be skipped.
13+
14+
### `--force-deploy`
15+
16+
The deployment will be forced to run.
17+
18+
### `--sequential`
19+
20+
The deployments will be deployed sequentially, one after another.
21+
22+
### `--render`
23+
24+
The rendered manifests will be printed to the console (stdout) instead of being deployed.
25+
26+
## Usage
27+
28+
```
29+
create_deployments--all
30+
```
31+
32+
```
33+
create_deployments deployment1 deployment2
34+
```
35+
36+
## Flags
37+
38+
By default, flags are disabled. If any of the flags below are enabled, the following actions are taken.
39+
40+
### `--all`
41+
42+
Deploys all existing deployments.
43+
44+
## Config Overwrite Flags
45+
46+
TODO: Import reusable fragmennts here

docs/pages/configuration/pipelines/functions/ensure_pull_secrets.mdx

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,27 @@
22
title: Function ensure_pull_secrets
33
sidebar_label: ensure_pull_secrets
44
---
5+
6+
This function validates existing pull secrets for a pod.
7+
8+
## Arguments
9+
10+
None
11+
12+
## Usage
13+
14+
```
15+
ensure_pull_secrets pullSecret1 pullSecret2
16+
```
17+
18+
## Flags
19+
20+
By default, flags are disabled. If any of the flags below are enabled, the following actions are taken.
21+
22+
### `-all`
23+
24+
If enabled, ensures all pull secrets are created in the target Kubernetes namespace.
25+
26+
## Config Overwrite Fiags
27+
28+
TODO: Add config overwrite flags here

docs/pages/configuration/pipelines/functions/exec_container.mdx

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,41 @@
22
title: Function exec_container
33
sidebar_label: exec_container
44
---
5+
6+
This function enables you to execute commands inside a container.
7+
8+
## Arguments
9+
10+
### `--image-selector`
11+
12+
The image selector to be used when selecting the container.
13+
14+
### `--label-selector`
15+
16+
The label selector to be used when selecting the container.
17+
18+
### `--container`
19+
20+
The container to be used.
21+
22+
### `--namespace`
23+
24+
The namespace to be used.
25+
26+
## Usage
27+
28+
```
29+
exec_container --image-selector=ubuntu -- echo "Hello from within ubuntu container!"
30+
```
31+
32+
## Flags
33+
34+
By default, flags are disabled. If any of the flags below are enabled, the following actions are taken.
35+
36+
### `--diable-wait`
37+
38+
If enabled, will not wait for the container to be ready.
39+
40+
### `--timeout`
41+
42+
The amount of time to wait for a container to be ready. The default is 5 minutes.

docs/pages/configuration/pipelines/functions/get_config_value.mdx

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,19 @@
22
title: Function get_config_value
33
sidebar_label: get_config_value
44
---
5+
6+
This function retrieves the value for an existing configuration.
7+
8+
## Arguments
9+
10+
None
11+
12+
## Usage
13+
14+
```
15+
get_config_value [configValue1]
16+
```
17+
18+
## Flags
19+
20+
None

docs/pages/configuration/pipelines/functions/get_image.mdx

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,25 @@
22
title: Function get_image
33
sidebar_label: get_image
44
---
5+
6+
This function retrieves an image or image tag.
7+
8+
## Arguments
9+
10+
### `--dependency`
11+
12+
Retrieves the image or image tag from the named dependency.
13+
14+
### `--only`
15+
16+
Displays either the image, or the tag, but not both.
17+
18+
## Usage
19+
20+
```
21+
get_image [--only=image|tag] [--dependency=DEPENDENCY] [image_name]
22+
```
23+
24+
## Flags
25+
26+
None

docs/pages/configuration/pipelines/functions/purge_deployments.mdx

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,27 @@
22
title: Function purge_deployments
33
sidebar_label: purge_deployments
44
---
5+
6+
This function removes a deployment.
7+
8+
## Arguments
9+
10+
None
11+
12+
## Usage
13+
14+
```
15+
purge_deployments deployment1 deployment2
16+
```
17+
18+
## Flags
19+
20+
By default, flags are disabled. If any of the flags below are enabled, the following actions are taken.
21+
22+
### `--all`
23+
24+
Purges all existing deployments.
25+
26+
### `--sequential`
27+
28+
Purges all existing deployments in sequential order, one after another.

docs/pages/configuration/pipelines/functions/run_default_pipeline.mdx

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,19 @@
22
title: Function run_default_pipeline
33
sidebar_label: run_default_pipeline
44
---
5+
6+
Runs the default pipeline.
7+
8+
## Arguments
9+
10+
None
11+
12+
## Usage
13+
14+
```
15+
run_default_pipeline
16+
```
17+
18+
## Flags
19+
20+
None

docs/pages/configuration/pipelines/functions/run_dependency_pipelines.mdx

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,37 @@
22
title: Function run_dependency_pipelines
33
sidebar_label: run_dependency_pipelines
44
---
5+
6+
Runs dependencies for pipelines.
7+
8+
## Arguments
9+
10+
### `--pipeline`
11+
12+
The pipeline that is executed from the dependency.
13+
14+
### `--exclude`
15+
16+
The dependencies to be excluded from the pipeline if the --all flag is used.
17+
18+
### `--only`
19+
20+
The dependencies to be included in the pipeline.
21+
22+
## Usage
23+
24+
```
25+
run_dependency_pipelines [buildDependencies] [renderDependencies]
26+
```
27+
28+
## Flags
29+
30+
By default, all flags are disabled. If any of these flags are enabled, the follwing actions will take place.
31+
32+
### `--sequential`
33+
34+
The dependencies will be run in sequential order, one after another.
35+
36+
### `--all`
37+
38+
If enabled, all dependencies will be run.

docs/pages/configuration/pipelines/functions/run_pipelines.mdx

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,37 @@
22
title: Function run_pipelines
33
sidebar_label: run_pipelines
44
---
5+
6+
This function triggers a new pipeline to be run. A pipeline defines what DevSpace should do.
7+
8+
A pipeline consists of one or more jobs that are run in parallel and can depend on each other. Each job consists of one or more conditional steps that are executed in order.
9+
10+
## Arguments
11+
12+
None
13+
14+
## Usage
15+
16+
```
17+
run_pipeline [pipeline1]
18+
```
19+
20+
## Flags
21+
22+
By default, flags are disabled. If any of the flags below are enabled, the following actions are taken.
23+
24+
### `--env`
25+
26+
Passes environment variables to the pipelines.
27+
28+
### `--background`
29+
30+
Runs the pipeline in the background.
31+
32+
### `--sequential`
33+
34+
Runs the pipelines in sequential order, one after another.
35+
36+
## Config Overwrite Flags
37+
38+
#TODO: This needs to be a reusable section

0 commit comments

Comments
 (0)