Documentation
¶
Index ¶
- type DeviceValidator
- func (dv *DeviceValidator) GetTotalDeviceCount(ctx context.Context) (int, error)
- func (dv *DeviceValidator) IsDriverPublishingDevices(ctx context.Context) bool
- func (dv *DeviceValidator) ValidateDeviceAllocation(ctx context.Context, namespace, claimName string, expectedCount int) error
- func (dv *DeviceValidator) ValidateResourceSlice(ctx context.Context, nodeName string) (*resourceapi.ResourceSlice, error)
- type PrerequisitesInstaller
- func (pi *PrerequisitesInstaller) InstallAll(ctx context.Context) error
- func (pi *PrerequisitesInstaller) IsDriverInstalled(ctx context.Context) bool
- func (pi *PrerequisitesInstaller) RollbackMutations(ctx context.Context)
- func (pi *PrerequisitesInstaller) UninstallAll(ctx context.Context) error
- func (pi *PrerequisitesInstaller) WaitForDriver(ctx context.Context, timeout time.Duration) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeviceValidator ¶
type DeviceValidator struct {
// contains filtered or unexported fields
}
DeviceValidator validates device allocation and ResourceSlice state
func NewDeviceValidator ¶
func NewDeviceValidator(f *framework.Framework) *DeviceValidator
NewDeviceValidator creates a new validator instance
func (*DeviceValidator) GetTotalDeviceCount ¶
func (dv *DeviceValidator) GetTotalDeviceCount(ctx context.Context) (int, error)
GetTotalDeviceCount returns the total number of devices available
func (*DeviceValidator) IsDriverPublishingDevices ¶
func (dv *DeviceValidator) IsDriverPublishingDevices(ctx context.Context) bool
IsDriverPublishingDevices checks if the driver is publishing devices
func (*DeviceValidator) ValidateDeviceAllocation ¶
func (dv *DeviceValidator) ValidateDeviceAllocation(ctx context.Context, namespace, claimName string, expectedCount int) error
ValidateDeviceAllocation validates that claim is properly allocated
func (*DeviceValidator) ValidateResourceSlice ¶
func (dv *DeviceValidator) ValidateResourceSlice(ctx context.Context, nodeName string) (*resourceapi.ResourceSlice, error)
ValidateResourceSlice validates ResourceSlice for the example driver node
type PrerequisitesInstaller ¶
type PrerequisitesInstaller struct {
// contains filtered or unexported fields
}
PrerequisitesInstaller manages dra-example-driver installation and cleanup
func NewPrerequisitesInstaller ¶
func NewPrerequisitesInstaller(f *framework.Framework) *PrerequisitesInstaller
NewPrerequisitesInstaller creates a new installer
func (*PrerequisitesInstaller) InstallAll ¶
func (pi *PrerequisitesInstaller) InstallAll(ctx context.Context) error
InstallAll installs the dra-example-driver prerequisites
func (*PrerequisitesInstaller) IsDriverInstalled ¶
func (pi *PrerequisitesInstaller) IsDriverInstalled(ctx context.Context) bool
IsDriverInstalled checks if the driver is already installed
func (*PrerequisitesInstaller) RollbackMutations ¶
func (pi *PrerequisitesInstaller) RollbackMutations(ctx context.Context)
RollbackMutations performs best-effort cleanup after partial install failure
func (*PrerequisitesInstaller) UninstallAll ¶
func (pi *PrerequisitesInstaller) UninstallAll(ctx context.Context) error
UninstallAll removes the driver and cleans up resources
func (*PrerequisitesInstaller) WaitForDriver ¶
WaitForDriver waits for the driver to be ready and publishing devices