Skip to content

Commit

Permalink
simplify provider heuristics
Browse files Browse the repository at this point in the history
  • Loading branch information
joshrwolf committed Dec 22, 2023
1 parent 393a1fe commit 501982e
Show file tree
Hide file tree
Showing 36 changed files with 1,697 additions and 1,113 deletions.
34 changes: 0 additions & 34 deletions docs/resources/env.md

This file was deleted.

42 changes: 28 additions & 14 deletions docs/resources/feature.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,38 +17,52 @@ Example resource

### Required

- `name` (String)
- `name` (String) The name of the feature

### Optional

- `assert` (List of Object) (see [below for nested schema](#nestedatt--assert))
- `description` (String)
- `setup` (List of Object) (see [below for nested schema](#nestedatt--setup))
- `teardown` (List of Object) (see [below for nested schema](#nestedatt--teardown))
- `after` (Attributes List) Actions to run againast the harness after the core steps have run OR after a step has failed. (see [below for nested schema](#nestedatt--after))
- `before` (Attributes List) Actions to run against the harness before the core feature steps. (see [below for nested schema](#nestedatt--before))
- `description` (String) A descriptor of the feature
- `harness` (String) The ID of the test harness to use for the feature
- `labels` (Map of String) A set of labels used to optionally filter execution of the feature
- `steps` (Attributes List) Actions to run against the harness. (see [below for nested schema](#nestedatt--steps))

### Read-Only

- `id` (String) The ID of this resource.

<a id="nestedatt--assert"></a>
### Nested Schema for `assert`
<a id="nestedatt--after"></a>
### Nested Schema for `after`

Optional:
Required:

- `cmd` (String)

Optional:

<a id="nestedatt--setup"></a>
### Nested Schema for `setup`
- `name` (String)

Optional:

- `cmd` (String)
<a id="nestedatt--before"></a>
### Nested Schema for `before`

Required:

<a id="nestedatt--teardown"></a>
### Nested Schema for `teardown`
- `cmd` (String)

Optional:

- `name` (String)


<a id="nestedatt--steps"></a>
### Nested Schema for `steps`

Required:

- `cmd` (String)

Optional:

- `name` (String)
35 changes: 35 additions & 0 deletions docs/resources/harness_container.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "imagetest_harness_container Resource - terraform-provider-imagetest"
subcategory: ""
description: |-
A harness that runs steps in a sandbox container.
---

# imagetest_harness_container (Resource)

A harness that runs steps in a sandbox container.



<!-- schema generated by tfplugindocs -->
## Schema

### Optional

- `envs` (Map of String) Environment variables to set on the container.
- `image` (String) The full image reference to use for the k3s container.
- `mounts` (Attributes List) The list of mounts to create on the container. (see [below for nested schema](#nestedatt--mounts))
- `privileged` (Boolean)

### Read-Only

- `id` (String) The ID of this resource.

<a id="nestedatt--mounts"></a>
### Nested Schema for `mounts`

Required:

- `destination` (String) The absolute path on the container to mount the source directory to.
- `source` (String) The relative or absolute path on the host to the source directory to mount.
13 changes: 7 additions & 6 deletions docs/resources/harness_k3s.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
page_title: "imagetest_harness_k3s Resource - terraform-provider-imagetest"
subcategory: ""
description: |-
Example resource
A harness that runs steps in a sandbox container networked to a running k3s cluster.
---

# imagetest_harness_k3s (Resource)

Example resource
A harness that runs steps in a sandbox container networked to a running k3s cluster.



Expand All @@ -17,10 +17,11 @@ Example resource

### Optional

- `disable_cni` (Boolean)
- `disable_metrics_server` (Boolean)
- `disable_traefik` (Boolean)
- `disable_cni` (Boolean) When true, the builtin (flannel) CNI will be disabled.
- `disable_metrics_server` (Boolean) When true, the builtin metrics server will be disabled.
- `disable_traefik` (Boolean) When true, the builtin traefik ingress controller will be disabled.
- `image` (String) The full image reference to use for the k3s container.

### Read-Only

- `id` (String) Example identifier
- `id` (String) The ID of this resource.
20 changes: 0 additions & 20 deletions docs/resources/harness_null.md

This file was deleted.

6 changes: 3 additions & 3 deletions docs/resources/harness_teardown.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
page_title: "imagetest_harness_teardown Resource - terraform-provider-imagetest"
subcategory: ""
description: |-
Example resource
A teardown signal used to destroy the provided harness after all referenced Features have completed.
---

# imagetest_harness_teardown (Resource)

Example resource
A teardown signal used to destroy the provided harness after all referenced Features have completed.



Expand All @@ -17,4 +17,4 @@ Example resource

### Required

- `harness` (String)
- `harness` (String) The id of the harness to teardown.
29 changes: 0 additions & 29 deletions examples/resources/basic/main.tf

This file was deleted.

49 changes: 0 additions & 49 deletions examples/resources/k3s/main.tf

This file was deleted.

42 changes: 0 additions & 42 deletions examples/resources/labels/main.tf

This file was deleted.

Loading

0 comments on commit 501982e

Please sign in to comment.