Skip to content

fix(k8s): Resolve cluster secrets fixture in installed package - #6949

Merged
dan-petty merged 1 commit into
mainfrom
fix/6948-resolve-cluster-secrets-fixture
Nov 24, 2026
Merged

dan-petty merged 1 commit into
mainfrom
fix/6948-resolve-cluster-secrets-fixture

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

When devops_cli is installed as a package in a container image, such as /app/.venv in devops-cli-service:local, Path(__file__).resolve().parents[3] points to the Python installation directory instead of the repository root. load_cluster_secrets_table() fails to find tests/fixtures/cluster-secrets.toml and returns an incomplete cluster secrets table, causing Service Image Tests to fail.

Closes #6948

Change: openspec/changes/archive/2026-11-24-6948-resolve-cluster-secrets-fixture/

@dan-petty dan-petty added type/bug Type bug: the code does not do what it must scope/k8s Kubernetes commands, Helm charts, pods, services, and policies labels Nov 24, 2026
@dan-petty
dan-petty force-pushed the fix/6948-resolve-cluster-secrets-fixture branch 2 times, most recently from b418600 to 0c4699c Compare November 24, 2026 02:31
When devops_cli is installed as a package in a container image, such as /app/.venv in devops-cli-service:local, Path(__file__).resolve().parents[3] points to the Python installation directory instead of the repository root. load_cluster_secrets_table() fails to find tests/fixtures/cluster-secrets.toml and returns an incomplete cluster secrets table, causing Service Image Tests to fail.

Add repository fixture resolution to EnvironmentTree.cluster_secrets and fallback fixture file resolution in cluster_secrets.py.

Closes #6948
@dan-petty
dan-petty force-pushed the fix/6948-resolve-cluster-secrets-fixture branch from 0c4699c to 9b8bbb9 Compare November 24, 2026 02:32
@dan-petty
dan-petty marked this pull request as ready for review November 24, 2026 02:50
@dan-petty
dan-petty merged commit d8cdab0 into main Nov 24, 2026
29 checks passed
@dan-petty
dan-petty deleted the fix/6948-resolve-cluster-secrets-fixture branch November 24, 2026 02:56
dan-petty-release Bot added a commit that referenced this pull request Nov 24, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.206.1](v0.206.0...v0.206.1)
(2026-11-24)


### Bug Fixes

* **k8s:** Resolve cluster secrets fixture in installed package
([#6949](#6949))
([d8cdab0](d8cdab0))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/k8s Kubernetes commands, Helm charts, pods, services, and policies type/bug Type bug: the code does not do what it must

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(k8s): resolve cluster secrets fixture in installed package

1 participant