Skip to content
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

Fix NetworkInterface status propagation for IPs #161

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

afritzler
Copy link
Member

@afritzler afritzler commented Feb 7, 2024

Proposed Changes

Fix NetworkInterface status propagation for IPs:

  • Switch to []string for IPs in NetworkInterface status
  • Fix update/create domain and propagate correct IPs in the NIC status
  • Fix early exit for existing domains to propagate IPs in the NIC status

@afritzler afritzler marked this pull request as ready for review February 7, 2024 14:28
@afritzler afritzler requested a review from a team as a code owner February 7, 2024 14:28
@github-actions github-actions bot added bug Something isn't working size/S labels Feb 7, 2024
@afritzler afritzler force-pushed the fix/nic-status-ips branch 2 times, most recently from 1ec2511 to a7233eb Compare February 7, 2024 14:58
@afritzler afritzler marked this pull request as draft February 7, 2024 15:03
@afritzler afritzler marked this pull request as ready for review February 7, 2024 16:06

log.V(1).Info("Host device is ready", "HostDevice", hostDev)
nicIPs := make([]net.IP, 0, len(apinetNic.Spec.IPs))
nicIPs := make([]string, 0, len(apinetNic.Spec.IPs))
for _, apinetNicIP := range apinetNic.Spec.IPs {
// TODO: do proper IP type conversion here
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do you need still this comment?

}
log.V(1).Info("Host device is ready", "HostDevice", hostDev, "IPs", nicIPs)
Copy link
Contributor

@lukas016 lukas016 Feb 7, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do you think it is good idea log whole structure hostDev and maybe IPs too, how it can help ops guys? Or maybe different level as info, if you need it.

@afritzler
Copy link
Member Author

Let's put this one on hold for now as I wanted to do some further testing. I will mark shit PR as draft for now and mark them as ready later.

@afritzler afritzler marked this pull request as draft February 20, 2024 10:00
@lukas016 lukas016 added the do-not-merge Do not merge !! label Feb 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working controllers do-not-merge Do not merge !! server size/M
Projects
Status: On Hold
Development

Successfully merging this pull request may close these issues.

2 participants