-
Bug
-
Resolution: Done
-
Undefined
-
None
-
False
-
False
-
Undefined
-
-
ACA Sprint 14
https://github.com/ansible-collections/kubernetes.core/issues/39
-
-
-
-
- SUMMARY
-
-
-
I would like to use kustomize with the `k8s` module. This will allow someone to be able to supply a directory or URI with a `kustomize.yaml` file in it.
This should emulate what `kubectl -k /path/to/dir` does (as close as possible).
-
-
-
-
- ISSUE TYPE
-
-
-
- Feature Idea
-
-
-
-
- COMPONENT NAME
-
-
-
Ideally, I would like to have this as part of the `k8s` module. But wouldn't mind having a separate `kustomize` module (maybe `k8s_kustomize`?)
-
-
-
-
- ADDITIONAL INFORMATION
-
-
-
I assume the k8s api is being hit, so comparing it to the functionality of `kubectl` isn't apples to apples. But, it would be great to "expand" the `src` option to something like this..
Equivalent to: `kubectl create -k /path/to/some/kustomizedir`
```yaml
- name: Create objects from a local directory that has a kustomize.yaml file
k8s:
state: present
src: /path/to/some/kustomizedir
kustomize: true
```
Equivalent to: `kubectl create -k https://github.com/username/some/kustomizedir`
```yaml
- name: Create objects from a remote dir that has a kustomize.yaml file
k8s:
state: present
src: https://github.com/username/some/kustomizedir
kustomize: true
```