mirror of
https://github.com/openshift/installer.git
synced 2026-02-05 15:47:14 +01:00
When we linked to libvirt directly, having the libvirt platform in the build was synonymous with a dynamically linked build. Now that we use a pure-Go libvirt library, the build type can be independent of whether libvirt is included. Once the baremetal installer build no longer includes the libvirt platform, we still want it to be dynamically linked.
18 lines
270 B
Go
18 lines
270 B
Go
//go:build fipscapable
|
|
// +build fipscapable
|
|
|
|
package hostcrypt
|
|
|
|
import "fmt"
|
|
|
|
func allowFIPSCluster() error {
|
|
fipsEnabled, err := hostFIPSEnabled()
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if fipsEnabled {
|
|
return nil
|
|
}
|
|
return fmt.Errorf("enable FIPS mode on the host")
|
|
}
|