Skip to content
This repository has been archived by the owner on Jun 29, 2022. It is now read-only.

pkg/platform/packet: improve hardware reservations validation rules #1186

Merged

Conversation

invidian
Copy link
Member

@invidian invidian commented Nov 16, 2020

See commit messages for details.

Closes #1156

To make them more readable.

Signed-off-by: Mateusz Gozdek <mateusz@kinvolk.io>
To make them easier to read and to allow adding new cases easily.

Signed-off-by: Mateusz Gozdek <mateusz@kinvolk.io>
This is to prevent emptying reservation ID field for a node, which would
result in heterogenous pool, which we do not support.

It will also partially prevent hitting #1156.

Signed-off-by: Mateusz Gozdek <mateusz@kinvolk.io>
To avoid situations, where we create heterogenous pools, which are not
supported due to Terraform dependencies limitations.

Refs #1156

Signed-off-by: Mateusz Gozdek <mateusz@kinvolk.io>
Otherwise we may let some nodes to be created without hardware
reservations.

Refs #1156

Signed-off-by: Mateusz Gozdek <mateusz@kinvolk.io>
@invidian invidian changed the title Invidian/packet improve hardware reservations validation rules pkg/platform/packet: improve hardware reservations validation rules Nov 16, 2020
@invidian invidian added the priority/P2 Medium priority label Nov 17, 2020
pkg/platform/packet/packet_test.go Show resolved Hide resolved
pkg/platform/packet/packet.go Show resolved Hide resolved
pkg/platform/packet/packet_test.go Show resolved Hide resolved
Signed-off-by: Mateusz Gozdek <mateusz@kinvolk.io>
Copy link
Contributor

@iaguis iaguis left a comment

Choose a reason for hiding this comment

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

lgtm

@invidian invidian merged commit 4c40aa1 into master Nov 18, 2020
@invidian invidian deleted the invidian/packet-improve-hardware-reservations-validation-rules branch November 18, 2020 10:46
@invidian invidian mentioned this pull request Dec 7, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
priority/P2 Medium priority
Projects
None yet
Development

Successfully merging this pull request may close these issues.

lokoctl does not remove a node and create a new one if reservation ids change
2 participants