Uploaded image for project: 'Ansible Cloud Automation'
  1. Ansible Cloud Automation
  2. ACA-229

[kubernetes.core/39] Support for kustomize in the k8s module.

XMLWordPrintable

    • False
    • False
    • Undefined
    • ACA Sprint 14

      https://github.com/ansible-collections/kubernetes.core/issues/39

              1. 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).

              1. ISSUE TYPE
      • Feature Idea
              1. 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`?)

              1. 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

            abikouo1@redhat.com BIKOUO AUBIN
            jrouleau Jill Rouleau
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: