Skip to content

Commit

Permalink
removed properties from score spec (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
rachfop committed Jul 24, 2023
2 parents 4732257 + 0fdbd7e commit 73a44a9
Show file tree
Hide file tree
Showing 15 changed files with 6 additions and 369 deletions.
19 changes: 0 additions & 19 deletions content/en/docs/dependencies/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,23 +30,8 @@ containers:
resources:
env:
type: environment
properties:
NAME:
type: string
default: World
db:
type: postgres
properties:
host:
default: localhost
port:
default: 5432
name:
default: postgres
user:
secret: true
password:
secret: true
service-b:
type: workload
```
Expand All @@ -70,10 +55,6 @@ containers:
resources:
env:
type: environment
properties:
NAME:
type: string
default: World
```

To prepare the Docker Compose configuration files, convert both Score files with `score-compose`.
Expand Down
15 changes: 0 additions & 15 deletions content/en/docs/dependencies/dependencies-humanitec.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,25 +43,10 @@ containers:
resources:
db:
type: postgres
properties:
host:
default: localhost
port:
default: 5432
name:
default: postgres
user:
secret: true
password:
secret: true
dns:
type: dns
properties:
domain:
backend:
type: workload
properties:
name:
```
This example also uses an extensions file, called `humanitec.yaml`, that contains additional hints for `score-humanitec` CLI tool. This information would help the CLI tool to resolve the resources properly.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,6 @@ containers:
resources:
env:
type: environment
properties:
NAME:
type: string
default: World
```
Use the `run` command to generate a Docker Compose file from Score.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@ containers:
resources:
env:
type: environment
properties:
NAME:
type: string
default: World
```
{{% alert %}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,6 @@ containers:
resources:
env:
type: environment
properties:
NAME:
type: string
default: World
```
{{% alert %}}
Expand Down
6 changes: 0 additions & 6 deletions content/en/docs/extensions/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,8 @@ containers:
resources:
dns:
type: dns
properties:
domain:
...
api-route:
type: route
properties:
prefix:
...
```
## Humanitec Workload implementation
Expand Down
5 changes: 0 additions & 5 deletions content/en/docs/extensions/implement-ports-volumes.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,6 @@ containers:
resources:
env:
type: environment
properties:
MESSAGE:
type: string
DATADOG_ENV:
type: string
dns:
type: dns
```
Expand Down
44 changes: 0 additions & 44 deletions content/en/docs/get started/Transform/_index.md

This file was deleted.

88 changes: 0 additions & 88 deletions content/en/docs/get started/Transform/docker.md

This file was deleted.

19 changes: 0 additions & 19 deletions content/en/docs/get started/Transform/helm.md

This file was deleted.

74 changes: 0 additions & 74 deletions content/en/docs/get started/Transform/humanitec.md

This file was deleted.

12 changes: 0 additions & 12 deletions content/en/docs/reference/score-cli/errors.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,6 @@ containers:
resources:
env:
type: environment
properties:
NAME:
type: string
default: World
```

In the previous code snippet, the `variables` parameter is adjusted too far left. It should be aligned with the `image`, `command`, and `args` parameters.
Expand All @@ -113,10 +109,6 @@ containers:
resources:
env:
type: environment
properties:
NAME:
type: string
default: World
```

Alternatively, you could have the map of the variables set incorrectly.
Expand All @@ -140,10 +132,6 @@ containers:
resources:
env:
type: environment
properties:
NAME:
type: string
default: World
```

The `FRIEND` parameter is set to `resources.friend.NAME`, but that is not a valid path in the `resources` section.
Loading

0 comments on commit 73a44a9

Please sign in to comment.