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 The availability of conditions depends on multiple factors, including:
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.).
|
For example, if some referenced components are intentionally undeployed or optional, |
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 The |
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.
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.
EveryGenericServicesReady
Description
The EveryGenericServicesReady condition verifies that all declared GenericService resources are healthy and operational.
This reflects runtime readiness of core platform services.
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 |
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
Instancedefines a database configuration:-
In phases
MIGRATING,DEPLOYING, orRUNNING, 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.
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.
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.
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).
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.
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).
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.
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.
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.
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 |
|
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).
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.
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 |
|---|---|---|
|
|
Both expected router Secret-reader RBAC resources exist. |
|
|
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.
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. |
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.
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
Instanceis configured to use the kong Ingress controller. -
The lifecycle phase of the
InstanceisDEPLOYING,RUNNING, orERROR.
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 |