Skip to content

Commit adc5e27

Browse files
committed
Add documentation for load restrictor
PR kbst#101 added the ability to set load restrictor to `"none"` This adds documentation for that change
1 parent 1090145 commit adc5e27

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

docs/data-sources/build.md

+9
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ Data source to `kustomize build` a Kustomization and return a set of `ids` and h
99
```hcl
1010
data "kustomization_build" "test" {
1111
path = "test_kustomizations/basic/initial"
12+
kustomize_options = {
13+
load_restrictor = "none"
14+
}
1215
}
1316
1417
```
@@ -17,6 +20,12 @@ data "kustomization_build" "test" {
1720

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

23+
### `kustomize_options` - (optional)
24+
25+
#### Child attributes
26+
27+
- `load_restrictor` - setting this to `"none"` disables load restrictions
28+
2029
## Attribute Reference
2130

2231
- `ids` - Set of Kustomize resource IDs.

docs/data-sources/overlay.md

+19
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ data "kustomization_overlay" "example" {
5151
"path/to/kustomization/to/inherit/from",
5252
"path/to/kubernetes/resource.yaml",
5353
]
54+
kustomize_options = {
55+
load_restrictor = "none"
56+
}
5457
}
5558
5659
```
@@ -261,6 +264,22 @@ data "kustomization_overlay" "example" {
261264
}
262265
```
263266

267+
### `kustomize_options` - (optional)
268+
269+
#### Child attributes
270+
271+
- `load_restrictor` - setting this to `"none"` disables load restrictions
272+
273+
#### Example
274+
275+
```hcl
276+
data "kustomization_overlay" "example" {
277+
kustomize_options = {
278+
load_restrictor = "none"
279+
}
280+
}
281+
```
282+
264283
### `name_prefix` - (optional)
265284

266285
Set a prefix to add to all resource names.

0 commit comments

Comments
 (0)