Documentation
¶
Overview ¶
Package networkverifier contains functionality for running the network verifier
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAdditionalTrustBundle ¶
GetAdditionalTrustBundle retrieves the additional CA trust bundle for a cluster from its Hive SyncSets via the OCM cluster resources API.
func InitializeValidateEgressInput ¶
func InitializeValidateEgressInput(cluster *v1.Cluster, clusterDeployment *hivev1.ClusterDeployment, awsClient aws.Client, additionalTrustBundle string) (*verifier.ValidateEgressInput, error)
InitializeValidateEgressInput computes the input to pass to the network verifier tool. If the cluster has an additional trust bundle configured, additionalTrustBundle should contain the PEM-encoded CA bundle retrieved from Hive.
Types ¶
type VerifierResult ¶
type VerifierResult int
VerifierResult type contains the verifier outcomes
const ( Undefined VerifierResult = 0 Failure VerifierResult = 1 Success VerifierResult = 2 )
Verifier outcomes
func Run ¶
func Run(cluster *v1.Cluster, clusterDeployment *hivev1.ClusterDeployment, awsClient aws.Client, ocmClient ocm.Client) (result VerifierResult, failures string, name error)
Run runs the network verifier tool to check for network misconfigurations. If the cluster has an additional trust bundle configured, it is automatically retrieved via the OCM cluster resources API.