Skip to content

KubernetesPodOperator raises exception when pod_template_file contains multiple objects #14307

@everglory99

Description

@everglory99

In Airflow 2.0.1, we are trying to use pod_template_file in KubernetesPodOperator. The pod_template_file contains several sections specifying ConfigMap, Service and Deployment etc.. However, I am seeing this error from Airflow

raise ComposerError("expected a single document in the stream",
yaml.composer.ComposerError: expected a single document in the stream
but found another document

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions