Skip to content

Commit c4e5b00

Browse files
committed
Update resource-hook.md
1 parent 423258b commit c4e5b00

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

docs/software/container-engine/resource-hook.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -33,25 +33,25 @@ This can be done in multiple ways in TOML: for example, both of the following us
3333

3434
* Attributes can be added to a table only in one place in the TOML file. In other words, each table must be defined in a single square bracket section. For example, Case 3 in the example below is invalid because the `ssh` table was doubly defined both in the `[annotations]` and in the `[annotations.com.hooks.ssh]` sections. See the [TOML format](https://toml.io/en/) spec for more details.
3535

36-
```bash title="Valid"
37-
[annotations.com.hooks.ssh]
38-
authorize_ssh_key = "/capstor/scratch/cscs/<username>/tests/edf/authorized_keys"
39-
enabled = "true"
40-
```
41-
42-
```bash title="Valid"
43-
[annotations]
44-
com.hooks.ssh.authorize_ssh_key = "/capstor/scratch/cscs/<username>/tests/edf/authorized_keys"
45-
com.hooks.ssh.enabled = "true"
46-
```
47-
48-
```{.text .error}
49-
[annotations]
50-
com.hooks.ssh.authorize_ssh_key = "/capstor/scratch/cscs/<username>/tests/edf/authorized_keys"
51-
52-
[annotations.com.hooks.ssh]
53-
enabled = "true"
54-
```
36+
```bash title=":white-checker-mark: Valid"
37+
[annotations.com.hooks.ssh]
38+
authorize_ssh_key = "/capstor/scratch/cscs/<username>/tests/edf/authorized_keys"
39+
enabled = "true"
40+
```
41+
42+
```bash title=":white-checker-mark: Valid"
43+
[annotations]
44+
com.hooks.ssh.authorize_ssh_key = "/capstor/scratch/cscs/<username>/tests/edf/authorized_keys"
45+
com.hooks.ssh.enabled = "true"
46+
```
47+
48+
```bash title=":x: Invalid"
49+
[annotations]
50+
com.hooks.ssh.authorize_ssh_key = "/capstor/scratch/cscs/<username>/tests/edf/authorized_keys"
51+
52+
[annotations.com.hooks.ssh]
53+
enabled = "true"
54+
```
5555

5656
## Accessing native resources
5757

0 commit comments

Comments
 (0)