nutanix / nutanix.ansible

Official Nutanix Ansible collections
GNU General Public License v3.0
64 stars 36 forks source link

[Bug] error in sample karbon/create_k8s_cluster.yml #349

Closed Golgautier closed 1 year ago

Golgautier commented 1 year ago

Describe the bug create_k8s_cluster.yml seems to have an issue. In the set-fact task, we do setup

storage_class:
    name: <container_name>

First, It seems strange to set container name in the storage-class variable.

In the cluster deployment code :

To Reproduce Just try to deploy prod cluster from sample.

Stack trace

Expected behavior I htink it would be great to replace

  storage_class:
    name: <container_name>

by

  storage_class:
    name: <storage_class_name>
  storage_container:
    name: <storage_container_name>

And update deployment tasks with

  storage_class:
    name:"{{storage_class.name}}"
    storage_container: "{{storage_container.name}}"