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 1 commit 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.
|
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 |
|
/test e2e-metal-ipi-ovn-ipv6 |
| }{ | ||
| {name: "kas-config", configKey: `config\.json`}, | ||
| {name: "openshift-apiserver", configKey: `config\.yaml`}, | ||
| {name: "kas-config", configKey: "config\\.json"}, |
There was a problem hiding this comment.
The backslash-dot escaping is needed for jsonpath key lookup and works with either quoting
style
Oh, in that case the originally escaped form is fine.
There was a problem hiding this comment.
I remove the this changes from pr, keeping old
431a4b2 to
c5b0f8c
Compare
|
Scheduling required tests: |
|
@gangwgr: The following test failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
|
/test e2e-gcp-csi |
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