Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
1105 Внедрение механизмов обеспечения безопасности цепочки поставки программных проектов
Legacy
scanned-projects
helm
Commits
fc8b11c5
Commit
fc8b11c5
authored
9 years ago
by
Brendan Melville
Browse files
Options
Download
Patches
Plain Diff
Revert "Adding information about external templates in design.md"
This reverts commit
5b2731db
.
parent
ca8898be
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/design/design.md
+1
-30
docs/design/design.md
with
1 addition
and
30 deletions
+1
-30
docs/design/design.md
+
1
−
30
View file @
fc8b11c5
...
@@ -155,12 +155,7 @@ passing configuration to Deployment Manager.
...
@@ -155,12 +155,7 @@ passing configuration to Deployment Manager.
### Instantiating Templates
### Instantiating Templates
Templates can be instantiated in the same way that a configurable resource is
Templates can be instantiated in the same way that a configurable resource is
used. They can be used in two different ways, either passed to the API as an
used, but must be imported and included as part of the configuration.
imported file, or used from a public HTTP endpoint.
#### Imported Templates
Templates may be imported as part of the target configuration and used
directly, for example:
```
```
imports:
imports:
...
@@ -177,30 +172,6 @@ The _imports_ list is not understood by the Deployment Manager service, but is a
...
@@ -177,30 +172,6 @@ The _imports_ list is not understood by the Deployment Manager service, but is a
directive to client-side tooling to specify what additional files should be
directive to client-side tooling to specify what additional files should be
included when passing a configuration to the API.
included when passing a configuration to the API.
Using the Deployment Manager API, these templates can be included in the
imports section of the _targetConfig_.
#### External Templates
Templates may also be used from a public HTTP endpoint, for example:
```
resources:
- name: example
type: https://raw.githubusercontent.com/example/example.py
properties:
prop1: prop-value
```
The service will process external templates as follows:
1.
fetch the external template as an import
1.
attempt to fetch the schema for the template, using
_
<full
template
path
>
.schema_ as the schema path
1.
repeat for any sub-imports found in the schema file
When fetching schema files and sub-imports, the base path of the external
template is used for relative paths.
## API Model
## API Model
Deployment Manager exposes a set of RESTful collections over HTTP/JSON.
Deployment Manager exposes a set of RESTful collections over HTTP/JSON.
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets