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 controller crash caused by glog attempting to write to /tmp #94

Merged
merged 1 commit into from
Jun 3, 2019

Conversation

jessesuen
Copy link
Member

@jessesuen jessesuen commented May 31, 2019

Resolves: #85

We were using a k8s.io/apimachinery version which somehow was using glog where it did not honor the logtostderr flag in glog. This caused the controller to log to /tmp in certain cases, which crashed the controller since /tmp does not exist in scratch containers.

This change also allows a dev version of the controller image, for much faster docker builds:

make image DEV_IMAGE=true

@jessesuen jessesuen requested review from alexmt and dthomson25 May 31, 2019 21:35
@jessesuen jessesuen changed the title Fix apimachinery dependency which prevent glog from attempting to write to /tmp Fix controller crash caused by glog attempting to write to /tmp May 31, 2019
@codecov-io
Copy link

codecov-io commented May 31, 2019

Codecov Report

Merging #94 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #94   +/-   ##
=======================================
  Coverage   79.02%   79.02%           
=======================================
  Files          15       15           
  Lines        1721     1721           
=======================================
  Hits         1360     1360           
  Misses        267      267           
  Partials       94       94
Impacted Files Coverage Δ
controller/controller.go 51.04% <100%> (ø) ⬆️

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 a6aa76d...1a94b1b. Read the comment docs.

@jessesuen jessesuen merged commit 39f8668 into argoproj:master Jun 3, 2019
@jessesuen jessesuen deleted the 85-scratch-tmp-dir branch June 3, 2019 21:46
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.

Controller crashes due to inability to write to /tmp
3 participants