WASdev / websphere-liberty-operator

Deploy and manage containerized Liberty applications on Kubernetes. Documentation: https://ibm.biz/wlo-docs
Apache License 2.0
9 stars 4 forks source link

LTPA Manager does not deep copy the short-hand applicationImage syntax from wlapp to the LTPA Job #600

Open kabicin opened 9 months ago

kabicin commented 9 months ago

The WebSphereLibertyApplication .spec.applicationImage supports a short-hand syntax i.e. applicationImage: my-app that allows the operator to search for an OpenShift ImageStream named my-app to retrieve the image reference.

When enabling the .spec.manageLTPA: true the operator simply passes the .spec.applicationImage value from the WebSphereLibertyApplication to the LTPA Job. Instead, it should do a deep parsing of image reference from the ImageStreamTag object before passing the applicationImage for the Job to use.

kabicin commented 9 months ago

Current workaround for 1.3.0 is to copy the .status.imageReference image into the .spec.applicationImage field for all WebSphereLibertyApplications setting .spec.manageLTPA to true.

mingcyu commented 6 months ago

Waiting on tests to get merged

kabicin commented 3 days ago

Tests merged to common repo with PR #171