mirror of
https://github.com/rancher/types.git
synced 2025-09-17 23:38:20 +00:00
Add DeleteNotReadyAfterSecs to nodepool spec
This enables deleting nodes after they have been unreachable for a configurable amount of time
This commit is contained in:
committed by
Craig Jellick
parent
fa18f1e035
commit
a875317c20
@@ -1,6 +1,8 @@
|
||||
package v3
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/rancher/norman/condition"
|
||||
"github.com/rancher/norman/types"
|
||||
v1 "k8s.io/api/core/v1"
|
||||
@@ -152,6 +154,8 @@ type NodePoolSpec struct {
|
||||
|
||||
DisplayName string `json:"displayName"`
|
||||
ClusterName string `json:"clusterName,omitempty" norman:"type=reference[cluster],noupdate,required"`
|
||||
|
||||
DeleteNotReadyAfterSecs time.Duration `json:"deleteNotReadyAfterSecs" norman:"default=0"`
|
||||
}
|
||||
|
||||
type NodePoolStatus struct {
|
||||
|
Reference in New Issue
Block a user