-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix documentation to include examples
- Loading branch information
Showing
13 changed files
with
108 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,25 @@ description: |- | |
|
||
Sandbox allocation unit | ||
|
||
|
||
## Example Usage | ||
|
||
```terraform | ||
resource "kypo_sandbox_definition" "example" { | ||
url = "[email protected]:muni-kypo-trainings/games/junior-hacker.git" | ||
rev = "master" | ||
} | ||
resource "kypo_sandbox_pool" "example" { | ||
definition = { | ||
id = kypo_sandbox_definition.example.id | ||
} | ||
max_size = 1 | ||
} | ||
resource "kypo_sandbox_allocation_unit" "example" { | ||
pool_id = kypo_sandbox_pool.example.id | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,14 @@ description: |- | |
|
||
Sandbox definition | ||
|
||
|
||
## Example Usage | ||
|
||
```terraform | ||
resource "kypo_sandbox_definition" "example" { | ||
url = "[email protected]:muni-kypo-trainings/games/junior-hacker.git" | ||
rev = "master" | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,21 @@ description: |- | |
|
||
Sandbox pool | ||
|
||
|
||
## Example Usage | ||
|
||
```terraform | ||
resource "kypo_sandbox_definition" "example" { | ||
url = "[email protected]:muni-kypo-trainings/games/junior-hacker.git" | ||
rev = "master" | ||
} | ||
resource "kypo_sandbox_pool" "example" { | ||
definition = { | ||
id = kypo_sandbox_definition.example.id | ||
} | ||
max_size = 2 | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
resource "kypo_training_definition" "example" { | ||
content = jsonencode( | ||
{ | ||
title = "test" | ||
description = null | ||
state = "UNRELEASED" | ||
show_stepper_bar = true | ||
variant_sandboxes = false | ||
estimated_duration = 0 | ||
levels = [] | ||
outcomes = [] | ||
prerequisites = [] | ||
} | ||
) | ||
} |
14 changes: 14 additions & 0 deletions
14
examples/resources/kypo_training_definition_adaptive/resource.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
resource "kypo_training_definition_adaptive" "example" { | ||
content = jsonencode( | ||
{ | ||
title = "test" | ||
description = null | ||
state = "UNRELEASED" | ||
show_stepper_bar = true | ||
estimated_duration = 0 | ||
outcomes = [] | ||
phases = [] | ||
prerequisites = [] | ||
} | ||
) | ||
} |
This file was deleted.
Oops, something went wrong.
14 changes: 0 additions & 14 deletions
14
examples/resources/training_definition_adaptive/resource.tf
This file was deleted.
Oops, something went wrong.