Instance Status Conditions - API Reference

This document provides a comprehensive overview of all Instance conditions used by the MES Operator.

Each condition is used to report on a specific aspect of the MES Instance’s operational or configuration state. These conditions are reported under the status.conditions field of the Instance Custom Resource.

Not all conditions are always present on the Instance resource.

The availability of conditions depends on multiple factors, including:

  • The current lifecycle phase of the Instance (e.g., DEPLOYING, UNDEPLOYED, etc.)

  • The configuration of the resource, including whether optional features or components are enabled

Conditions are only reported when they are relevant to the current context and evaluated during reconciliation.

Top-Level Aggregation Condition

This chapter covers the primary health status condition that aggregates the state of all underlying component conditions. It provides an overall readiness indication for the Instance by evaluating the collective status of its sub-conditions.

Ready

Description

The Ready condition serves as the top-level indicator for the overall health and readiness of an Instance resource. It is a composite condition, meaning its evaluation is based on the state of all relevant sub-conditions (e.g., referenced GenericServices, required Secrets, result of database schema migration, etc.).

Ready=True does not necessarily mean the entire MES System is fully installed or actively running. Instead, it means the Instance is in a valid and expected state for its current configuration and lifecycle phase.

For example, if some referenced components are intentionally undeployed or optional, Ready=True still reflects that all declared requirements are met within those constraints.

Evaluation

The Ready condition is always evaluated, regardless of whether the Instance is actively deploying, or in an undeployed state. It reflects whether the Instance is internally consistent, correctly configured, and all mandatory sub-resources are present and healthy.

Condition States and Interpretation

✅ All Sub-Conditions Healthy

The Instance is considered ready because all sub-conditions are healthy.

  • status: True

  • reason: AllSubConditionsHealthy

  • message: All sub-conditions are healthy.

This is the desired state for any operational context of the Instance.

❌ Some Sub-Conditions Not Healthy

One or more sub-conditions have failed. The Instance is not ready.

  • status: False

  • reason: SubConditionsNotHealthy

  • message: Following sub-conditions are not healthy: [<list of failed condition types>]

This typically signals a misconfiguration, missing dependency, or runtime failure of a referenced resource. The message includes the failed sub-condition types to support diagnostics.

❓ Sub-Condition Status Unknown

The readiness of the Instance cannot be determined yet due to incomplete or pending evaluation of one or more sub-conditions.

  • status: Unknown

  • reason: SubConditionsUnknown

  • message: Following sub-conditions are unknown: [<list of unknown condition types>]

This state occurs when one or more sub-conditions return Unknown, and none are False.

If at least one sub-condition reports False, it takes precedence over Unknown, and the overall Ready condition will be False.

The Ready condition is only set to Unknown if none of the sub-conditions report False, but at least one reports Unknown.

Individual Component Conditions

This chapter contains detailed conditions related to specific components and resources of the Instance. Each condition reflects the health, existence, or readiness of individual elements, enabling fine-grained monitoring and troubleshooting. Conditions are listed alphabetically for easy reference.

DbSchemaMigrationSucceeded

Description

The DbSchemaMigrationSucceeded condition reflects the process of the database schema migration (also known as execution of DB-Installer) triggered for the associated GenericService resources.

This condition ensures that all GenericServices requiring database schema migrations have completed them successfully.

Evaluation

This condition is only enabled when the Instance is in phase MIGRATING or MIGRATED.

Condition States and Interpretation

✅ All Migrations Succeeded

All applicable schema migrations have completed successfully.

  • status: True

  • reason: MigrationCompleted

  • message: Database schema migration has been successfully completed.

This is the expected state once all components finish migrating.

❌ Some Migrations Failed

At least one schema migration has failed. The instance cannot proceed safely.

  • status: False

  • reason: MigrationFailed

  • message: Database schema migration failed for following GenericServices: [<list of affected GenericServices>].

This indicates a critical issue requiring resolution.

⏳ Migrations Still Pending

One or more schema migrations are still in progress or have not started yet.

  • status: False

  • reason: MigrationPending

  • message: Database schema migration is pending for following GenericServices: [<list of affected GenericServices>].

This is a transitional state during initial deployment or upgrades.


EveryGenericServicesExisting

Description

The EveryGenericServicesExisting condition checks whether all GenericService resources defined are present in the namespace.

This ensures that required GenericServices exist before any operational checks or migration steps are executed.

Evaluation

This condition is always enabled.

Condition States and Interpretation

✅ All Services Found

All required GenericService resources are present in the same namespace.

  • status: True

  • reason: ResourcesFound

  • message: All required GenericServices are existing.

❌ Some Services Missing

At least one required GenericService resource is not existing in the namespace.

  • status: False

  • reason: ResourcesMissing

  • message: Following GenericServices are missing: [<missingGenericServices>].


EveryGenericServicesReady

Description

The EveryGenericServicesReady condition verifies that all declared GenericService resources are healthy and operational.

This reflects runtime readiness of core platform services.

Evaluation

This condition is only enabled when the Instance is in phase DEPLOYING or RUNNING.

Condition States and Interpretation

✅ All Services Ready

All required GenericService resources are fully operational and ready.

  • status: True

  • reason: ResourcesReady

  • message: All required GenericServices are fully operational.

❌ Some Services Not Ready

At least one required GenericService resource is not ready or operational.

  • status: False

  • reason: ResourcesNotReady

  • message: Following GenericServices are not ready: [<notReadyGenericServices>].

If one or more GenericService resources are not ready, inspect their status.phase and associated status.conditions to identify the cause. This will help determine whether the issue is related to deployment progress, configuration errors, or unmet dependencies.


DatabaseSecretExisting

Description

The DatabaseSecretExisting condition checks whether a Kubernetes Secret required for database access exists in the namespace.

Depending on the configuration of the Instance resource, the Secret may be:

  • Managed by the MES Operator (automatically created and deleted)

  • Externally provided by the user (must exist before deployment)

This condition only verifies the existence of the Database Secret. It does not validate the Secret’s content, format, or correctness.

Evaluation

The condition is enabled based on the current lifecycle phase and how the Secret is managed:

  • If the Instance defines a database configuration:

    • In phases MIGRATING, DEPLOYING, or RUNNING, the condition is always checked.

    • In other phases (e.g., UNDEPLOYED, MIGRATED), it is checked only if the database Secret is externally managed.

This ensures that the condition reflects the presence of the Secret when it matters operationally, regardless of whether the operator manages it.

Condition States and Interpretation

✅ Secret Present

The required Database Secret is present in the namespace.

  • status: True

  • reason: ResourceFound

  • message: The required Database Secret is present.

❌ Secret Missing

The required Database Secret is not present in the namespace.

  • status: False

  • reason: ResourceMissing

  • message: The required Database Secret is missing.


DatabaseCertificateSecretExisting

Description

The DatabaseCertificateSecretExisting condition checks whether the Kubernetes Secret referenced for trusted certificate material for TLS to the database exists in the same namespace as the Instance.

That Secret must be externally provided and must follow the structure defined in the certificate management documentation (see Certificates).

This condition only verifies the existence of the Database Certificate Secret. It does not validate the certificate chain, expiration, or other content.

Evaluation

This condition is evaluated only when Instance.spec.database.certificateSecretName is set (non-empty).

If no database certificate Secret is configured, the condition is entirely skipped.

Condition States and Interpretation

✅ Secret Present

The required Database Certificate Secret is present in the namespace.

  • status: True

  • reason: ResourceFound

  • message: The required Database Certificate Secret is present.

❌ Secret Missing

The required Database Certificate Secret is not present in the namespace.

  • status: False

  • reason: ResourceMissing

  • message: The required Database Certificate Secret is missing.


MailServerSecretExisting

Description

The MailServerSecretExisting condition checks whether a Kubernetes Secret containing Mail Server credentials already exists in the same namespace as the Instance.

This Secret needs to be externally provided by the customer or another automation process.

This condition only verifies the existence of the Secret. It does not validate the credentials, format, or correctness.

Evaluation

This condition is evaluated only when the Instance has a Mail Server configuration that is enabled. In such cases, the condition is always assessed.

If the Mail Server is not configured or disabled, the condition is entirely skipped.

Condition States and Interpretation

✅ Secret Present

The required Mail Server Secret is found in the namespace.

  • status: True

  • reason: ResourceFound

  • message: The required MailServer Secret is present.

❌ Secret Missing

The Mail Server Secret is not found in the namespace.

  • status: False

  • reason: ResourceMissing

  • message: The required MailServer Secret is missing.


MailServerCertificateSecretExisting

Description

The MailServerCertificateSecretExisting condition checks whether the Kubernetes Secret referenced for trusted certificate material for TLS to the Mail Server exists in the same namespace as the Instance.

That Secret must be externally provided and must follow the structure defined in the certificate management documentation.

This condition only verifies the existence of the Mail Server Certificate Secret. It does not validate the certificate content, format, or expiration.

Evaluation

This condition is evaluated only when Instance.spec.mailServer.certificateSecretName is set (non-empty).

If no Mail Server certificate Secret is configured, the condition is entirely skipped (including when the Mail Server itself is not configured).

Condition States and Interpretation

✅ Secret Present

The required MailServer Certificate Secret is present in the namespace.

  • status: True

  • reason: ResourceFound

  • message: The required MailServer Certificate Secret is present.

❌ Secret Missing

The required MailServer Certificate Secret is not present in the namespace.

  • status: False

  • reason: ResourceMissing

  • message: The required MailServer Certificate Secret is missing.


ErpSystemSecretExisting

Description

The ErpSystemSecretExisting condition checks whether a Kubernetes Secret containing ERP system credentials already exists in the same namespace as the Instance.

This Secret needs to be externally provided by the customer or another automation process.

This condition only verifies the existence of the Secret. It does not validate the credentials, format, or correctness.

Evaluation

This condition is evaluated only when the Instance has an ERP system configuration that is enabled. In such cases, the condition is always assessed.

If no ERP system is configured or the feature is disabled, the condition is entirely skipped.

Condition States and Interpretation

✅ Secret Present

The required ERP System Secret is found in the namespace.

  • status: True

  • reason: ResourceFound

  • message: The required ERP System Secret is present.

❌ Secret Missing

The ERP System Secret is not found in the namespace.

  • status: False

  • reason: ResourceMissing

  • message: The required ERP System Secret is missing.


ErpSystemCertificateSecretExisting

Description

The ErpSystemCertificateSecretExisting condition checks whether the Kubernetes Secret referenced for trusted certificate material for TLS to the ERP system exists in the same namespace as the Instance.

That Secret must be externally provided and must follow the structure defined in the certificate management documentation.

This condition only verifies the existence of the ERP System Certificate Secret. It does not validate the certificate content, format, or expiration.

Evaluation

This condition is evaluated only when Instance.spec.erpSystem.certificateSecretName is set (non-empty).

If no ERP System certificate Secret is configured, the condition is entirely skipped (including when no ERP system is configured).

Condition States and Interpretation

✅ Secret Present

The required ERP System Certificate Secret is present in the namespace.

  • status: True

  • reason: ResourceFound

  • message: The required ERP System Certificate Secret is present.

❌ Secret Missing

The required ERP System Certificate Secret is not present in the namespace.

  • status: False

  • reason: ResourceMissing

  • message: The required ERP System Certificate Secret is missing.


AudaSecretExisting

Description

The AudaSecretExisting condition checks whether the Kubernetes Secret required for Auda exists in the same namespace as the Instance.

This Secret needs to be externally provided by the customer or another automation process (see Auda Secret).

This condition only verifies the existence of the Auda Secret. It does not validate the Secret’s content, format, or correctness.

Evaluation

This condition is evaluated only if the Instance.spec.auda field is defined.

If Auda is not configured, the condition is entirely skipped.

Condition States and Interpretation

✅ Secret Present

The required Auda Secret is found in the namespace.

  • status: True

  • reason: ResourceFound

  • message: The required Auda Secret is present.

❌ Secret Missing

The Auda Secret is not found in the namespace.

  • status: False

  • reason: ResourceMissing

  • message: The required Auda Secret is missing.


