Skip to content

distributed provisioning: dedicated check for "incompatible topology" #613

@pohly

Description

@pohly

As discussed in #612 (comment), the usage of GenerateAccessibilityRequirements in the following code could be improved:
https://github.com/pohly/external-provisioner/blob/f262e0f93ce2c172ac22f54978bbb9aff7f59d21/pkg/controller/controller.go#L1296-L1320

It works because the function is expected to only fail when the storage class topology is not compatible with the current node, but that is not obvious.

Options to make it more obvious:

  • split out relevant code from GenerateAccessibilityRequirements which checks the topology or
  • add an error code for "not compatible" to GenerateAccessibilityRequirements and check for that

Metadata

Metadata

Assignees

Labels

lifecycle/frozenIndicates that an issue or PR should not be auto-closed due to staleness.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions