IBM / cloud-pak-deployer

Configuration-based installation of OpenShift and Cloud Pak for Data/Integration/Watson AIOps on various private and public cloud infrastructure providers. Deployment attempts to achieve the end-state defined in the configuration. If something fails along the way, you only need to restart the process to continue the deployment.
https://ibm.github.io/cloud-pak-deployer/
Apache License 2.0
137 stars 67 forks source link

Add version check logic to implement version-specific install steps. Example: wkc-iis-scc is no longer used in CPD v4.7.x #556

Closed MrStutterZ closed 11 months ago

MrStutterZ commented 11 months ago

Describe the bug A clear and concise description of what the bug is.

When installing WKC in CPD v4.7.x, the custom scc named 'wkc-iis-scc' should no longer be created.

In CPD v4.6.x documentation, users installing WKC on CPD are instructed (https://www.ibm.com/docs/en/cloud-paks/cp-data/4.6.x?topic=cluster-creating-custom-sccs-services) to create one custom SCC manually (wkc-iis-scc), as described here: https://www.ibm.com/docs/en/cloud-paks/cp-data/4.6.x?topic=services-creating-watson-knowledge-catalog-scc.

Instead, users installing WKC (and other services) in CPD v4.7.x are instructed (https://www.ibm.com/docs/en/cloud-paks/cp-data/4.7.x?topic=settings-changing-kernel-parameter) to make a decision (via config map) that determines how Db2U runs for all services on the cluster. The 'db2u-product-cm' has a variable ('DB2U_RUN_WITH_LIMITED_PRIVS') that determines which objects/resources are created during the install (kubeletconfig, tuned, and/or neither).

Some version check logic should be added to the deployer to execute appropriate steps to follow version-specific documentation.

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

    Install WKC and CPD v4.7.x. When checking the system after the installation is successful, look at the resources in the cluster. You will see the custom WKC SCC which should no longer be used.

Expected behavior A clear and concise description of what you expected to happen.

We should not see the 'manually' created custom SCC for WKC after performing an install of CPD v4.7.x software on a 'fresh' cluster.

Screenshots If applicable, add screenshots to help explain your problem.

None.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

None.

fketelaars commented 11 months ago

Changes:

Tesing: