mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
cleanup(api-machinery): remove unused struct and variable
This commit is contained in:
parent
014e1fb54c
commit
8d7f383785
@ -143,18 +143,6 @@ func (podStrategy) CheckGracefulDelete(ctx context.Context, obj runtime.Object,
|
||||
return true
|
||||
}
|
||||
|
||||
type podStrategyWithoutGraceful struct {
|
||||
podStrategy
|
||||
}
|
||||
|
||||
// CheckGracefulDelete prohibits graceful deletion.
|
||||
func (podStrategyWithoutGraceful) CheckGracefulDelete(ctx context.Context, obj runtime.Object, options *metav1.DeleteOptions) bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// StrategyWithoutGraceful implements the legacy instant delete behavior.
|
||||
var StrategyWithoutGraceful = podStrategyWithoutGraceful{Strategy}
|
||||
|
||||
type podStatusStrategy struct {
|
||||
podStrategy
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user