1
0
mirror of https://github.com/openshift/installer.git synced 2026-02-05 15:47:14 +01:00
Files
installer/pkg/hostcrypt/static.go
Rafael Fonseca a3df94e2e4 hostcrypt: update fips instructions to rhel9
Update the warning message to say rhel9 instead of rhel8.
2024-04-29 20:49:37 +02:00

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