References
Attribute Reference Tables
The parser is sensitive to float ambiguity when the attribute expects a value of type string . To remove this ambiguity, you must write id: "3.10" instead of id: 3.10 . This concerns all attributes of type string .
|
Common Attributes Table
The following attributes are common to jobs, apps.
Attribute | Description | Default value | ||
---|---|---|---|---|
|
The version of the file format.
|
none |
||
|
The unique identifier of the technology in the repository. |
none |
||
|
The name of the technology as it will appear in the user interface. |
none |
||
|
The description of the technology as it will appear in the user interface. |
none |
||
|
Makes the technology unusable when the answer is |
|
||
|
Indicates whether it is a job or an app.
|
none |
||
|
The name of the icon as it appears in the Saagie Design System.
|
none |
||
|
The path of the technology icon file included in the associated technology subdirectory.
|
none |
||
|
Defines the different versions or features of the technology. |
none |
||
|
The context’s unique identifier of your technology. |
none |
||
|
The name of the context as it will appear in the user interface. |
none |
||
|
The description of the context as it will appear in the user interface. Example 1. Multiline file description
|
none |
||
|
Makes the context unusable when the answer is
|
|
||
|
Labels the context as Recommended when the response is
|
|
||
|
Informs that the context is not stable when the response is
|
none |
||
|
Informs that the context is deprecated when a depreciation date is specified. The value must be a past date with the format Leave the attribute value empty if the technology is not deprecated.
|
none |
If you encounter problems with one of these fields, contact Saagie Support. |
When defining a value on the available
, recommended
, trustlevel
, and deprecationDate
attributes, the rules for the technology’s status that appears in the user interface (UI) are as follows:
-
If you set
available: false
, then the technology will appear as Disabled in the UI, regardless of the value of thetrustlevel
anddeprecationDate
attributes. -
If you set only
available: true
, then no specific label will be displayed next to the technology in the UI. -
If you set
available: true
in addition of:-
deprecationDate: "2021-06-19T10:30:50Z"
, then the technology will appear as Deprecated in the UI, regardless of the value of thetrustLevel
attribute. -
trustLevel: experimental
, then the technology will appear as Experimental in the UI. -
trustLevel: stable
, then the technology will appear as Stable in the UI.
-
-
If you set
recommended: true
in addition to the above rules, then the technology will also appear as Recommended in the UI.
Type-Specific Attribute Tables
The following attributes apply to jobs only.
Attribute | Description | Default value | ||
---|---|---|---|---|
|
The recommended CPU limit and request.
|
|
||
|
The recommended memory limit and request in
|
|
||
|
The list of the features available in the job creation form. |
none |
||
|
Information about the Docker image of a technology. |
none |
||
|
The Docker image name of the technology. |
none |
||
|
The Docker image version (or tag). |
|
||
|
The recommended CPU limit and request.
|
|
||
|
The recommended memory limit and request in
|
|
Jobs have at least one context that contains its own list of features. In each context, there can be several features, but only one of each type.
A feature is defined by the following values:
Attribute | Description | Possible values |
---|---|---|
|
Defines the feature type. |
|
|
Information displayed next to a field. |
Character string |
|
Indicates whether if a field is required or not. |
|
|
Information that appears next to a field and provides examples of how to complete that field. |
Character string |
|
Example of a field’s default value. |
Character string |
The following attributes apply to apps only.
Attribute | Description | Default value | ||
---|---|---|---|---|
|
The recommended CPU limit and request.
|
|
||
|
The recommended memory limit and request in
|
|
||
|
The basic description of the application. |
none |
||
|
The background color for the app card in the user interface. |
none |
||
|
The context release notes. |
none |
||
|
Information about the Docker image of a technology. |
none |
||
|
The Docker image name of the technology. |
none |
||
|
The Docker image version (or tag). |
|
||
|
The list of available open ports for a Docker container. |
none |
||
|
The port number. |
none |
||
|
The port label, with a description of its use. |
none |
||
|
The name of the environment variable that will contain the URL generated by Saagie. |
none |
||
|
The list of Docker volume paths used by the application. |
none |
||
|
The volume path.
|
none |
||
|
The recommended CPU limit and request.
|
|
||
|
The recommended memory limit and request in
|
|
||
|
The path to the repository of the technology |
none |
- Job technology
-
Example for Java/Scala
8
,11
, and13
.metadata.yamlversion: "v1" type: JOB id: java-scala label: Java/Scala available: true icon: java-scala contexts: - id: 11 label: 11 available: true recommended: true dockerInfo: image: saagie/java-scala version: 11-1.10.0_merge_certified_experimental trustLevel: "stable" job: features: - type: COMMAND_LINE label: "Command line" mandatory: true comment: "Linux shell command to launch the job." defaultValue: java -jar {file} arg1 arg2 - type: ARTIFACT label: "Package" mandatory: true comment: "Compatible upload file : .jar" - type: SCHEDULER label: "Scheduled" mandatory: true - id: 13 label: 13 available: true recommended: false dockerInfo: image: saagie/java-scala version: 13-1.10.0_merge_certified_experimental trustLevel: "experimental" job: features: - type: COMMAND_LINE label: "Command line" mandatory: true comment: "Linux shell command to launch the job." defaultValue: java -jar {file} arg1 arg2 - type: ARTIFACT label: "Package" mandatory: true comment: "Compatible upload file : .jar" - type: SCHEDULER label: "Scheduled" mandatory: true - id: 8 label: 8 available: true recommended: false dockerInfo: image: saagie/java-scala version: 8-1.10.0_merge_certified_experimental trustLevel: "stable" job: features: - type: COMMAND_LINE label: "Command line" mandatory: true comment: "Linux shell command to launch the job." defaultValue: java -jar {file} arg1 arg2 - type: ARTIFACT label: "Package" mandatory: true comment: "Compatible upload file : .jar" - type: SCHEDULER label: "Scheduled" mandatory: true
- App technology
-
Example for Jupyter Notebook.
metadata.yamlversion: v1 type: APP id: jupyter-doc label: Jupyter Notebook baseline: Data Science Notebook backgroundColor: "#E87A35" description: "The Jupyter Notebook is an open-source web application..." available: true icon: jupyter customFlags: [] contexts: - id: "6.1.1" label: Jupyter Notebook releaseNotes: "Prevent inclusion of requests_unixsocket on Windows" available: true trustLevel: stable dockerInfo: image: saagie/jupyter-python-nbk version: v2 ports: - port: 8888 name: Notebook rewriteUrl: false basePath: SAAGIE_BASE_PATH volumes: ["/notebooks-dir"]