Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
updated some fields to the pipeline spec
  • Loading branch information
ThatAmatoGuy committed Sep 17, 2024
commit e671f8ceca2f359d26e98d5786be416e712f40c0
56 changes: 19 additions & 37 deletions _docs/pipelines/specifications.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,65 +10,61 @@ toc: true
## .version

{: .table .table-bordered .table-hover}

| Field | Description | Type | Required/Optional |
| -------------- | ---------------------------- |-----------| -------------------------|
| `.version` | The version of the pipeline schema and is always set to `1.0`. | string | ?? |
| `.version` | The version of the pipeline schema and is always set to `'1.0'`. | string | Required |

## .kind

{: .table .table-bordered .table-hover}

| Field | Description | Type | Required/Optional |
| -------------- | ---------------------------- |-----------| -------------------------|
| `.kind` | The kind object type for the schema and is always set to `pipeline`. | string | ?? |
| `.kind` | The kind object type for the schema and is always set to `pipeline`. | string | Required |

## .metadata

{: .table .table-bordered .table-hover}

| Field | Description | Type | Required/Optional |
| -------------- | ---------------------------- |-----------| -------------------------|
| `metadata.id` | The ID of the pipeline. | string | `????'` |
| `metadata.id` | The ID of the pipeline. | string | Optional |
| `metadata.name` | The full path to the pipeline, including the name of the project to which the pipeline belongs, in the format `project_name/pipeline_name`. | string | Required |
| `metadata.shortName` | The name of the pipeline ???. | string | Optional |
| `metadata.revision` | The ???. | integer | Optional |
| `metadata.isPublic ` | Determines if public logs are enabled or disabled for the pipeline. By default, public logs are disabled.<br>When set to `true`, clicking the build badge allows all users with access to the pipeline to also view the build logs, even if they are not logged into Codefresh. See [Public build logs]({{site.baseurl}}//docs/pipelines/configuration/build-status/#public-build-logs).| boolean | Optional |
| `metadata.isPublic` | Determines if public logs are enabled or disabled for the pipeline. By default, public logs are disabled.<br>When set to `true`, clicking the build badge allows all users with access to the pipeline to also view the build logs, even if they are not logged into Codefresh. See [Public build logs]({{site.baseurl}}//docs/pipelines/configuration/build-status/#public-build-logs).| boolean | Optional |
| `metadata.description` | A meaningful description of the pipeline. (NIMA: is there a a max limit) | string | Optional |
| `metadata.labels` | The parent object for `metadata.labelKeys` defining the `tags` assigned to the pipeline. ???? | object | Optional |
| `metadata.labelKeys` | The tags ????/ is this the same as `tags`? A list of [access control tags]({{site.baseurl}}/docs/administration/account-user-management/access-control/#marking-pipelines-with-policy-attributes) for this pipeline | | string | Optional |
| `metadata.labelKeys` | The tags ????/ is this the same as `tags`? A list of [access control tags]({{site.baseurl}}/docs/administration/account-user-management/access-control/#marking-pipelines-with-policy-attributes) for this pipeline | string | Optional |
| `metadata.created_at` | The date and time at which the pipeline was created in the format ????/ | date | Optional |
| `metadata.updated_at` | The date and time at which the pipeline YAML was updated, in the format ????/ | date | Optional |
| `metadata.accountId` | The ID of the account to which the pipeline belongs. ????/ | obejctId | Optional |
| `metadata.originalYamlString` | ?????the full contents of the pipeline editor. Only kept for archival purposes | string | Optional |
| `metadata.projectId` | The ID of the project to which the pipeline belongs. | obejctId | Optional |
| `metadata.project` | The name of the project to which the pipeline belongs. | string | Optional |
| `metadata.template ` | ????Determines if the pipeline is available as a template when creating a new pipeline. <br>When set to `true`, the pipeline name is displayed in the Pipeline Template list. | boolean | Optional |
| `metadata.template` | ????Determines if the pipeline is available as a template when creating a new pipeline. <br>When set to `true`, the pipeline name is displayed in the Pipeline Template list. | boolean | Optional |
| `metadata.template.isTemplate` | When set to `true`, the pipeline name is displayed in the Pipeline Template list. | boolean | Optional |
| `metadata.template.generatedFrom` |????? When set to `true`, the pipeline name is displayed in the Pipeline Template list. | boolean | Optional |
| `metadata.executionContextId` | ???The ID of the specific execution context to use for the pipeline to makes API calls to the pipeline.<br>If there are no execution contexts created for the pipeline, the default execution context is used. (NIMA: is this the CF provided one? what are the implications - that it allows all API calls or minimal ones?).<br>See [Pipeline execution context]({{site.baseurl}}/docs/administration/account-user-management/pipeline-execution-context/). | string | Required???? |









| `metadata.executionContextId` | ???The ID of the specific execution context to use for the pipeline to makes API calls to the pipeline.<br>If there are no execution contexts created for the pipeline, the default execution context is used. (NIMA: is this the CF provided one? what are the implications - that it allows all API calls or minimal ones?).<br>See [Pipeline execution context]({{site.baseurl}}/docs/administration/account-user-management/pipeline-execution-context/). | string | Optional |

## .spec

{: .table .table-bordered .table-hover}

| Field | Description | Type | Required/Optional |
| -------------- | ---------------------------- |-----------| -------------------------|
| `spec.scopes` | ??? | string | `????'` |
| `spec.scopeSnapshot` | The ID of the pipeline. | string | `????'` |
| `spec.scopes` | ??? | string | Optional |
| `spec.scopeSnapshot` | The ID of the pipeline. | string | Optional |
| `spec.permitRestartFromFailedSteps` | Determines if users can restart a failed pipeline from the failed step, instead of from the beginning of the pipeline.<br>When set to `true`, users can restart the pipeline from the failed step. <br>See [Restarting a failed pipeline]({{site.baseurl}}/docs/pipelines/monitoring-pipelines/#restarting-the-pipeline).| boolean | Optional |
| `spec.build_version` | ??? | string | Optional |
| `spec.triggers` | The list of Git triggers defined for the pipeline. For details, see [`spec.triggers](#spectriggers). | array | ??? |
| `spec.cronTriggers` | The list of Cron or timer-based triggers defined for the pipeline. For details, see [`spec.cronTriggers](#speccrontriggers). | array | `????'` |
| `spec.runtimeEnvironment` | The runtime environment selected for the pipeline and its configuration settings such as memory and CPU. For details, see [`spec.runtimeEnvironments](#specruntimeenvironment). | object | Optional?? |
| `spec.triggers` | The list of Git triggers defined for the pipeline. For details, see [`spec.triggers](#spectriggers). | array | Optional |
| `spec.cronTriggers` | The list of Cron or timer-based triggers defined for the pipeline. For details, see [`spec.cronTriggers](#speccrontriggers). | array | Optional |
| `spec.runtimeEnvironment` | The runtime environment selected for the pipeline and its configuration settings such as memory and CPU. For details, see [`spec.runtimeEnvironments](#specruntimeenvironment). | object | Optional |
| `spec.lowMemoryWarningThreshold` | The memory-usage threshold for the pipelines build exceeding which to display banner alerts. Useful to get timely warnings and prevent build failures. <br>Can be one of the following:{::nomarkdown}<ul><li><b>WARNING</b>: Displays a banner when memory usage exceeds 70% of the available memory. </li><li><b>CRITICAL</b>: Displays a banner when memory usage exceeds 90% of the available memory. </li><li><b>REACHED_LIMIT</b>: Displays a banner when memory usage exceeds 100% of the available memory. Setting this threshold means that the pipeline build has already failed when the banner is displayed.</li> {:/}See also [Set memory usage threshold for pipeline build]({{site.baseurl}}/docs/pipelines/pipelines/#set-memory-usage-threshold-for-pipeline-build).| string | Optional|
| `spec.packId` | ??? | string | `????'` |
| `spec.packId` | SAAS Only (`5cd1746617313f468d669013` for Small, `5cd1746717313f468d669014` for Medium, `5cd1746817313f468d669015` for Large, `5cd1746817313f468d669017` for XL, `5cd1746817313f468d669018` for XXL, `5cd1746817313f468d669020` for 4XL) | string | Required for SAAS<br />Optional for Hybrid |
| `spec.requiredAvailableStorage` | ???The minimum disk space for the pipeline’s build volume. <br> When defined, Codefresh assigns either a cached disk with sufficient disk space or a new empty disk at the start of the build. Otherwise, only the space not allocated for caching is available for the build volume. <br>See [Set minimum disk space for a pipeline build]({{site.baseurl}}/docs/pipelines/pipelines/#set-minimum-disk-space-for-a-pipeline-build). (NIMA: is there a default min and max? is it the same as the UI?) | string | Optional |
| `spec.contexts` | ?? The The ID of the pipeline. | string | `????'` |
| `spec.contexts` | A list of strings representing the names of that [shared configuration]({{site.baseurl}}/docs/pipelines/configuration/shared-configuration/) to be added to the pipeline | Array of strings | Optional |
| `spec.clustersInfo` | Determines if all (`injectAll`) or specific (`clusters`) Kubernetes cluster contexts are available for the pipeline build.<br>See [Select Kubernetes cluster contexts]({{site.baseurl}}/docs/pipelines/pipelines/#select-kubernetes-cluster-contexts). | object | Optional |
| `spec.clustersInfo.injectAll` | When set as `true` (NIMA is this the default?), injects all clusters integrated with Codefresh into the pipeline build. | boolean | Optional |
| `spec.clustersInfo.clusters` | Applicable only when `injectAll`is set to `false`.<br>One or more comma-separated names of clusters to inject during the pipeline build. For example, `aws`, `eks-prod`. | array | Optional |
Expand All @@ -93,36 +89,22 @@ toc: true
| `spec.debug` | The ID of the pipeline. | string | `????'` |
| `spec.serviceAccount` | The ID of the pipeline. | string | `????'` |





### spec.triggers


### spec.triggers.events


### spec.cronTriggers

### spec.runtimeEnvironment

### spec.lowMemoryWarningThreshold


### spec.requiredAvailableStorage

### spec.clustersInfo

### spec.variables


### spec.specTemplate


### spec.debug.steps