-
Notifications
You must be signed in to change notification settings - Fork 436
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
let users configure private IP of the internal LB #5332
let users configure private IP of the internal LB #5332
Conversation
/test pull-cluster-api-provider-azure-apiserver-ilb |
/test pull-cluster-api-provider-azure-apiversion-upgrade |
/test pull-cluster-api-provider-azure-apiserver-ilb |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #5332 +/- ##
==========================================
+ Coverage 52.51% 52.59% +0.07%
==========================================
Files 272 272
Lines 29431 29489 +58
==========================================
+ Hits 15457 15510 +53
- Misses 13172 13176 +4
- Partials 802 803 +1 ☔ View full report in Codecov by Sentry. |
/test pull-cluster-api-provider-azure-apiserver-ilb |
1 similar comment
/test pull-cluster-api-provider-azure-apiserver-ilb |
b086166
to
e0f2b44
Compare
/test |
@nawazkh: The
The following commands are available to trigger optional jobs:
Use
In response to this:
Instructions 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. |
/test pull-cluster-api-provider-azure-apiserver-ilb |
/test pull-cluster-api-provider-azure-apiversion-upgrade |
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.
Wow great job on this Nawaz! Way to go getting everything to work here. Just a few comments from my end 🚀
v | ||
+--------------------------------+ | ||
| Test Complete | | ||
+--------------------------------+ |
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.
I love this comment describing what the test does! Kudos!
test/e2e/azure_apiserver_ilb.go
Outdated
controlPlaneEndpointDNSName, apiServerILBPrivateIP := "", "" | ||
for _, frontendIP := range deployedAzureCluster.Spec.NetworkSpec.APIServerLB.FrontendIPs { | ||
if frontendIP.PublicIP != nil && frontendIP.PublicIP.DNSName != "" { | ||
fmt.Fprintf(GinkgoWriter, "Control Plane Endpoint Name: %s\n", frontendIP.PublicIP.DNSName) |
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.
nit: Might be good to use Logf instead of fmt.Fprintf here, as well as in the rest of the file.
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.
fmt.Fprintf(GinkgoWriter, .....)
helped me log the output inline with the test.
Do you know if Logf()
achieves the same ?
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.
It should achieve the same and I've always used Logf to print stuff in-line. Logf under the hood is fmt.Fprintf as seen here:
fmt.Fprintf(ginkgo.GinkgoWriter, nowStamp()+": "+level+": "+format+"\n", args...) |
It seems like Logf is the preferred way to print stuff in E2E tests as it prints the log level and timestamp
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.
Updating
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.
Updated, please take a look.
f875002
to
3720d4b
Compare
/test pull-cluster-api-provider-azure-apiserver-ilb |
/test pull-cluster-api-provider-azure-apiversion-upgrade |
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.
LGTM pending nits and Willie's comments
/retest |
57e9274
to
8d20398
Compare
/test pull-cluster-api-provider-azure-apiversion-upgrade |
/test pull-cluster-api-provider-azure-apiserver-ilb |
/test pull-cluster-api-provider-azure-apiversion-upgrade |
RESPONSE 400: 400 Bad Request
ERROR CODE: PublicIPCountLimitReached
--------------------------------------------------------------------------------
{
"error": {
"code": "PublicIPCountLimitReached",
"message": "Cannot create more than 100 public IP addresses for this subscription in this region.",
"details": []
}
}
|
/test pull-cluster-api-provider-azure-windows-with-ci-artifacts |
1 similar comment
/test pull-cluster-api-provider-azure-windows-with-ci-artifacts |
- update apiserver ilb flavor with custom CIDRs - update apiserver ilb windows flavor with custom CIDRs - create ci template for api server ILB PR tests - add e2e tests for apiserver ilb template - add e2e test for a default flavored template
8d20398
to
ded1922
Compare
/test pull-cluster-api-provider-azure-apiversion-upgrade |
/test pull-cluster-api-provider-azure-apiserver-ilb |
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.
/lgtm
Awesome work @nawazkh! This is a huge fix for CAPZ 🚀
LGTM label has been added. Git tree hash: 01e0a1b10f1ce2a8a21ed6adc5e61e345918ecb1
|
/approve Nice work! |
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.
/lgtm
/approve
Ignore my comment about t.Parallel
; I saw your answer to @willie-yao about the same thing. 👍
} | ||
|
||
for _, c := range cases { | ||
tc := c | ||
t.Run(tc.name, func(t *testing.T) { | ||
t.Parallel() |
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.
This didn't work with t.Parallel
?
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Jont828, mboersma The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What type of PR is this?
/kind feature
What this PR does / why we need it:
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #5264
Special notes for your reviewer:
TODOs:
Release note: