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

e2e: no secret found for service account in ocp 4.14 #680

Open
zhujian7 opened this issue Nov 10, 2023 · 1 comment
Open

e2e: no secret found for service account in ocp 4.14 #680

zhujian7 opened this issue Nov 10, 2023 · 1 comment

Comments

@zhujian7
Copy link
Contributor

Running e2e tests on an ocp 4.14 cluster, the e2e failed with:

Testing ManagedCluster Testing Clusterca sync Get CA from service account
/go/src/github.com/stolostron/multicloud-operators-foundation/test/e2e/managedcluster_test.go:158
  [FAILED] in [It] - /go/src/github.com/stolostron/multicloud-operators-foundation/test/e2e/managedcluster_test.go:164 @ 11/10/23 02:43:19.359
• [FAILED] [0.020 seconds]
Testing ManagedCluster Testing Clusterca sync [It] Get CA from service account
/go/src/github.com/stolostron/multicloud-operators-foundation/test/e2e/managedcluster_test.go:158
  [FAILED] Unexpected error:
      <*errors.errorString | 0xc000b338f0>: 
      secret with type kubernetes.io/service-account-token not found in service account kube-system/default
      {
          s: "secret with type kubernetes.io/service-account-token not found in service account kube-system/default",
      }
  occurred
  In [It] at: /go/src/github.com/stolostron/multicloud-operators-foundation/test/e2e/managedcluster_test.go:164 @ 11/10/23 02:43:19.359
@zhujian7
Copy link
Contributor Author

root cause: Starting Kubernetes 1.24, Secrets are not automatically generated when Service Accounts are created.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant