-
Notifications
You must be signed in to change notification settings - Fork 0
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
Sd 607 provide the compelete name of target cluster in promotion prs #21
Sd 607 provide the compelete name of target cluster in promotion prs #21
Conversation
Stealing traffic means the Telefonistka instance running in the cluster will not receive the webhook, only the local instance will. This is so that we only see results from our local instance.
The promotion path used to look like 'source/'->['path1/','path2/']. This PR changes it to look like: 'source/'-> 'path1/' 'path2/'
Love the test! I think if the file ending for the golden path were |
07285c6
to
bb8e932
Compare
// if newPrBody != expectedPrBody { | ||
// t.Errorf("Expected prBody to be %s, got %s", expectedPrBody, newPrBody) | ||
// } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's remove it if not use anymore.
just for my knowledge ... in what sense this will improve the network configuration? |
@yzdann that's referring to mirrord. I'll confess that it's how CoPilot worded it. But the enhancement is that the traffic will be redirected to the local binary only, so during development only the local telefonistka will get webhooks, not the one running in the cluster, this should make it easier to test things. |
Description
This pull request includes changes to the
internal/pkg/githubapi/github.go
andmirrord.json
files to improve the formatting of promotion PR bodies and update network configuration settings respectively.Improvements to PR Body Formatting:
internal/pkg/githubapi/github.go
: Updated thegeneratePromotionPrBody
function to improve the formatting of target paths in the promotion PR body. The target paths are now joined with a newline and indentation for better readability.Before:
After:
jira: SD-607: Telefonistka doesn't provide the complete name of target cluster in promotion PRs
Network Configuration Updates:
mirrord.json
: Added a newnetwork
section withincoming
set to "steal" andoutgoing
set to true, enhancing the network configuration settings.These changes aim to enhance the usability, maintainability, and functionality of the Telefonistka project.
Type of Change
Checklist