This fixes #61. Nodes created by RKE2 or k3s do not have the spec.ProviderID set to linode://<linodeID>. This change verifies that the Node's spec.Provider ID has the linode:// prefix before writing to to /linode-info/linode-id. If the linode-id file is not populated, the code falls back to looking up the linodeID using its label (which must be the same as its hostname)
General:
[x] Have you removed all sensitive information, including but not limited to access keys and passwords?
[x] Have you checked to ensure there aren't other open or closed Pull Requests for the same bug/feature/question?
Pull Request Guidelines:
[ ] Does your submission pass tests?
[ ] Have you added tests?
[x] Are you addressing a single feature in this PR?
[x] Are your commits atomic, addressing one change per commit?
[x] Are you following the conventions of the language?
[ ] Have you saved your large formatting changes for a different PR, so we can focus on your work?
[x] Have you explained your rationale for why this feature is needed?
This fixes #61. Nodes created by RKE2 or k3s do not have the spec.ProviderID set to
linode://<linodeID>
. This change verifies that the Node's spec.Provider ID has the linode:// prefix before writing to to /linode-info/linode-id. If the linode-id file is not populated, the code falls back to looking up the linodeID using its label (which must be the same as its hostname)General:
Pull Request Guidelines: