{"record":{"id":"51668f99adc00c08","repo":"kubernetes/kops","slug":"s-is-required-51668f","errorCode":null,"errorMessage":"%s is required","messagePattern":"(.+?) is required","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/nodeidentity/linode/identify.go","lineNumber":57,"sourceCode":"\tproviderIDPrefix = \"linode://\"\n)\n\ntype linodeClient interface {\n\tGetInstance(ctx context.Context, linodeID int) (*linodego.Instance, error)\n}\n\n// nodeIdentifier identifies a node from Akamai (Linode).\ntype nodeIdentifier struct {\n\tclient       linodeClient\n\tcache        expirationcache.Store\n\tcacheEnabled bool\n}\n\n// New creates and returns a nodeidentity.Identifier for Nodes running on Akamai (Linode).\nfunc New(cacheNodeidentityInfo bool) (nodeidentity.Identifier, error) {\n\taccessToken := os.Getenv(\"LINODE_TOKEN\")\n\tif accessToken == \"\" {\n\t\treturn nil, fmt.Errorf(\"%s is required\", \"LINODE_TOKEN\")\n\t}\n\n\tclient, err := linodego.NewClient(nil)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"failed to create Linode client: %w\", err)\n\t}\n\tclient.SetUserAgent(\"kops/nodeidentity\")\n\tclient.SetToken(accessToken)\n\n\treturn &nodeIdentifier{\n\t\tclient:       &client,\n\t\tcache:        expirationcache.NewTTLStore(stringKeyFunc, cacheTTL),\n\t\tcacheEnabled: cacheNodeidentityInfo,\n\t}, nil\n}\n\n// IdentifyNode queries Akamai (Linode) for the node identity information.\nfunc (i *nodeIdentifier) IdentifyNode(ctx context.Context, node *corev1.Node) (*nodeidentity.Info, error) {","sourceCodeStart":39,"sourceCodeEnd":75,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/pkg/nodeidentity/linode/identify.go#L39-L75","documentation":"Startup guard in the Akamai (Linode) node-identity identifier: the LINODE_TOKEN environment variable, which is the only source of API credentials, is empty. No Linode API calls are possible without it.","triggerScenarios":"Thrown at pkg/nodeidentity/linode/identify.go:57 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set LINODE_TOKEN to a valid Linode API token for the node's environment","Verify the token is injected into nodeup/kubelet's environment on Linode instances"],"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"}