reset

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 29, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const EtcdPrefix = "/kube-scheduler-simulator"

Variables

This section is empty.

Functions

This section is empty.

Types

type SchedulerService

type SchedulerService interface {
	ResetScheduler() error
}

type Service

type Service struct {
	// contains filtered or unexported fields
}

Service cleans up resources stored in etcd.

func NewResetService

func NewResetService(
	etcdClient *clientv3.Client,
	k8sClient clientset.Interface,
	schedService SchedulerService,
) (*Service, error)

NewResetService initializes Service. ResetService always tries to restore the cluster to the initial state.

func (*Service) Reset

func (s *Service) Reset(ctx context.Context) error

Reset resets all resources and scheduler configuration to the initial state.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL