1
0
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:
Dax McDonald
2019-06-28 18:02:49 -07:00
committed by Craig Jellick
parent fa18f1e035
commit a875317c20
3 changed files with 76 additions and 68 deletions

View File

@@ -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 {