uselagoon / remote-controller

A group of controllers for handling Lagoon builds and tasks in Kubernetes or Openshift
5 stars 1 forks source link

Tasks don't work on OpenShift #23

Closed Schnitzel closed 3 years ago

Schnitzel commented 3 years ago

currently it's not possible to create tasks on openshift clusters as we use DeploymentConfigs on OpenShift, the code though searches for Deployments: https://github.com/amazeeio/lagoon-kbd/blob/113b8df655a0414137812c44998ef33972f29db3/controllers/lagoontask_controller.go#L122

I tried to fix this myself, but my Golang skills are not good enough to be able to do this without cloning the whole function createStandardTask