1
0
mirror of https://github.com/openshift/installer.git synced 2026-02-05 06:46:36 +01:00
Files
installer/pkg/hostcrypt/dynamic.go
Zane Bitter b4351e8261 Use new build tag to differentiate dynamic build
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.
2024-04-09 13:09:32 +12:00

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")
}