pub struct RivvenConnectSpec {Show 21 fields
pub cluster_ref: ClusterReference,
pub replicas: i32,
pub version: String,
pub image: Option<String>,
pub image_pull_policy: String,
pub image_pull_secrets: Vec<String>,
pub resources: Option<Value>,
pub config: ConnectConfigSpec,
pub sources: Vec<SourceConnectorSpec>,
pub sinks: Vec<SinkConnectorSpec>,
pub settings: GlobalConnectSettings,
pub tls: ConnectTlsSpec,
pub pod_annotations: BTreeMap<String, String>,
pub pod_labels: BTreeMap<String, String>,
pub env: Vec<EnvVar>,
pub node_selector: BTreeMap<String, String>,
pub tolerations: Vec<Toleration>,
pub affinity: Option<Value>,
pub service_account: Option<String>,
pub security_context: Option<Value>,
pub container_security_context: Option<Value>,
}Expand description
RivvenConnect custom resource for managing connectors
This CRD allows declarative management of Rivven Connect pipelines, including source connectors (CDC, HTTP, etc.) and sink connectors (S3, stdout, HTTP webhooks, etc.).
Fields§
§cluster_ref: ClusterReferenceReference to the RivvenCluster this connect instance connects to
replicas: i32Number of connect worker replicas (1-10)
version: StringConnect image version
image: Option<String>Custom container image (overrides version-based default)
image_pull_policy: StringImage pull policy
image_pull_secrets: Vec<String>Image pull secrets
resources: Option<Value>Resource requests/limits (following k8s ResourceRequirements schema)
config: ConnectConfigSpecGlobal connect configuration
sources: Vec<SourceConnectorSpec>Source connectors (read from external systems, publish to Rivven)
sinks: Vec<SinkConnectorSpec>Sink connectors (consume from Rivven, write to external systems)
settings: GlobalConnectSettingsGlobal settings for all connectors
tls: ConnectTlsSpecTLS configuration for broker connection
pod_annotations: BTreeMap<String, String>Pod annotations
pod_labels: BTreeMap<String, String>Pod labels (cannot override app.kubernetes.io/* labels)
env: Vec<EnvVar>Environment variables for the container
node_selector: BTreeMap<String, String>Node selector for pod scheduling
tolerations: Vec<Toleration>Pod tolerations
affinity: Option<Value>Pod affinity rules
service_account: Option<String>Service account name
security_context: Option<Value>Pod security context
container_security_context: Option<Value>Container security context
Implementations§
Source§impl RivvenConnectSpec
impl RivvenConnectSpec
Sourcepub fn get_labels(&self, connect_name: &str) -> BTreeMap<String, String>
pub fn get_labels(&self, connect_name: &str) -> BTreeMap<String, String>
Get labels for managed resources
Sourcepub fn get_selector_labels(
&self,
connect_name: &str,
) -> BTreeMap<String, String>
pub fn get_selector_labels( &self, connect_name: &str, ) -> BTreeMap<String, String>
Get selector labels for managed resources
Sourcepub fn enabled_sources_count(&self) -> usize
pub fn enabled_sources_count(&self) -> usize
Get enabled sources count
Sourcepub fn enabled_sinks_count(&self) -> usize
pub fn enabled_sinks_count(&self) -> usize
Get enabled sinks count
Trait Implementations§
Source§impl Clone for RivvenConnectSpec
impl Clone for RivvenConnectSpec
Source§fn clone(&self) -> RivvenConnectSpec
fn clone(&self) -> RivvenConnectSpec
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RivvenConnectSpec
impl Debug for RivvenConnectSpec
Source§impl<'de> Deserialize<'de> for RivvenConnectSpec
impl<'de> Deserialize<'de> for RivvenConnectSpec
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for RivvenConnectSpec
impl JsonSchema for RivvenConnectSpec
Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref keyword. Read moreSource§impl Serialize for RivvenConnectSpec
impl Serialize for RivvenConnectSpec
Source§impl Validate for RivvenConnectSpec
impl Validate for RivvenConnectSpec
Source§impl<'v_a> ValidateArgs<'v_a> for RivvenConnectSpec
impl<'v_a> ValidateArgs<'v_a> for RivvenConnectSpec
Auto Trait Implementations§
impl Freeze for RivvenConnectSpec
impl RefUnwindSafe for RivvenConnectSpec
impl Send for RivvenConnectSpec
impl Sync for RivvenConnectSpec
impl Unpin for RivvenConnectSpec
impl UnsafeUnpin for RivvenConnectSpec
impl UnwindSafe for RivvenConnectSpec
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more