Skip to content

Commit

Permalink
Merge pull request #120 from willthames/load-restrictor-docs
Browse files Browse the repository at this point in the history
Add documentation for load restrictor
  • Loading branch information
pst authored Sep 30, 2021
2 parents 01d5bff + adc5e27 commit 64446a3
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/data-sources/build.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ Data source to `kustomize build` a Kustomization and return a set of `ids` and h
```hcl
data "kustomization_build" "test" {
path = "test_kustomizations/basic/initial"
kustomize_options = {
load_restrictor = "none"
}
}
```
Expand All @@ -17,6 +20,12 @@ data "kustomization_build" "test" {

- `path` - (Required) Path to a kustomization directory.

### `kustomize_options` - (optional)

#### Child attributes

- `load_restrictor` - setting this to `"none"` disables load restrictions

## Attribute Reference

- `ids` - Set of Kustomize resource IDs.
Expand Down
19 changes: 19 additions & 0 deletions docs/data-sources/overlay.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ data "kustomization_overlay" "example" {
"path/to/kustomization/to/inherit/from",
"path/to/kubernetes/resource.yaml",
]
kustomize_options = {
load_restrictor = "none"
}
}
```
Expand Down Expand Up @@ -261,6 +264,22 @@ data "kustomization_overlay" "example" {
}
```

### `kustomize_options` - (optional)

#### Child attributes

- `load_restrictor` - setting this to `"none"` disables load restrictions

#### Example

```hcl
data "kustomization_overlay" "example" {
kustomize_options = {
load_restrictor = "none"
}
}
```

### `name_prefix` - (optional)

Set a prefix to add to all resource names.
Expand Down

0 comments on commit 64446a3

Please sign in to comment.