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(executor): Fix kubectl permission error #6091

Merged
merged 2 commits into from
Jun 7, 2021
Merged

Conversation

alexec
Copy link
Contributor

@alexec alexec commented Jun 5, 2021

Signed-off-by: Alex Collins [email protected]

@codecov
Copy link

codecov bot commented Jun 5, 2021

Codecov Report

Merging #6091 (4861ac6) into master (937bbb9) will decrease coverage by 0.00%.
The diff coverage is 0.00%.

❗ Current head 4861ac6 differs from pull request most recent head ec12e57. Consider uploading reports for the commit ec12e57 to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##           master    #6091      +/-   ##
==========================================
- Coverage   47.76%   47.75%   -0.01%     
==========================================
  Files         249      249              
  Lines       15737    15739       +2     
==========================================
  Hits         7516     7516              
- Misses       7282     7283       +1     
- Partials      939      940       +1     
Impacted Files Coverage Δ
workflow/executor/resource.go 28.64% <0.00%> (-0.32%) ⬇️
cmd/argo/commands/get.go 56.45% <0.00%> (-0.65%) ⬇️
workflow/metrics/server.go 16.66% <0.00%> (+4.16%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update be63efe...ec12e57. Read the comment docs.

Signed-off-by: Alex Collins <[email protected]>
exErr := err.(*exec.ExitError)
errMsg := strings.TrimSpace(string(exErr.Stderr))
return "", "", "", errors.New(errors.CodeBadRequest, errMsg)
if exErr, ok := err.(*exec.ExitError); ok {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

pre-existing bug

@alexec alexec marked this pull request as ready for review June 5, 2021 22:18
@alexec alexec added this to the v3.2 milestone Jun 5, 2021
@alexec alexec enabled auto-merge (squash) June 5, 2021 22:18
@alexec
Copy link
Contributor Author

alexec commented Jun 5, 2021

This PR fixes master build.

@alexec alexec changed the title fix(executor): Fix resource error cast fix(executor): Fix kubectl error Jun 5, 2021
@alexec alexec changed the title fix(executor): Fix kubectl error fix(executor): Fix kubectl permission error Jun 5, 2021
Copy link
Member

@terrytangyuan terrytangyuan left a comment

Choose a reason for hiding this comment

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

LGTM

@alexec alexec changed the title fix(executor): Fix kubectl permission error fix(executor): Fix kubectl permission error Jun 7, 2021
@alexec alexec disabled auto-merge June 7, 2021 17:37
@alexec alexec merged commit 00b56e5 into argoproj:master Jun 7, 2021
@alexec alexec deleted the alpine branch June 7, 2021 17:38
@alexec alexec mentioned this pull request Jun 10, 2021
20 tasks
@sarabala1979 sarabala1979 mentioned this pull request Jun 10, 2021
88 tasks
@alexec alexec mentioned this pull request Jun 21, 2021
16 tasks
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

3 participants