Skip to content

Deterministic endpoints for MachineRegistrations#975

Merged
frelon merged 1 commit intorancher:mainfrom
frelon:deterministic-endpoint
May 4, 2026
Merged

Deterministic endpoints for MachineRegistrations#975
frelon merged 1 commit intorancher:mainfrom
frelon:deterministic-endpoint

Conversation

@frelon
Copy link
Copy Markdown
Contributor

@frelon frelon commented Apr 30, 2026

This commit adds the Token field to the MachineRegistration spec. The
token is used when building the registration endpoint, and if unset will
default to the old behaviour of generating a random one.

This is useful for keeping deterministic endpoints when restoring
MachineRegistrations from backup.

Signed-off-by: Fredrik Lönnegren fredrik.lonnegren@suse.com

Copy link
Copy Markdown
Contributor

@davidcassany davidcassany left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice 👍

This commit adds the Token field to the MachineRegistration spec. The
token is used when building the registration endpoint, and if unset will
default to the old behaviour of generating a random one.

This is useful for keeping deterministic endpoints when restoring
MachineRegistrations from backup.

Signed-off-by: Fredrik Lönnegren <fredrik.lonnegren@suse.com>
@frelon frelon force-pushed the deterministic-endpoint branch from a490af1 to 11af536 Compare May 4, 2026 08:17
@frelon frelon marked this pull request as ready for review May 4, 2026 08:18
@frelon frelon requested a review from a team as a code owner May 4, 2026 08:18
@frelon frelon merged commit 3c2ee11 into rancher:main May 4, 2026
7 checks passed
@frelon frelon deleted the deterministic-endpoint branch May 4, 2026 08:32
frelon added a commit that referenced this pull request May 5, 2026
This commit adds the Token field to the MachineRegistration spec. The
token is used when building the registration endpoint, and if unset will
default to the old behaviour of generating a random one.

This is useful for keeping deterministic endpoints when restoring
MachineRegistrations from backup.

Signed-off-by: Fredrik Lönnegren <fredrik.lonnegren@suse.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants