Skip to content

Commit

Permalink
Check for license status
Browse files Browse the repository at this point in the history
Signed-off-by: Tamal Saha <[email protected]>
  • Loading branch information
tamalsaha committed May 15, 2024
1 parent 526e65a commit b3cecde
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/nats.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ func NewNatsConfig(cfg *rest.Config, clusterID string, LicenseFile string) (*Nat
return nil, nil, err
}
license, licenseBytes := le.LoadLicense()
if license.Status != v1alpha1.LicenseActive {
return nil, nil, fmt.Errorf("license status is %s", license.Status)
}

opts := verifier.Options{
ClusterUID: clusterID,
Expand Down

0 comments on commit b3cecde

Please sign in to comment.