You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add pipeline scopes content
Updated global and pipeline-specific settings with new Scopes feature
* Update pipelines.md
* Update pipeline scopes
Added screenshot of scope in account settings,and added link to custom config option
Copy file name to clipboardExpand all lines: _docs/administration/user-self-management/user-settings.md
+32-3Lines changed: 32 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -90,9 +90,10 @@ max-width="100%"
90
90
Generate new API keys to access Codefresh functionality from your scripts or applications, outside the Codefresh UI. Edit scopes for existing keys, or revoke them when needed.
91
91
For details, see [Codefresh API]({{site.baseurl}}/docs/integrations/codefresh-api/#authentication-instructions).
92
92
93
-
>Tokens are visible only during creation. You cannot "view" an existing token. To re-enable API access for an existing application, you must delete the old token and create a new one.
93
+
>**IMPORTANT**:
94
+
Tokens are visible only during creation. You cannot "view" an existing token. To re-enable API access for an existing application, you must delete the old token and create a new one.
94
95
95
-
The UI shows the first few characters in the second part of the key, after the `.`, and not the characters at the beginning of the key.
96
+
The UI shows the first few characters in the second part of the key, after the `.`, and not the characters at the beginning of the key.
96
97
97
98
98
99
@@ -110,7 +111,35 @@ caption="Generating a key for the API"
110
111
max-width="80%"
111
112
%}
112
113
113
-
114
+
<!---
115
+
### API scopes
116
+
{: .table .table-bordered .table-hover}
117
+
| Pipeline scope | Description |
118
+
| ------------------------| ---------------- |
119
+
| **General** | Row 1 |
120
+
| **Agent**/**Agents** | Row 2 |
121
+
| **Analytics** | Row 3 |
122
+
| **API** | Row 4 |
123
+
| **API keys** | Row 5 |
124
+
| **Audit** | Row 6 |
125
+
| **Board** | Row 7 |
126
+
| **Build** | Row 8 |
127
+
| **Chart** | Row 9 |
128
+
| **Cluster**/**Clusters** | Row 10 |
129
+
| **Environments-V2** | Control access to the Environment Dashboard with Kubernetes and Helm releases: <br>Read - View only access<br>Write - access . |
Copy file name to clipboardExpand all lines: _docs/pipelines/configuration/pipeline-settings.md
+45-9Lines changed: 45 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
title: "Global settings for pipelines"
3
-
description: "Define global options for pipeline templates, yaml sources and approval behavior"
3
+
description: "Configure settings for pipeline templates, YAML sources and build behavior for all pipelines in account"
4
4
group: pipelines
5
5
sub_group: configuration
6
6
redirect_from:
@@ -9,14 +9,31 @@ toc: true
9
9
---
10
10
11
11
12
-
You can define global settings for all the pipelines in the account. Users can still override some settings for individual pipelines.
12
+
As a Codefresh account administrator, you can define global settings for all the pipelines in the account. Users can still override some settings for individual pipelines.
13
13
14
+
{: .table .table-bordered .table-hover}
15
+
| Account-level pipeline setting | Description |
16
+
| ------------------------| ---------------- |
17
+
|[Pause pipeline executions](#pause-pipeline-executions)| Define if users can pause builds for new and existing pipelines in the account. |
18
+
|[New pipeline creation options](#new-pipeline-creation-options)| Define if users can new pipelines from templates or by cloning existing pipelines. |
19
+
|[Configure pipeline scopes](#configure-pipeline-scopes)| Control access to endpoints exposed by the pipeline. |
20
+
|[Auto-create projects for teams](#auto-create-projects-for-teams)| Enabled by default, automatically creates projects when adding teams to the account. |
21
+
|[Enabling cluster-contexts for pipelines](#enabling-cluster-contexts-for-pipelines)| Define if users can select the clusters to which the pipeline has access. |
22
+
|[Enabling cluster-contexts for pipelines](#enabling-cluster-contexts-for-pipelines)| Enable/disable sources for pipeline YAMLs. |
23
+
|[Memory usage warning for pipeline builds](#memory-usage-warning-for-pipeline-builds)| Enable alerts when pipelines reach/exceed the threshold. |
24
+
|[Advanced pipeline options](#advanced-pipeline-options)| Configure options for build approval and pipeline volumes. |
25
+
|[Default behavior for build step](#default-behavior-for-build-step)| Configure push image options for build steps. |
26
+
27
+
28
+
## Access global pipeline settings
29
+
Global settings for pipelines are set for the account and inherited by all pipelines in the account.
14
30
15
-
## Access pipeline settings
16
31
1. In the Codefresh UI, on the toolbar, click the **Settings** icon.
17
32
1. From Configuration in the sidebar, select [**Pipeline Settings**](https://g.codefresh.io/account-admin/account-conf/pipeline-settings){:target="\_blank"}.
18
33
19
34
35
+
36
+
20
37
## Pause pipeline executions
21
38
22
39
Pause builds for pipelines at the account level, for example, during maintenance.
Here you can define if users can [create pipelines]({{site.baseurl}}/docs/pipelines/pipelines/#creating-a-pipeline) from existing pipelines or from scratch:
59
+
60
+
* Create pipelines from a [pipeline template]({{site.baseurl}}/docs/pipelines/pipelines/#using-pipeline-templates).<br>
61
+
Enabling this option allows users to select a pipeline marked as a template as the source for the new pipeline.
62
+
Templates are simply pipelines “marked” as templates. There is no technical difference between templates and actual pipelines.
63
+
64
+
* Clone existing pipeline<br>
65
+
Enabling this option allows users to create a pipeline by cloning an existing pipeline. Cloning an existing pipelines also copies its triggers and associated parameters.
66
+
67
+
## Configure pipeline scopes
68
+
Define the account-level scopes for resources, inherited by all pipelines in the account, through full access, read/write access, or CRUD permissions. <!--- For a description of the available scopes, see [API scopes]({{site.baseurl}}/docs/administration/user-self-management/user-settings/#api-scopes). -->
Here you can define global template behavior. The options are:
79
+
>**TIP**:
80
+
As a Codefresh administrator, you can override the account-level scopes for a specific pipeline by [configuring custom scopes]({{site.baseurl}}/docs/pipelines/pipelines/#scopes). The custom scopes are inherited by all the builds for that pipeline.
42
81
43
-
* Enable [pipeline templates]({{site.baseurl}}/docs/pipelines/pipelines/#using-pipeline-templates) for users. If this is enabled some pipelines can be marked as templates and users can still select them when creating a new pipeline.
44
-
* Decide if users can clone an existing pipeline (along with its triggers and associated parameters) when [creating a new pipeline]({{site.baseurl}}/docs/pipelines/pipelines/#creating-a-pipeline).
45
82
46
-
Note that templates are simply pipelines “marked” as templates. There is no technical difference between templates and actual pipelines.
47
83
48
84
## Auto-create projects for teams
49
85
Enabled by default, auto-create projects for teams, automatically creates projects whenever you create teams in your account. It also creates access-control rules for the same team to projects and pipeline, simplifying setup and saving time.
@@ -128,7 +164,7 @@ You can then select specific clusters for individual pipelines, through the **Ku
128
164
129
165
130
166
131
-
## Pipeline YAML section
167
+
## Configure sources for pipeline YAMLs
132
168
133
169
Here you can restrict the sources of pipeline YAML that users can select. The options are:
Copy file name to clipboardExpand all lines: _docs/pipelines/pipelines.md
+43-14Lines changed: 43 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -415,7 +415,7 @@ max-width="60%"
415
415
> Track the actual disk usage in Builds > Metrics.
416
416
417
417
#### Set memory-usage threshold for pipeline build
418
-
If needed, select a memory-usage threshold for the pipeline build to override that set at the account level. Codefresh displays a banner when memory usage has exceeded the selected threshold.
418
+
If needed, select a memory-usage threshold for the pipeline build to override the account-level setting for the same. Codefresh displays a banner when memory usage has exceeded the selected threshold.
419
419
420
420
The global memory-usage threshold is set in **Pipeline Settings**, for all pipelines in the account.
421
421
You can override the memory-usage threshold for individual pipelines, depending on the resources needed for pipeline execution. For example, if the account-level memory usage is set at 90%, and the specific pipeline is resource-intensive, you want to be warned when the usage exceeds 70%, instead of 90%.
@@ -431,13 +431,30 @@ caption="Memory-usage thresholds for pipeline"
431
431
max-width="60%"
432
432
%}
433
433
434
+
### Scopes
435
+
If needed, Codefresh account administrators can override the scopes set at the account-level with custom scopes for ehe dividual pipeline. All the pipeline's builds inherit the custom scopes.
When enabled for the account, you can create a new pipeline from existing pipelines tagged as _Templates_.
450
+
To do so, you need to first convert existing pipelines to pipeline templates.
436
451
437
-
Codefresh also supports the creation of pipeline "templates", which are blueprints for creating new pipelines.
438
-
To enable the creation of pipelines from templates, first view global pipeline configuration in the [Codefresh UI](https://g.codefresh.io/account-admin/account-conf/pipeline-settings){:target="\_blank"} and toggle the *Enable Pipeline Templates* button.
452
+
### Create a pipeline template
453
+
Convert an existing pipeline into a pipeline template, by tagging it as such.
439
454
440
-
The easiest way to create a new template is by clicking the "3 dots menu" on the pipeline name:
455
+
1. In the Codefresh UI, from the sidebar, select **Pipelines** to view all your pipelines.
456
+
1. Select the pipeline to convert to a template.
457
+
1. From the sidebar, mouse over the pipeline name, and from the context menu, select **Create Template**.
441
458
442
459
{% include
443
460
image.html
@@ -449,7 +466,11 @@ caption="Create template from pipeline"
449
466
max-width="30%"
450
467
%}
451
468
452
-
From the dialog you can select if you want to copy this pipeline as a brand new template, or simply convert the pipeline itself to a template:
469
+
{:start="4"}
470
+
1. Do one of the following:
471
+
* To convert the pipeline to a pipeline template, select **Convert the pipeline itself to a template**.
472
+
* To create a copy of the pipeline and convert the copy into a pipeline template, select **Copy this pipeline to a pipeline template**.
Once the template is created, you can edit it like any other pipeline. Pipeline templates are marked with the `template` tag and also have a special mark in the pipeline menu:
485
+
In the Pipelines page, pipeline templates are marked **TEMPLATES**. On selecting a pipeline, pipeline templates in the sidebar are prefixed with a dot.
465
486
466
487
{% include
467
488
image.html
@@ -473,21 +494,29 @@ caption="Identify pipelines used as templates"
473
494
max-width="90%"
474
495
%}
475
496
497
+
498
+
499
+
500
+
### Create a pipeline from a pipeline template
476
501
Now when you create a new pipeline, you can also select which pipeline template will be used as an initial pipeline definition:
477
502
503
+
>**NOTE**:
504
+
Selecting a pipeline template, applies the template's settings when the pipeline is created. Subsequent changes to the pipeline template _do not_ impact pipelines already created from that template.
505
+
478
506
{% include
479
507
image.html
480
508
lightbox="true"
481
509
file="/images/pipeline/create/use-template.png"
482
510
url="/images/pipeline/create/use-template.png"
483
-
alt="Using a template"
484
-
caption="Using a template"
511
+
alt="Create pipeline from a pipeline template"
512
+
caption="Create pipeline from a pipeline template"
485
513
max-width="70%"
486
514
%}
487
515
488
-
>Notice that templates only take effect during pipeline creation. Changing a template afterwards, has no effect on pipelines that are already created from it.
516
+
>**TIP**:
517
+
You can also quickly convert a pipeline to a template, in the General tab of the pipeline's settings.
518
+
489
519
490
-
You can also quickly convert a pipeline to a template, by visiting the pipeline settings and clicking the *template* button under the *General* tab.
491
520
492
521
493
522
## Pipelines that do not belong to any project
@@ -511,8 +540,8 @@ Pipelines that belong to a project will mention it below their name so it is ver
0 commit comments