Skip to content

Commit

Permalink
Merge pull request #893 from NVIDIA/nse-err
Browse files Browse the repository at this point in the history
  • Loading branch information
tariq1890 authored Aug 2, 2024
2 parents 2993021 + 199da11 commit eb7e633
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
8 changes: 8 additions & 0 deletions assets/state-node-status-exporter/0200_role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,11 @@ rules:
verbs:
- get
- list
- apiGroups:
- apps
resources:
- daemonsets
verbs:
- get
- list
- watch
4 changes: 4 additions & 0 deletions assets/state-node-status-exporter/0700_daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ spec:
valueFrom:
fieldRef:
fieldPath: spec.nodeName
- name: OPERATOR_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
ports:
- name: node-status
containerPort: 8000
Expand Down
1 change: 1 addition & 0 deletions validator/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ func (nm *NodeMetrics) watchDriverValidation() {
nm.driverValidation.Set(1)
nm.driverValidationLastSuccess.Set(float64(time.Now().Unix()))
} else {
log.Errorf("failed to validate driver: %v", err)
nm.driverValidation.Set(0)
}
time.Sleep(driverValidationCheckDelaySeconds * time.Second)
Expand Down

0 comments on commit eb7e633

Please sign in to comment.