Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: display the relevant number in the error message #1835

Merged
merged 3 commits into from Nov 21, 2023

Conversation

omar711
Copy link
Contributor

@omar711 omar711 commented Nov 20, 2023

Description:

Tiny bug when running kurtosis clean -a: if your APIC has more than one service running in it it will print an error, but print the number of services it found incorrectly:

 --- at ~/kurtosis/kurtosis/container-engine-lib/lib/backend_impls/kubernetes/kubernetes_kurtosis_backend/kubernetes_kurtosis_backend_api_container_functions.go:678 (KubernetesKurtosisBackend.getMatchingApiContainerObjectsAndKubernetesResources) ---
Caused by: Expected at most one API container service in namespace 'kt-crumbling-sky' for enclave with ID '39d662eb74784368a78b35ce9a4f09bf' but found '1'

Why did I have more than 1 in this case? I'd added one directly via kubectl expose so the only bug here is the error display.

Is this change user facing?

YES: only in the weeds of error message logging

References (if applicable):

@omar711 omar711 requested a review from a team November 20, 2023 17:14
@omar711 omar711 added this pull request to the merge queue Nov 21, 2023
Merged via the queue into main with commit a8c24bc Nov 21, 2023
33 checks passed
@omar711 omar711 deleted the omar/error-message-service-count-per-enclave branch November 21, 2023 13:53
github-merge-queue bot pushed a commit that referenced this pull request Nov 21, 2023
🤖 I have created a release *beep* *boop*
---


##
[0.85.34](0.85.33...0.85.34)
(2023-11-21)


### Bug Fixes

* display the relevant number in the error message
([#1835](#1835))
([a8c24bc](a8c24bc))

---
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: kurtosisbot <kurtosisbot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants