Skip to content

Improve error message when ClusterExtension ServiceAccount is missing #1297

@thetechnick

Description

@thetechnick

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

Metadata

Metadata

Assignees

Labels

kind/bugCategorizes issue or PR as related to a bug.lifecycle/staleDenotes an issue or PR has remained open with no activity and has become stale.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions