hitachienergy / epiphany

Cloud and on-premises automation for Kubernetes centered industrial grade solutions.
Apache License 2.0
138 stars 107 forks source link

[FEATURE REQUEST] Generate K8s apps related vars when k8s_as_cloud_service is true #3283

Closed tomasz-baran closed 1 year ago

tomasz-baran commented 1 year ago

Is your feature request related to a problem? Please describe. Some roles (like applications, keycloak) are mapped (in configuration/feature-mappings doc) by default to kubernetes_master component. When mode with k8s_as_cloud_service is used there is no kubernetes_master component so the mappings are not active. As a consequence vars for the mapped roles are not generated by epicli and thus deployment fails. To workaround this, one can map mentioned roles to any other component with count > 0.

Describe the solution you'd like epicli generates vars for defined set of roles when k8s_as_cloud_service is true even if those roles are not mapped to any active component (with count > 0) but they are enabled in configuration/features doc. Furthermore, in such case they can be added to Ansible inventory with IP 127.0.0.1 (kubectl and helm will use SSH tunnel).

Describe alternatives you've considered n/a

Additional context n/a


DoD checklist