Skip to content

Commit

Permalink
Return Pending for resources in grace period
Browse files Browse the repository at this point in the history
  • Loading branch information
jhoxhaa committed Sep 13, 2024
1 parent 4451ad0 commit b0050df
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pkg/schema/v1/daemon_set.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ func (d *DaemonSet) getIcingaState() (IcingaState, string) {
}

if gracePeriodReason := IsWithinGracePeriod(d); gracePeriodReason != nil {
return Ok, *gracePeriodReason
return Pending, *gracePeriodReason
}

switch {
Expand Down
2 changes: 1 addition & 1 deletion pkg/schema/v1/deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ func (d *Deployment) Obtain(k8s kmetav1.Object) {

func (d *Deployment) getIcingaState() (IcingaState, string) {
if gracePeriodReason := IsWithinGracePeriod(d); gracePeriodReason != nil {
return Ok, *gracePeriodReason
return Pending, *gracePeriodReason
}

for _, condition := range d.Conditions {
Expand Down
2 changes: 1 addition & 1 deletion pkg/schema/v1/replica_set.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ func (r *ReplicaSet) Obtain(k8s kmetav1.Object) {

func (r *ReplicaSet) getIcingaState() (IcingaState, string) {
if gracePeriodReason := IsWithinGracePeriod(r); gracePeriodReason != nil {
return Ok, *gracePeriodReason
return Pending, *gracePeriodReason
}

for _, condition := range r.Conditions {
Expand Down
2 changes: 1 addition & 1 deletion pkg/schema/v1/stateful_set.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ func (s *StatefulSet) Obtain(k8s kmetav1.Object) {

func (s *StatefulSet) getIcingaState() (IcingaState, string) {
if gracePeriodReason := IsWithinGracePeriod(s); gracePeriodReason != nil {
return Ok, *gracePeriodReason
return Pending, *gracePeriodReason
}

switch {
Expand Down

0 comments on commit b0050df

Please sign in to comment.