snowdrop-zen / quarkus

Quarkus: Supersonic Subatomic Java.
https://quarkus.io
Apache License 2.0
1 stars 0 forks source link

Redeployment via kubernetes extension to Openshift causes double deployment #163

Closed snowdrop-bot closed 4 years ago

snowdrop-bot commented 4 years ago

Describe the bug Using the quarkus-container-image-docker and quarkus-kubernetes extensions for deployment to Openshift. The first deployment with mvn package -Dquarkus.kubernetes.deploy=true works fine. The second deployment with the same maven call causes two deployments in Openshift. One is triggered by the changed image-stream, the second is triggered with den new applied deployment-config. Openshift shows a deployment-counter in the web-console.

The DeploymentConfig in the generated openshift.yml file has a trigger which causes this wrong behavior. To fix this issue the trigger should not be generated by the kubernetes extension.

Expected behavior Redeployment causes only one deployment action in openshift.

Actual behavior Redeployment causes two deployment actions in openshift.

To Reproduce Steps to reproduce the behavior:

  1. Bootstrap a quarkus project with container-image-docker and kubernetes extension.
  2. Set property quarkus.kubernetes.deployment-target=openshift
  3. Login via oc tool to openshift
  4. Login into docker-registry
  5. Start first deployment with mvn package -Dquarkus.kubernetes.deploy=true
  6. Start second deployment with mvn package -Dquarkus.kubernetes.deploy=true
  7. Look into Openshift webconsole and see double deployments.

Environment (please complete the following information):


https://github.com/quarkusio/quarkus/issues/10875


$upstream:10875$