{"record":{"id":"b59e4760a436cdaf","repo":"kubernetes/kops","slug":"error-getting-publicipaddress-for-api-ingress-stat","errorCode":null,"errorMessage":"error getting PublicIPAddress for API Ingress Status: %w","messagePattern":"error getting PublicIPAddress for API Ingress Status: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"upup/pkg/fi/cloudup/azure/azure_cloud.go","lineNumber":304,"sourceCode":"\t\t\tfor _, i := range lb.Properties.FrontendIPConfigurations {\n\t\t\t\tif i.Properties == nil {\n\t\t\t\t\tcontinue\n\t\t\t\t}\n\t\t\t\tswitch lbSpec.Type {\n\t\t\t\tcase kops.LoadBalancerTypeInternal:\n\t\t\t\t\tif i.Properties.PrivateIPAddress == nil {\n\t\t\t\t\t\tcontinue\n\t\t\t\t\t}\n\t\t\t\t\tingresses = append(ingresses, fi.ApiIngressStatus{\n\t\t\t\t\t\tIP: *i.Properties.PrivateIPAddress,\n\t\t\t\t\t})\n\t\t\t\tcase kops.LoadBalancerTypePublic:\n\t\t\t\t\tif i.Properties.PublicIPAddress == nil || i.Properties.PublicIPAddress.ID == nil {\n\t\t\t\t\t\tcontinue\n\t\t\t\t\t}\n\t\t\t\t\tpips, err := c.publicIPAddressesClient.List(context.TODO(), rg)\n\t\t\t\t\tif err != nil {\n\t\t\t\t\t\treturn nil, fmt.Errorf(\"error getting PublicIPAddress for API Ingress Status: %w\", err)\n\t\t\t\t\t}\n\t\t\t\t\tfor _, pip := range pips {\n\t\t\t\t\t\tif pip.ID == nil || pip.Properties == nil || pip.Properties.IPAddress == nil || *pip.ID != *i.Properties.PublicIPAddress.ID {\n\t\t\t\t\t\t\tcontinue\n\t\t\t\t\t\t}\n\t\t\t\t\t\tingresses = append(ingresses, fi.ApiIngressStatus{\n\t\t\t\t\t\t\tIP: *pip.Properties.IPAddress,\n\t\t\t\t\t\t})\n\t\t\t\t\t}\n\t\t\t\tdefault:\n\t\t\t\t\treturn nil, fmt.Errorf(\"unknown load balancer type: %q\", lbSpec.Type)\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t} else {\n\t\t// Get scale sets in cluster resource group and find masters scale set\n\t\tscaleSets, err := c.vmscaleSetsClient.List(context.TODO(), rg)\n\t\tif err != nil {","sourceCodeStart":286,"sourceCodeEnd":322,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/upup/pkg/fi/cloudup/azure/azure_cloud.go#L286-L322","documentation":"Listing public IP addresses failed while resolving the public IP of the API load balancer's frontend configuration. The load balancer exists, but its public IP resource could not be looked up.","triggerScenarios":"Thrown at upup/pkg/fi/cloudup/azure/azure_cloud.go:304 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify public IP resources exist in the cluster resource group","Check permissions for reading public IP addresses","Retry after transient ARM errors"],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"4c8573c808a73d578c5eadc86d410646ea0b0d73","analyzedAt":"2026-09-05T04:13:19.212Z","contentChangedAt":"2026-09-05T04:13:19.212Z","schemaVersion":2},"datasetVersion":"2026-09-12T12:17:11.808Z"}