11# Generated using https://github.com/RedHatQE/openshift-python-wrapper/blob/main/scripts/resource/README.md
22
3+
34from typing import Any
45
56from ocp_resources .exceptions import MissingRequiredArgumentError
@@ -16,29 +17,43 @@ class GuardrailsOrchestrator(NamespacedResource):
1617 def __init__ (
1718 self ,
1819 auto_config : dict [str , Any ] | None = None ,
20+ custom_detectors_config : str | None = None ,
21+ disable_orchestrator : bool | None = None ,
1922 enable_built_in_detectors : bool | None = None ,
2023 enable_guardrails_gateway : bool | None = None ,
24+ env : list [Any ] | None = None ,
2125 guardrails_gateway_config : str | None = None ,
2226 log_level : str | None = None ,
2327 orchestrator_config : str | None = None ,
2428 otel_exporter : dict [str , Any ] | None = None ,
2529 replicas : int | None = None ,
30+ tls_secrets : list [Any ] | None = None ,
2631 ** kwargs : Any ,
2732 ) -> None :
2833 r"""
2934 Args:
3035 auto_config (dict[str, Any]): Settings governing the automatic configuration of the orchestrator.
3136 Replaces `OrchestratorConfig`.
3237
38+ custom_detectors_config (str): Name of configmap containing user-defined Python detectors. This is
39+ only used if EnableBuiltInDetectors is true
40+
41+ disable_orchestrator (bool): Boolean flag to disable the orchestrator container, if running the
42+ built-in detectors in standalone mode
43+
3344 enable_built_in_detectors (bool): Boolean flag to enable/disable built-in detectors
3445
3546 enable_guardrails_gateway (bool): Boolean flag to enable/disable the guardrails sidecar gateway
3647
48+ env (list[Any]): Define environment variables. These will be added to the orchestrator,
49+ gateway, and built-in detector pods.
50+
3751 guardrails_gateway_config (str): Name of the configmap containing guadrails sidecar gateway arguments
3852
3953 log_level (str): Set log level in the orchestrator deployment
4054
41- orchestrator_config (str): Name of configmap containing generator,detector,and chunker arguments
55+ orchestrator_config (str): Name of configmap containing generator, detector, and chunker
56+ arguments
4257
4358 otel_exporter (dict[str, Any]): List of orchestrator enviroment variables for configuring the OTLP
4459 exporter
@@ -47,19 +62,27 @@ def __init__(
4762 Run "make" to regenerate code after modifying this file Number of
4863 replicas
4964
65+ tls_secrets (list[Any]): Define TLS secrets to be mounted to the orchestrator. Secrets will be
66+ mounted at /etc/tls/$SECRET_NAME
67+
5068 """
5169 super ().__init__ (** kwargs )
5270
5371 self .auto_config = auto_config
72+ self .custom_detectors_config = custom_detectors_config
73+ self .disable_orchestrator = disable_orchestrator
5474 self .enable_built_in_detectors = enable_built_in_detectors
5575 self .enable_guardrails_gateway = enable_guardrails_gateway
76+ self .env = env
5677 self .guardrails_gateway_config = guardrails_gateway_config
5778 self .log_level = log_level
5879 self .orchestrator_config = orchestrator_config
5980 self .otel_exporter = otel_exporter
6081 self .replicas = replicas
82+ self .tls_secrets = tls_secrets
6183
6284 def to_dict (self ) -> None :
85+
6386 super ().to_dict ()
6487
6588 if not self .kind_dict and not self .yaml_file :
@@ -74,12 +97,21 @@ def to_dict(self) -> None:
7497 if self .auto_config is not None :
7598 _spec ["autoConfig" ] = self .auto_config
7699
100+ if self .custom_detectors_config is not None :
101+ _spec ["customDetectorsConfig" ] = self .custom_detectors_config
102+
103+ if self .disable_orchestrator is not None :
104+ _spec ["disableOrchestrator" ] = self .disable_orchestrator
105+
77106 if self .enable_built_in_detectors is not None :
78107 _spec ["enableBuiltInDetectors" ] = self .enable_built_in_detectors
79108
80109 if self .enable_guardrails_gateway is not None :
81110 _spec ["enableGuardrailsGateway" ] = self .enable_guardrails_gateway
82111
112+ if self .env is not None :
113+ _spec ["env" ] = self .env
114+
83115 if self .guardrails_gateway_config is not None :
84116 _spec ["guardrailsGatewayConfig" ] = self .guardrails_gateway_config
85117
@@ -92,4 +124,7 @@ def to_dict(self) -> None:
92124 if self .otel_exporter is not None :
93125 _spec ["otelExporter" ] = self .otel_exporter
94126
127+ if self .tls_secrets is not None :
128+ _spec ["tlsSecrets" ] = self .tls_secrets
129+
95130 # End of generated code
0 commit comments