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

chaosblade operator match containerId #902

Closed
binbin0325 opened this issue Jun 2, 2023 · 1 comment
Closed

chaosblade operator match containerId #902

binbin0325 opened this issue Jun 2, 2023 · 1 comment
Assignees
Labels
chaosblade-operator chaosblade-operator project good first issue Good for newcomers

Comments

@binbin0325
Copy link
Member

Issue Description

Type: bug report

Describe what happened (or what feature you want)

https://github.com/chaosblade-io/chaosblade-operator/blob/master/exec/container/controller.go#L164

当用户输入的containerId是完整的, 这里从pod查询到的container先截取了前12个字符 得到短id,然后让这个短的id前缀匹配用户输入的完整的(长的),导致匹配失败。

If the specified containerId is the full size, the container obtained from pod intercepts the first 12 characters to get the short id. Then, the short id prefix matches the full size (long) entered by the user, causing the matching failure.

Describe what you expected to happen

How to reproduce it (as minimally and precisely as possible)

Tell us your environment

Anything else we need to know?

@binbin0325 binbin0325 added good first issue Good for newcomers chaosblade-operator chaosblade-operator project labels Jun 2, 2023
@hengyoush
Copy link

can you assgn it to me,i can fix it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chaosblade-operator chaosblade-operator project good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants