Skip to content

Commit

Permalink
Add function to create a NATS CR with warning state (#233)
Browse files Browse the repository at this point in the history
* Delete external CRD folder

* Add Setting NATS state to Warning for tests
  • Loading branch information
muralov authored Nov 24, 2023
1 parent 0940701 commit 1904d89
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions testutils/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,13 @@ func WithNATSStateReady() NATSOption {
}
}

func WithNATSStateWarning() NATSOption {
return func(nats *v1alpha1.NATS) error {
nats.Status.State = v1alpha1.StateWarning
return nil
}
}

func WithNATSStateProcessing() NATSOption {
return func(nats *v1alpha1.NATS) error {
nats.Status.State = v1alpha1.StateProcessing
Expand Down

0 comments on commit 1904d89

Please sign in to comment.