ibm-cloud-architecture / gse-devops

7 stars 18 forks source link

AppsodyApplication resource wrapped as a MCM Deployable is deleted after a pipeline run #17

Open hollisc opened 4 years ago

hollisc commented 4 years ago

Scenario Description: For a Node.js AppsodyApplication deployed to an OCP 43x cluster using a CI (Tekton) and CD (Cloud Pak for MCM) pipeline with a MCM Channel type of git, a deployable is generated for any Kubernetes resource yaml and deployed to a target cluster.

Related Tutorial: Application deployment pipeline using Tekton (CI) and CP4MCM (CD) in a gitops flow.

Expected Result: Upon execution of the CICD pipeline and AppsodyApplication yaml resource stored in git repo is updated to reference the newly built image, MCM will update the existing AppsodyApplication resource to reference the new image which in turn will be processed by the Kabanero Operator to update the Deployment.

Actual Result: Upon execution of the CICD pipeline and AppsodyApplication yaml resource stored in git repo is updated to reference the newly built image, the AppsodyApplication resource is deleted which then the Operator will delete the existing Service, Deployment and Route.

hollisc commented 4 years ago

Need to investigate the issue further to get more information.