tls: extract injectTLSAnnotation constant and use double-quoted config keys#31125
tls: extract injectTLSAnnotation constant and use double-quoted config keys#31125gangwgr wants to merge 2 commits intoopenshift:mainfrom
Conversation
The "config.openshift.io/inject-tls" annotation key was duplicated 9 times across test functions. Extract it into a package-level constant to improve maintainability and reduce copy-paste errors.
Replace backtick-quoted raw strings with double-quoted strings for the HCP ConfigMap configKey fields. The backslash-dot escaping is needed for jsonpath key lookup and works with either quoting style; double quotes are more consistent with the rest of the file. Co-authored-by: Cursor <cursoragent@cursor.com>
|
Pipeline controller notification For optional jobs, comment This repository is configured in: automatic mode |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: gangwgr The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/pipeline required |
|
Scheduling required tests: |
WalkthroughA package-level constant ChangesConstant-Based String Replacement in TLS Tests
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Caution Pre-merge checks failedPlease resolve all errors before merging. Addressing warnings is optional.
❌ Failed checks (1 error)
✅ Passed checks (11 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Warning Review ran into problems🔥 ProblemsGit: Failed to clone repository. Please run the Comment |
|
/test e2e-vsphere-ovn-upi |
Summary
"config.openshift.io/inject-tls"string literal into aninjectTLSAnnotationconstant, reducing duplication across all annotation checks.config\.json,config\.yaml).Test plan
go vet ./test/extended/tls/...passesMade with Cursor
Summary by CodeRabbit