github.com/openshift/installer@v1.4.17/pkg/hostcrypt/dynamic.go (about)

     1  //go:build fipscapable
     2  // +build fipscapable
     3  
     4  package hostcrypt
     5  
     6  import "fmt"
     7  
     8  func allowFIPSCluster() error {
     9  	fipsEnabled, err := hostFIPSEnabled()
    10  	if err != nil {
    11  		return err
    12  	}
    13  	if fipsEnabled {
    14  		return nil
    15  	}
    16  	return fmt.Errorf("enable FIPS mode on the host")
    17  }