{"record":{"id":"25ba6286dc16fe31","repo":"kubernetes/kops","slug":"determining-cluster-name","errorCode":null,"errorMessage":"determining cluster name","messagePattern":"determining cluster name","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"upup/pkg/fi/cloudup/azure/verifier.go","lineNumber":69,"sourceCode":"\ntype azureVerifier struct {\n\tclient      *client\n\tclusterName string\n\tattestation *attestationVerifier\n}\n\nvar _ bootstrap.Verifier = (*azureVerifier)(nil)\n\n// NewAzureVerifier returns a verifier that validates Azure IMDS attestation tokens and resolves the\n// claimed VM identity through the Azure API.\nfunc NewAzureVerifier(ctx context.Context, opt *AzureVerifierOptions) (bootstrap.Verifier, error) {\n\tazureClient, err := newVerifierClient(ctx)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tif opt == nil || opt.ClusterName == \"\" {\n\t\treturn nil, fmt.Errorf(\"determining cluster name\")\n\t}\n\n\tattestation, err := newAttestationVerifier()\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\treturn &azureVerifier{\n\t\tclient:      azureClient,\n\t\tclusterName: opt.ClusterName,\n\t\tattestation: attestation,\n\t}, nil\n}\n\n// vmLogIDFromResource returns a short human-readable identifier for a VM resource, used in log\n// messages throughout the verifier.\nfunc vmLogIDFromResource(res *arm.ResourceID) string {\n\tif res == nil {","sourceCodeStart":51,"sourceCodeEnd":87,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/upup/pkg/fi/cloudup/azure/verifier.go#L51-L87","documentation":"Guard in NewAzureVerifier: the verifier options are nil or carry an empty ClusterName, so the verifier cannot bind attested VMs to the cluster's resource group. The operator did not supply the cluster name configuration.","triggerScenarios":"Thrown at upup/pkg/fi/cloudup/azure/verifier.go:69 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set ClusterName in the AzureVerifierOptions passed to NewAzureVerifier","Check the node verifier configuration in the control plane flags"],"exampleFix":null,"handlingStrategy":"validation","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"}