We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The related code is about function updateVPCNetworkConfigurationStatusWithAliveVPCs in networkinfo_utils.go,
updateVPCNetworkConfigurationStatusWithAliveVPCs
func updateVPCNetworkConfigurationStatusWithAliveVPCs(ctx context.Context, client client.Client, ncName string, getAliveVPCsFn func(ncName string) []*model.Vpc) { // read v1alpha1.VPCNetworkConfiguration by ncName nc := &v1alpha1.VPCNetworkConfiguration{} err := client.Get(ctx, apitypes.NamespacedName{Name: ncName}, nc) if err != nil { log.Error(err, "Failed to get VPCNetworkConfiguration", "Name", ncName) return } if getAliveVPCsFn != nil { aliveVPCs := sets.New[string]() for _, vpc := range getAliveVPCsFn(ncName) { aliveVPCs.Insert(*vpc.DisplayName) } var newVPCInfos []v1alpha1.VPCInfo for _, vpcInfo := range nc.Status.VPCs { if aliveVPCs.Has(vpcInfo.Name) { newVPCInfos = append(newVPCInfos, vpcInfo) } } nc.Status.VPCs = newVPCInfos if err := client.Status().Update(ctx, nc); err != nil { log.Error(err, "Failed to update VPCNetworkConfiguration status", "Name", ncName, "nc.Status.VPCs", nc.Status.VPCs) return } log.Info("Updated VPCNetworkConfiguration status", "Name", ncName, "nc.Status.VPCs", nc.Status.VPCs) } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The related code is about function
updateVPCNetworkConfigurationStatusWithAliveVPCs
in networkinfo_utils.go,The text was updated successfully, but these errors were encountered: