TFOperator custom resource¶
The resource of kind TFOperator
is a custom resource defined by a resource
of kind CustomResourceDefinition
.
The CustomResourceDefinition
resource in Kubernetes uses the OpenAPI
Specification version 2 to specify the schema of the defined resource.
The Kubernetes API outright rejects the resources that do not pass this schema
validation. Along with schema validation, TFOperator
uses
ValidatingAdmissionWebhook
for extended validations when a custom resource
is created or updated.
Important
Since 24.1, MOSK introduces the technical preview support for the API v2 for the Tungsten Fabric Operator. This version of the Tungsten Fabric Operator API aligns with the OpenStack Controller API and provides better interface for advanced configurations. Refer to Key differences between TFOperator API v1alpha1 and v2 for details.
For the list of configuration options available to a cloud operator, refer to Tungsten Fabric configuration. Also, check out the Tungsten Fabric API Reference document of the MOSK version that your cluster has been deployed with.
TFOperator custom resource validation¶
Tungsten Fabric Operator uses ValidatingAdmissionWebhook
to validate
environment variables set to Tungsten Fabric components upon the TFOperator
object creation or update. The following validations are performed:
Environment variables passed to the Tungsten Fabric components containers
Mapping between
tfVersion
andtfImageTag
, if definedSchedule for
dbBackup
Data capacity format
Feature variable values
Availability of the
dataStorageClass
class
If required, you can disable ValidatingAdmissionWebhook
through the
TFOperator
HelmBundle resource:
apiVersion: lcm.mirantis.com/v1alpha1
kind: HelmBundle
metadata:
name: tungstenfabric-operator
namespace: tf
spec:
releases:
- name: tungstenfabric-operator
values:
admission:
enabled: false
Environment variables for Tungsten Fabric components¶
Warning
The features
section of the TFOperator
specification
allows for easy configuration of all Tungsten Fabric features. Mirantis
recommends updating the environment variables through envSettings
directly.
Environment variables |
Tungsten Fabric service and |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Environment variables |
Tungsten Fabric components and containers |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|