AuthServerExternalIdpSecretExisting

Description

The AuthServerExternalIdpSecretExisting condition checks whether the Kubernetes Secret containing the external Identity Provider (IdP) client credentials used by the Auth Server exists in the same namespace as the Instance.

This Secret needs to be externally provided by the customer or another automation process (see External IdP Client Secret).

This condition only verifies the existence of the Secret. It does not validate the credentials, format, or correctness.

Evaluation

This condition is evaluated only when Instance.spec.authServer.secretName is set (non-empty).

If no external IdP Secret is configured, the condition is entirely skipped.

Condition States and Interpretation

✅ Secret Present

The required Auth Server external IdP Secret is found in the namespace.

  • status: True

  • reason: ResourceFound

  • message: The required Auth Server external IdP Secret is present.

❌ Secret Missing

The Auth Server external IdP Secret is not found in the namespace.

  • status: False

  • reason: ResourceMissing

  • message: The required Auth Server external IdP Secret is missing.


LdapSecretExisting

Description

The LdapSecretExisting condition checks whether the Kubernetes Secret containing LDAP credentials exists in the same namespace as the Instance.

This Secret needs to be externally provided by the customer or another automation process (see LDAP Secret).

This condition only verifies the existence of the Secret. It does not validate the credentials, format, or correctness.

Evaluation

This condition is evaluated only when Instance.spec.ldap.secretName is set (non-empty).

If no LDAP Secret is configured, the condition is entirely skipped.

Condition States and Interpretation

✅ Secret Present

The required LDAP Secret is found in the namespace.

  • status: True

  • reason: ResourceFound

  • message: The required LDAP Secret is present.

❌ Secret Missing

The LDAP Secret is not found in the namespace.

  • status: False

  • reason: ResourceMissing

  • message: The required LDAP Secret is missing.


LDAPCertificateSecretExisting

Description

The LDAPCertificateSecretExisting condition checks whether the Kubernetes Secret referenced for trusted certificate material for TLS to the LDAP server exists in the same namespace as the Instance.

That Secret must be externally provided and must follow the structure defined in the certificate management documentation.

Unlike the other condition types, this type name uses the uppercase prefix LDAP.

This condition only verifies the existence of the LDAP Certificate Secret. It does not validate the certificate content, format, or expiration.

Evaluation

This condition is evaluated only when Instance.spec.ldap.certificateSecretName is set (non-empty).

If no LDAP certificate Secret is configured, the condition is entirely skipped (including when LDAP is not configured).

Condition States and Interpretation

✅ Secret Present

The required LDAP Certificate Secret is present in the namespace.

  • status: True

  • reason: ResourceFound

  • message: The required LDAP Certificate Secret is present.

❌ Secret Missing

The required LDAP Certificate Secret is not present in the namespace.

  • status: False

  • reason: ResourceMissing

  • message: The required LDAP Certificate Secret is missing.


RabbitMqSecretExisting

Description

The RabbitMqSecretExisting condition checks whether the Kubernetes Secret required for accessing RabbitMQ exists in the same namespace as the Instance.

The Secret must be created by another process or integration outside the MES Operator’s control.

This condition only verifies the existence of the RabbitMQ Secret. It does not validate the Secret’s content, format, or correctness.

Evaluation

This condition is evaluated only if the Instance.spec.rabbitmq field is defined.

If no RabbitMQ connection is configured, the condition is skipped entirely, as there is no expectation for a RabbitMQ Secret to exist.

Condition States and Interpretation

✅ Secret Present

The required RabbitMQ Secret is found in the namespace.

  • status: True

  • reason: ResourceFound

  • message: The required RabbitMQ Secret is present.

❌ Secret Missing

The RabbitMQ Secret is not found in the namespace.

  • status: False

  • reason: ResourceMissing

  • message: The required RabbitMQ Secret is missing.

RouterSecretReaderRbacExisting

Description

The RouterSecretReaderRbacExisting condition checks that the router Secret-reader Role and RoleBinding exist in the Instance namespace. They grant the configured OpenShift router ServiceAccount read access to the TLS Secret referenced by spec.tls.externalCertificate on Routes.

