Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Services are not re-created when deleted manually #61
If someone deletes a resource which belongs to the operator, then the operator should re-create it - whether that be the deployment or the service entry.
It doesn't - it won't re-create the ClusterIP service.
Steps to Reproduce (for bugs)
These are the logs that we get:
If I delete the
This seems like a fringe-case, but one we'd need to cover for automation.
Ubuntu Linux 16.04
Looking into this I'm seeing something like the following:
is there a deployment object?
no -> create the ClusterIP Service, then the Deployment
So if that's the case, it may be why we're not getting the Service created.
We may be looking at a patch that looks something like this:
I tested it on my cluster but it only "works" if the
On deployment it remediated by creating the Service, but not after that, so we may need some more tweaking:
Seems like we needed an informer for the Service definitions in the namespace too ->