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.
TFOperator uses API v2 that aligns with the OpenStack Controller
API and provides a user-friendly interface for advanced configurations.
For the list of configuration options available to a cloud operator, refer to OpenSDN configuration. Also, check out the OpenSDN Operator (TFOperator) resources document of the MOSK version that your cluster has been deployed with.
TFOperator custom resource validation¶
TFOperator uses ValidatingAdmissionWebhook to validate
environment variables set to OpenSDN components upon the TFOperator
object creation or update. The following validations are performed:
Environment variables passed to the OpenSDN components containers
Mapping between
tfVersionandtfImageTag, if definedSchedule for
dbBackupData capacity format
Feature variable values
Availability of the
dataStorageClassclass
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 OpenSDN components¶
Warning
The features section of the TFOperator specification
allows for easy configuration of all OpenSDN features. Mirantis
recommends updating the environment variables through envSettings
directly.
Environment variables |
OpenSDN service and |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|