Skip to content

Commit fafb9d4

Browse files
blarghmateyCopilot
andcommitted
fix: pin kubernetes<36 in daemon Dockerfile to fix dagster-k8s AttributeError
kubernetes 36.0.0 changed dict type annotations in its generated models in a way that dagster-k8s 0.29.x does not handle. The _is_openapi_dict_type check in dagster_k8s/models.py only matches 'dict(' (old format) but kubernetes 36 emits 'dict[str, str]', causing: AttributeError: module 'kubernetes.client.models' has no attribute 'dict[str, str]' The project uv.lock files consistently pin to kubernetes==35.0.0 which worked correctly. Pin the daemon image install to <36 until dagster-k8s resolves the incompatibility upstream. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent b61d660 commit fafb9d4

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

dg_deployments/Dockerfile.dagster-k8s

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,7 @@ COPY dg_deployments/reconcile_edxorg_partitions.py /opt/dagster/app/reconcile_ed
2929

3030
# Install ol-orchestrate-lib and its dependencies
3131
# This makes the pooled Postgres storage classes available
32-
RUN uv pip install --system /opt/dagster/packages/ol-orchestrate-lib dagster==${DAGSTER_VERSION} dagster-azure dagster-postgres dagster-k8s dagster-aws dagster-gcp dagster-graphql dagster-webserver
32+
# kubernetes>=36 changed dict type annotations in a way that dagster-k8s 0.29.x does
33+
# not handle, raising AttributeError at launch time. Pin until dagster-k8s upstream
34+
# resolves the incompatibility.
35+
RUN uv pip install --system /opt/dagster/packages/ol-orchestrate-lib dagster==${DAGSTER_VERSION} dagster-azure dagster-postgres dagster-k8s "kubernetes<36" dagster-aws dagster-gcp dagster-graphql dagster-webserver

0 commit comments

Comments
 (0)