Conversation
There was a problem hiding this comment.
Pull Request Overview
Adds full end-to-end tests for the GitHub Token Manager using Ginkgo and Kind-based clusters.
- Extended test utilities with RSA key generation, GitHub token validation, and Kind image loading.
- Implemented E2E test helpers and comprehensive tests for Token and ClusterToken CRs and Helm chart install/uninstall.
- Updated internal reconciliation conditions to use 'Ready' status and adjusted Makefile targets.
Reviewed Changes
Copilot reviewed 7 out of 8 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| test/utils/utils.go | Enhanced command runner and added RSA/GitHub utilities |
| test/e2e/helpers.go | Introduced helper methods for Kubernetes checks |
| test/e2e/e2e_test.go | Added Ginkgo E2E tests for Token and ClusterToken CRs |
| test/e2e/e2e_suite_test.go | Updated suite setup to use consistent GinkgoWriter |
| internal/tokenmanager/token_secret.go | Changed condition type from 'Available' to 'Ready' |
| api/v1/conditions.go | Renamed constant to ConditionTypeReady |
| Makefile | Updated test-e2e target and added KO variable support |
Comments suppressed due to low confidence (3)
test/e2e/helpers.go:37
- [nitpick] Field name 'context' shadows the imported package and can be confusing. Consider renaming it to 'ctx' for clarity and consistency.
context context.Context
test/e2e/e2e_suite_test.go:33
- [nitpick] Use ginkgo.GinkgoWriter for consistency with other Ginkgo v2 writes instead of the legacy GinkgoWriter.
_, _ = fmt.Fprintf(GinkgoWriter, "Starting github-token-manager suite\n")
Makefile:154
- The '-ginkgo.v' flag is not recognized by 'go test'; either remove it or invoke the Ginkgo CLI directly with 'ginkgo' instead of 'go test'.
KUBE_CONTEXT=kind-$(KIND_CLUSTER) go test ./test/e2e/ -tags=e2e -v -ginkgo.v
fbbacb9 to
7518bd9
Compare
7518bd9 to
bc24235
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.