<@U04S8PLJWMT> Can I combine Declarative Manifest ...
# ask-ai
i
@kapa.ai Can I combine Declarative Manifest with yml and Python-based steams using the airbyte-cdk in the same custom source connector?
k
Based on the provided knowledge sources, there is no explicit documentation or example that confirms you can combine declarative manifest (YAML-based) streams and Python-based streams within the same custom source connector using the airbyte-cdk. The documentation describes two main approaches for connector development: 1. Declarative (Low-Code) Connectors: These are defined entirely in YAML using the low-code CDK, where all streams and their behaviors are described declaratively in the manifest file. This approach is designed to avoid writing Python code for common API patterns and is managed via YAML or the Connector Builder UI [[Low-code connector development overview](https://docs.airbyte.com/platform/next/connector-development/config-based/low-code-cdk-overview)]. 2. Python CDK Connectors: These are implemented in Python, where you subclass the
Source
class and define streams as Python classes, giving you full flexibility and control [[CDK Python basic concepts](https://docs.airbyte.com/platform/next/connector-development/cdk-python/basic-concepts)]. The documentation does not mention a supported or recommended way to mix these two paradigms (i.e., having some streams defined in YAML and others as Python classes within the same connector). Each approach appears to be intended for separate, self-contained connectors. If you need to use both paradigms, you may need to choose one approach per connector, or implement all custom logic in Python if the declarative approach is insufficient for your use case. Summary: I'm sorry, but the knowledge sources do not contain information confirming that you can combine declarative manifest (YAML) streams and Python-based streams in the same custom source connector using the airbyte-cdk. The documentation treats these as separate approaches.
i
@kapa.ai This query: select * from actor_definition where actor_definition.docker_repository like '%<image-name>'; I checked the database and column actor_definition.docker_repository does not exist
k
A message from kapa.ai
You are correct. According to the Airbyte database schema in the official documentation, the
actor_definition
table does not have a
docker_repository
column. Instead, the
docker_repository
column exists in the
actor_definition_version
table. If you want to query by Docker image name, you should use the
actor_definition_version
table, not `actor_definition`:
Copy code
sql SELECT * FROM actor_definition_version WHERE docker_repository LIKE '%<image-name>%';
The
actor_definition
table contains metadata about the connector, while the
actor_definition_version
table contains version-specific information, including the Docker repository and image tag [[actor_definition_version schema](https://docs.airbyte.com/platform/1.7/understanding-airbyte/database-data-catalog#actor_definition_version)]. So, your observation is correct, and you should adjust your query to use the correct table and column.
i
@kapa.ai Can I have different syncs run in different node pools?
k
A message from kapa.ai
Yes, you can have different syncs (job pods) run in different node pools in Airbyte by configuring node selectors and environment variables that control pod scheduling. The recommended approach is to use Kubernetes node selectors and set them via environment variables or in your Helm
values.yaml
file. For example, you can configure the
JOB_KUBE_NODE_SELECTORS
environment variable (or the corresponding Helm values) to specify which node pool (node group) your sync jobs should run on. This allows you to separate static workloads (like the webapp and server) from job-related workloads (like syncs) and assign them to different node pools. Here’s an example from the documentation for running job-related workloads on a node group labeled `type=jobs`:
Copy code
yaml workload-launcher:     nodeSelector:       type: static     extraEnvs:       - name: JOB_KUBE_NODE_SELECTORS         value: type=jobs       - name: SPEC_JOB_KUBE_NODE_SELECTORS         value: type=jobs       - name: CHECK_JOB_KUBE_NODE_SELECTORS         value: type=jobs       - name: DISCOVER_JOB_KUBE_NODE_SELECTORS         value: type=jobs
This setup ensures that pods spun up for sync, spec, check, and discover jobs are scheduled on nodes with the label
type=jobs
, which can correspond to a specific node pool in your Kubernetes cluster. You can further customize this by using different node selectors for different job types if needed [[Scaling Airbyte After Installation](https://docs.airbyte.com/platform/1.7/enterprise-setup/scaling-airbyte#multiple-node-groups)]. Note: The documentation does not describe a way to assign individual syncs (per connection) to different node pools dynamically at runtime. The configuration is typically at the job type or instance level, not per individual sync [[Configuring Airbyte - Jobs-specific](https://docs.airbyte.com/platform/1.7/operator-guides/configuring-airbyte#jobs-specific)]. In summary: You can control which node pool sync jobs run on by setting node selectors for job pods, but this is generally done at the job type or instance level, not per individual sync.
i
@kapa.ai I want a connection "A" to run in node-pool-1, and connection "B" to run in node-pool-2. Is that possible?
k
A message from kapa.ai
Based on the provided knowledge sources, Airbyte allows you to configure node selectors for job pods (such as sync, check, spec, and discover jobs) using environment variables like
JOB_KUBE_NODE_SELECTORS
,
SPEC_JOB_KUBE_NODE_SELECTORS
, etc. This configuration enables you to direct all jobs of a certain type to a specific node pool or node group in your Kubernetes cluster [[Scaling Airbyte After Installation](https://docs.airbyte.com/platform/1.7/enterprise-setup/scaling-airbyte#multiple-node-groups)]. However, the documentation does not describe a way to assign different node selectors (and thus different node pools) on a per-connection basis. The node selector configuration is applied globally for all jobs of a given type, not individually per connection or sync. Therefore, you cannot natively configure connection "A" to run in
node-pool-1
and connection "B" to run in
node-pool-2
using the standard Airbyte configuration options described in the official documentation. Summary: I'm sorry, but according to the current documentation, it is not possible to assign different node pools to individual connections. Node pool assignment is only configurable at the job type or instance level, not per connection or sync [[Scaling Airbyte After Installation](https://docs.airbyte.com/platform/1.7/enterprise-setup/scaling-airbyte#multiple-node-groups)].