Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve error message when ClusterExtension ServiceAccount is missing #1297

Open
thetechnick opened this issue Sep 23, 2024 · 2 comments
Open
Assignees
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@thetechnick
Copy link

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 thetechnick added the kind/bug Categorizes issue or PR as related to a bug. label Sep 23, 2024
@rashmi43
Copy link
Contributor

rashmi43 commented Oct 9, 2024

/assign rashmi43

@rashmi43
Copy link
Contributor

able to fix this issue:

  conditions:
  - lastTransitionTime: "2024-11-19T14:45:08Z"
    message: ' Unable to authenticate with Kubernetes cluster using ServiceAccount
      "nginx-install": ServiceAccount "nginx-install" not found.'
    observedGeneration: 1
    reason: Failed
    status: Unknown
    type: Installed
  - lastTransitionTime: "2024-11-19T14:45:08Z"
    message: retrying to get installed bundle
    observedGeneration: 1
    reason: Retrying
    status: "True"
    type: Progressing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

2 participants