-
Notifications
You must be signed in to change notification settings - Fork 498
Testing changes for MCS Firstboot Pivot Failure Reporting v2 #6124
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -185,7 +185,7 @@ func TestBootstrapServer(t *testing.T) { | |
| if err != nil { | ||
| t.Fatalf("unexpected error while appending file to ignition: %v", err) | ||
| } | ||
| anno, err := getNodeAnnotation(mp.Status.Configuration.Name, "", mc) | ||
| anno, err := getNodeAnnotation(mp.Status.Configuration.Name, "", "https://api-int.test.example.com:22623", mc) | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These tests still don’t verify the new MCS URL annotation. The hardcoded URL only goes into a local Also applies to: 383-383 🤖 Prompt for AI Agents |
||
| if err != nil { | ||
| t.Fatalf("unexpected error while creating annotations err: %v", err) | ||
| } | ||
|
|
@@ -380,7 +380,7 @@ func TestClusterServer(t *testing.T) { | |
| if err != nil { | ||
| t.Fatalf("unexpected error while appending file to ignition: %v", err) | ||
| } | ||
| anno, err := getNodeAnnotation(mp.Status.Configuration.Name, "", mc) | ||
| anno, err := getNodeAnnotation(mp.Status.Configuration.Name, "", "https://api-int.test.example.com:22623", mc) | ||
| if err != nil { | ||
| t.Fatalf("unexpected error while creating annotations err: %v", err) | ||
| } | ||
|
|
||
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.
Harden
GetIgnitionHost(IPv6 host:port + panic safety)fmt.Sprintf("%s:%s", internalURLParsed.Hostname(), securePortStr)withnet.JoinHostPort(...)so IPv6 literals get valid brackets.infraStatus == nilhandling and checklen(APIServerInternalIPs) > 0before indexing[0]in the BareMetal/OpenStack/Ovirt/VSphere branches to avoid panics.🤖 Prompt for AI Agents