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 issue 902: chaosblade operator match containerId #210

Merged
merged 1 commit into from
Jul 24, 2023

Conversation

hengyoush
Copy link
Contributor

@hengyoush hengyoush commented Jun 4, 2023

Remove unnessesary docker container id truncation, if user input a long container id, we can correctly match them.

Fix issue: chaosblade-io/chaosblade#902

Copy link
Member

@binbin0325 binbin0325 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can combine commits into one, using git rebase

@@ -144,7 +144,7 @@ func getMatchedContainerMetaList(pods []v1.Pod, containerIdsValue, containerName
if containerStatus.ContainerID == "" {
containerStatusErr = errors.New("containerId is empty")
} else {
containerRuntime,containerId = model.TruncateContainerObjectMetaUid(containerStatus.ContainerID)
containerRuntime, containerId = model.TruncateContainerObjectMetaUid(containerStatus.ContainerID)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No line feed required

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Signed-off-by: hengyoush <hengyoush1@163.com>
@MandssS MandssS added this to the v1.7.3 milestone Jul 24, 2023
@MandssS MandssS merged commit 0ee77a5 into chaosblade-io:master Jul 24, 2023
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.

3 participants