You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. Build the plugin binary (only needed once or to update the plugin):
17
49
```bash
18
50
make build
19
51
```
20
52
**NOTE:** This will default to placing the binary in`${HOME}/.config/kustomize/plugin/`. You can change this by exporting `KUSTOMIZE_PLUGIN_HOME` to a different path.
21
53
22
-
2. Create a `kustomization.yaml` file that points to `PolicyGenerator` manifest(s), with any additional desired patches or customizations (see [`examples/policyGenerator.yaml`](./examples/policyGenerator.yaml) for an example):
54
+
#### Configuration
55
+
56
+
1. Create a `kustomization.yaml` file that points to `PolicyGenerator` manifest(s), with any additional desired patches or customizations (see [`examples/policyGenerator.yaml`](./examples/policyGenerator.yaml) for an example):
23
57
```yaml
24
58
generators:
25
59
- path/to/generator/file.yaml
26
60
...
27
61
```
28
62
- To read more about the `PolicyGenerator` YAML, see [About the PolicyGenerator plugin](./docs/policygenerator.md)
29
63
30
-
3. To use the plugin to generate policies, do one of:
64
+
2. To use the plugin to generate policies, do one of:
31
65
- Utilize the `examples/` directory in this repository (the directory can be modified by exporting a new path to `SOURCE_DIR`):
0 commit comments