mirror of
https://github.com/openshift/installer.git
synced 2026-02-05 15:47:14 +01:00
18 lines
557 B
Go
18 lines
557 B
Go
//go:build !fipscapable
|
|
// +build !fipscapable
|
|
|
|
package hostcrypt
|
|
|
|
import "fmt"
|
|
|
|
const binaryInstructions = "To obtain a suitable binary, download the openshift-install-rhel9 archive from the client mirror, or extract the openshift-install-fips command from the release payload."
|
|
|
|
func allowFIPSCluster() error {
|
|
hostMsg := ""
|
|
if fipsEnabled, err := hostFIPSEnabled(); err != nil || !fipsEnabled {
|
|
hostMsg = " on a host with FIPS enabled"
|
|
}
|
|
return fmt.Errorf("use the FIPS-capable installer binary for RHEL 9%s.\n%s",
|
|
hostMsg, binaryInstructions)
|
|
}
|