fix max deadline logic
@@ -48,6 +48,7 @@ var (
const (
tabHeader = " -"
+ kubernetesMaxDeadline = 600
)
type resourceCounter struct {
@@ -112,7 +113,7 @@ func getDeployments(client kubernetes.Interface, ns string, l *DefaultLabeller,
deployments := make([]Resource, 0, len(deps.Items))
for _, d := range deps.Items {
var deadline time.Duration
- if d.Spec.ProgressDeadlineSeconds == nil {
+ if d.Spec.ProgressDeadlineSeconds == nil || *d.Spec.ProgressDeadlineSeconds == kubernetesMaxDeadline {
deadline = deadlineDuration
} else {
deadline = time.Duration(*d.Spec.ProgressDeadlineSeconds) * time.Second
