Closed grs closed 7 months ago
The root of the issue is the 'inferTargetType' function in cmd/service-controller/policy_controller.go which does not take account of how annotated services are recorded in skupper-services. It therefore assumes it is either a Deployment or StatefulSet and when neither of those resolve, tries with DeploymentConfig without checking whether there is a valid client for that.
Describe the bug
On platforms without DeploymentConfig, if cluster policy CRD is installed (and therefore policy enabled), and a service is annotated, the service controller will crash with:
How To Reproduce Steps to reproduce the behavior:
Initialise a namespace with skupper. Create a deployment with a service. Annotate the service with skupper.io/proxy=tcp. Install skupper ClusterPolicy CRD.
Expected behavior
No crash.
Environment details