domino_admin_toolkit.checks.test_image_builder module
Description: performs multiple checks on ImageBuilder Service of Domino Result: See each check below for expected results
- domino_admin_toolkit.checks.test_image_builder.cert_mgr_client_obj()
- domino_admin_toolkit.checks.test_image_builder.ib_client_obj()
- domino_admin_toolkit.checks.test_image_builder.image_builder_info(ib_client_obj, nucleus_dispatcher)
- Description:
Gets the image builder details, such as version.
- Result:
If this function fails, all subsequent image builder checks fail.
- domino_admin_toolkit.checks.test_image_builder.test_cluster_node_info()
- Description:
Function returning the node info of a deployment
- Result:
Dumps the dictionary of node_info calling k8s
- domino_admin_toolkit.checks.test_image_builder.test_container_registry_certs(ib_client_obj, platform_namespace)
- Description:
Gets the domino-ca and domino-generated-certificate from ImageBuilder
- Result:
Assert if domino-ca is copied to domino-generated-certificates
- domino_admin_toolkit.checks.test_image_builder.test_default_feature_flags(ib_client_obj, nucleus_dispatcher)
- Description:
Displays default feature flags by querying nucleus-dispatcher
- Result:
Dictionary of the default feature flag for a deployment
- domino_admin_toolkit.checks.test_image_builder.test_duplicate_cert_manager(cert_mgr_client_obj)
- Description:
Gets the number of cert_mgr deployments in the cluster.
- Result:
Fail if more than 1 cert-manager deployments in the cluster.
- domino_admin_toolkit.checks.test_image_builder.test_expired_hephaestus_certs(cert_mgr_client_obj)
- Description:
Checks for expired hephaestus certificates in domino deployment.
- Result:
Assert if there are expired hephaestus certificates.
- domino_admin_toolkit.checks.test_image_builder.test_hephaestus_mutating_webhook_configuration(ib_client_obj, image_builder_info, nucleus_dispatcher)
- Description:
Check the existence of mutating_webhook_configuration for hephaestus
- Result:
Log info if the mutatingwebhook is present or not
- domino_admin_toolkit.checks.test_image_builder.test_hephaestus_root_tls()
- Description:
Check the availability of hephaestus-root-tls secret in the cluster.
- Result:
Fail if hephaestus-root-tls is missing in the cluster.
- domino_admin_toolkit.checks.test_image_builder.test_ib_config(ib_client_obj, compute_namespace, image_builder_info, nucleus_dispatcher)
- Description:
Displays the config for hephaestus /forge
- Result:
Decode base64 secret of hephaestus config or just forge deployment
- domino_admin_toolkit.checks.test_image_builder.test_ib_crds(ib_client_obj, image_builder_info, nucleus_dispatcher)
- Description:
Check the CRDs for image builder of interest.
- Result:
Dumps the dictionary of node_info from kubernetes_client
- domino_admin_toolkit.checks.test_image_builder.test_image_builder(ib_client_obj, image_builder_info)
- Description:
Displays the image builder details, such as version.
- Result:
Image builder details such as version.
- domino_admin_toolkit.checks.test_image_builder.test_image_builder_resources_to_check(ib_client_obj, image_builder_info, nucleus_dispatcher)
- Description:
Function dumps the resources to check depending on image builder version
- Result:
Dumps the dictionary of k8s resources for respective image builder version
- domino_admin_toolkit.checks.test_image_builder.test_number_of_failed_build_pods()
- Description:
Function which finds out the failed pods in compute namespace (of interest for imagebuilder where the execution runs)
- Result:
Assert if the number of failed pods > 100
- domino_admin_toolkit.checks.test_image_builder.test_race_condition_between_forge_hephaestus(ib_client_obj, image_builder_info, nucleus_dispatcher)
- Description:
Function which finds out the failed pods in compute namespace (of interest for imagebuilder where the execution runs)
- Result:
Assert if the number of failed pods > 100