portworx / terraform-ibm-portworx-enterprise

Terraform Module to manage Portworx Enterprise on IKS in IBM Cloud
Apache License 2.0
1 stars 5 forks source link

IBM Cloud Schematics Functionality #47

Open mattokc35 opened 1 year ago

mattokc35 commented 1 year ago

Hi,

I was just wondering if this official Portworx IBM Cloud Terraform resource has been configured to work properly with IBM Cloud Schematics. When I tested it about a month ago, I found various problems with the shell scripts and also a few other problems that were not letting this resource work properly in an automation environment such as IBM Cloud Schematics Workspaces. I also found that the portworx_destroy.sh script was not working either and I could only get it to work after commenting it out.

mattokc35 commented 1 year ago

has anyone in the team tested this Portworx Resource with Schematics yet?

nicolascomete commented 1 year ago

Hi, There are a couple of things to have this module running in IBM Cloud Schematics:

  1. Fix a couple of issues on this module around Helm binary (I have issued a PR for that)
  2. Create your own TF template that leverages this module but performs the setup of the K8s context prior to apply this module. Because this module assumes the context is set. You could use a provisioner for that.
Glitchfix commented 1 year ago

@nicolascomete

  1. your PR for helm binary was merged
  2. could you elaborate the k8s context setup, do you recommend adding a variable that if set, changes the current context of k8s else picks the default one?
Glitchfix commented 1 year ago

@mattokc35 I think these issues are fixed in 1.2.1 can you check if you still face the same problem?