dataManagement parameter
Use the dataManagement parameter to configure data management properties for loading or
upgrading factory data automatically by the Operator.
For more information about annotations for fix pack, see Annotations for IBM Sterling Order Management System Software fix pack.
Important: This configuration is not
required if you choose to do data management manually outside of Sterling Order Management System Software
Operator.
- The
dataManagement
logic monitors the change in version of the Sterling Order Management System Software product based on the image tag, and automatically spawns Kubernetes jobs to apply the database changes contained within the new image. - It also applies entity changes provided within the images.
- The logs of data management pod are saved to persistent volume, <pv path>/logs/<data-management-pod-name>.log.
- To capture logs for data management, use
additionalMounts
to mount a Persistent Volume to the/opt/ssfs/runtime/logs
directory, as shown in the following snippet:additionalMounts: storages: - mountPath: /opt/ssfs/runtime/logs name: <pvc_name> matchLabels: mylabelkey: mylabelvalue
The following .yaml snippet is a sample schema of
dataManagement
:dataManagement:
mode: upgrade
# podLabels: {}
# profile: balanced
# property:
# customerOverrides: ""
# envVars: ""
The following table explains the attributes applicable for the
dataManagement
spec of OMEnvironment.
Property | Default value | Value type | Required | Description |
---|---|---|---|---|
mode |
string | Yes | Specify create as the mode for preparing a fresh database schema including
loading the complete Sterling Order Management System Software factory data.Note:
Specify |
|
podLabels |
object | No | Specify labels for pod as key-value pair. Note: These pod labels are also copied to
deployments.
|
|
profile |
balanced |
string | No | Use the name of the profile from attribute serverProfiles[].name to be used
by the server. |
property.customerOverrides |
string | No | Use the name of customerOverrides from attribute
serverProperties.customerOverrides[].groupName or
serverProperties.customerOverrides[].derivatives[].groupName . These customer
overrides will be injected into the |
|
property.envVars |
string | No | Use the name of envVars from attribute
serverProperties.envVars[].groupName or
serverProperties.envVars[].derivatives[].groupName .These environment variables
will be injected into the |
Annotations for IBM® Sterling Order Management System Software fix pack
Ensure to set the installed-fixpack
annotation on the OMEnvironment manifest to indicate the fix pack that is currently loaded on to the
database. This annotation is used by Operator when dataManagement
is in the
upgrade
mode to load the fix pack factory setup above the
installed-fixpack
.
dataManagement
continues to keep this annotation updated to record the latest
fix pack applied through the Operator. When you move to a new image by patching the OMEnvironment manifest with new image tags, the fix pack factory setup is
loaded appropriately. - For fix pack 32 and below, provide the legacy fix pack number as shown in the following
example:
apps.oms.ibm.com/installed-fixpack: "32"
- For fix pack 10.0.2206.0 and above, provide the Continuous Delivery fix pack number as shown in
the following example:
apps.oms.ibm.com/installed-fixpack: "2206.0"