Skip to content

Commit

Permalink
Add replica.Spec.LastHealthyAt and replica.Spec.LastFailedAt fields
Browse files Browse the repository at this point in the history
Longhorn 7425

Signed-off-by: Eric Weber <eric.weber@suse.com>
  • Loading branch information
ejweber committed Jan 16, 2024
1 parent 11e1a16 commit f9b9119
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 14 deletions.
4 changes: 4 additions & 0 deletions chart/templates/crds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2655,6 +2655,10 @@ spec:
type: string
image:
type: string
lastFailedAt:
type: string
lastHealthyAt:
type: string
logRequested:
type: boolean
nodeID:
Expand Down
32 changes: 18 additions & 14 deletions deploy/longhorn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,6 @@ kind: Namespace
metadata:
name: longhorn-system
---
# Source: longhorn/templates/priorityclass.yaml
apiVersion: scheduling.k8s.io/v1
kind: PriorityClass
metadata:
name: "longhorn-critical"
labels:
app.kubernetes.io/name: longhorn
app.kubernetes.io/instance: longhorn
app.kubernetes.io/version: v1.6.0-dev
description: "Ensure Longhorn pods have the highest priority to prevent any unexpected eviction by the Kubernetes scheduler under node pressure"
globalDefault: false
preemptionPolicy: PreemptLowerPriority
value: 1000000000
---
# Source: longhorn/templates/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
Expand Down Expand Up @@ -2802,6 +2788,10 @@ spec:
type: string
image:
type: string
lastFailedAt:
type: string
lastHealthyAt:
type: string
logRequested:
type: boolean
nodeID:
Expand Down Expand Up @@ -4573,3 +4563,17 @@ spec:
---
# Source: longhorn/templates/validate-psp-install.yaml
#
---
# Source: longhorn/templates/priorityclass.yaml
apiVersion: scheduling.k8s.io/v1
kind: PriorityClass
metadata:
name: "longhorn-critical"
labels:
app.kubernetes.io/name: longhorn
app.kubernetes.io/instance: longhorn
app.kubernetes.io/version: v1.6.0-dev
description: "Ensure Longhorn pods have the highest priority to prevent any unexpected eviction by the Kubernetes scheduler under node pressure"
globalDefault: false
preemptionPolicy: PreemptLowerPriority
value: 1000000000

0 comments on commit f9b9119

Please sign in to comment.