Throttle disk write to prevent etcd puking during upgrade
This commit is contained in:
@@ -7,6 +7,7 @@ import (
|
||||
"path/filepath"
|
||||
|
||||
monov1alpha1 "example.com/monok8s/pkg/apis/monok8s/v1alpha1"
|
||||
"example.com/monok8s/pkg/controller/osimage"
|
||||
)
|
||||
|
||||
func EngageControlGate(ctx context.Context, nctx *NodeContext) error {
|
||||
@@ -30,3 +31,7 @@ func ReleaseControlGate(ctx context.Context, nctx *NodeContext) error {
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func DiagTestDiskWrite(ctx context.Context, nctx *NodeContext) error {
|
||||
return osimage.TestStreamToTarget(ctx, monov1alpha1.AltPartDeviceLink)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user