{"record":{"id":"3778b5cb882afe28","repo":"kubernetes/kops","slug":"getting-loadbalancer-for-api-ingress-status-w","errorCode":null,"errorMessage":"getting Loadbalancer for API Ingress Status: %w","messagePattern":"getting Loadbalancer for API Ingress Status: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"upup/pkg/fi/cloudup/azure/azure_cloud.go","lineNumber":275,"sourceCode":"}\n\n// AddClusterTags adds cluster tags to the resource.\nfunc (c *azureCloudImplementation) AddClusterTags(tags map[string]*string) {\n\tfor k, v := range c.tags {\n\t\ttags[k] = &v\n\t}\n}\n\nfunc (c *azureCloudImplementation) GetApiIngressStatus(cluster *kops.Cluster) ([]fi.ApiIngressStatus, error) {\n\tvar ingresses []fi.ApiIngressStatus\n\trg := cluster.AzureResourceGroupName()\n\n\tlbSpec := cluster.Spec.API.LoadBalancer\n\tif lbSpec != nil {\n\t\t// Get load balancers in cluster resource group\n\t\tlbs, err := c.loadBalancersClient.List(context.TODO(), rg)\n\t\tif err != nil {\n\t\t\treturn nil, fmt.Errorf(\"getting Loadbalancer for API Ingress Status: %w\", err)\n\t\t}\n\n\t\tfor _, lb := range lbs {\n\t\t\tval := lb.Tags[TagClusterName]\n\t\t\tif val == nil || *val != cluster.Name {\n\t\t\t\tcontinue\n\t\t\t}\n\t\t\tif lb.Properties == nil {\n\t\t\t\tcontinue\n\t\t\t}\n\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","sourceCodeStart":257,"sourceCodeEnd":293,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/upup/pkg/fi/cloudup/azure/azure_cloud.go#L257-L293","documentation":"Listing load balancers in the cluster resource group failed while GetApiIngressStatus tried to determine the API endpoint address. Fires on ARM API errors, wrong resource group, or missing permissions.","triggerScenarios":"Thrown at upup/pkg/fi/cloudup/azure/azure_cloud.go:275 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the cluster's Azure resource group name is correct and exists","Check the credential's permissions on the resource group","Retry after transient ARM failures"],"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-12T07:17:12.445Z"}