operator-controller icon indicating copy to clipboard operation
operator-controller copied to clipboard

Improve error message when ClusterExtension ServiceAccount is missing

Open thetechnick opened this issue 1 year ago • 1 comments

When creating a ClusterExtension with .spec.install.serviceAccount pointing to a non-existent ServiceAccount, Operatort Controller is showing a potentially misleading message in the condition status. (See in example below)

Kubernetes cluster unreachable: Get "https://10.96.0.1:443/version": should not be part of the message.

  - lastTransitionTime: "2024-09-16T15:20:44Z"
    message: 'Kubernetes cluster unreachable: Get "https://10.96.0.1:443/version":
      serviceaccounts "nginx" not found'
    observedGeneration: 2
    reason: InstallationFailed
    status: "False"
    type: Installed

thetechnick avatar Sep 23 '24 08:09 thetechnick