Evaluation

The condition is evaluated on OpenShift, regardless of lifecycle phase, only when all these conditions are met and Instance fields are provided:

  • The cluster is OpenShift.

  • spec.ingress.tls.secretName

Condition states and interpretation

Status Reason Interpretation

True

ResourceFound

Both expected router Secret-reader RBAC resources exist.

False

ResourceMissing

The expected Role or RoleBinding is missing.

This condition does not report Unknown or validate certificate contents, router identity correctness, or Route admission. For certificate requirements, see OpenShift edge Route certificates.

Condition States and Interpretation

This condition only reports two states (True or False) indicating existence or absence of the Secret reader RBAC. An Unknown status is not used for this condition.

✅ Secret reader RBAC Exists

Both the expected Role and RoleBinding exist in the Instance namespace.

  • status: True

  • reason: ResourceFound

  • message: The required OpenShift router Secret reader RBAC is present.

❌ Secret reader RBAC Missing

The expected Role or RoleBinding is missing from the Instance namespace.

  • status: False

  • reason: ResourceMissing

  • message: The required OpenShift router Secret reader RBAC is missing.

SharedSecuritySecretExisting

Description

The SharedSecuritySecretExisting condition checks whether the Kubernetes Secret required for secure REST communication between services exists in the same namespace as the Instance.

The Secret is created automatically during the installation process.

This condition only verifies the existence of the SharedSecurity Secret. It does not validate the Secret’s content, format, or correctness.

Evaluation

This condition is only evaluated when the Instance is in phase DEPLOYING or RUNNING.

Condition States and Interpretation

✅ Secret Present

The required SharedSecurity Secret is found in the namespace.

  • status: True

  • reason: ResourceFound

  • message: The required SharedSecurity Secret is present.

❌ Secret Missing

The SharedSecurity Secret is not found in the namespace.

  • status: False

  • reason: ResourceMissing

  • message: The required SharedSecurity Secret is missing.

IngressTlsSecretExisting

Description

The IngressTlsSecretExisting condition checks whether the Kubernetes Secret used for Ingress TLS termination exists in the same namespace as the Instance.

This condition only verifies the existence of the Ingress TLS Secret. It does not validate the certificate content, format, or expiration.

Evaluation

This condition is evaluated only when Ingress TLS is enabled for the Instance. In such cases, the condition is always assessed.

If TLS is disabled for the Ingress, this condition is skipped entirely.

Condition States and Interpretation

✅ Secret Present

The required Ingress TLS Secret is present in the namespace.

  • status: True

  • reason: ResourceFound

  • message: The required Ingress TLS Secret is present.

❌ Secret Missing

The required Ingress TLS Secret is not present in the namespace.

  • status: False

  • reason: ResourceMissing

  • message: The required Ingress TLS Secret is missing.

KongBlockApiPatternPluginExisting

Description

The KongBlockApiPatternPluginExisting condition indicates whether the Kong block-api-pattern plugin associated with the Instance exists in the cluster.

This plugin is managed by the MES Operator and is used with the Kong Ingress Controller to block specific API path patterns before traffic reaches backend services.

Evaluation

This condition is evaluated only when all the following conditions apply:

  • The related Instance is configured to use the kong Ingress controller.

  • The lifecycle phase of the Instance is DEPLOYING, RUNNING, or ERROR.

Condition States and Interpretation

This condition only reports two states (True or False) indicating existence or absence of the Kong plugin. An Unknown status is not used for this condition.

✅ Kong Block-API-Pattern Plugin Exists

The required Kong block-api-pattern plugin is present in the same namespace.

  • status: True

  • reason: ResourceFound

  • message: The required Kong BlockApiPattern Plugin is present.

❌ Kong Block-API-Pattern Plugin Missing

The expected Kong block-api-pattern plugin has not been found in the same namespace.

  • status: False

  • reason: ResourceMissing

  • message: The required Kong BlockApiPattern plugin is missing.

If this plugin is missing, Kong-managed ingress traffic will not apply the intended API path blocking behavior. Verify that the Instance is configured to use the Kong ingress controller and check the MES Operator logs for reconciliation errors.