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

Add flag to install dependency only #631

Merged
merged 4 commits into from
Jun 17, 2020
Merged

Conversation

cwen0
Copy link
Member

@cwen0 cwen0 commented Jun 16, 2020

Signed-off-by: cwen0 [email protected]

What problem does this PR solve?

  • Add a new flag to install dependency only by install.sh
  • Update install.sh
  • Use IfNotPresent instead of Always

@codecov-commenter
Copy link

codecov-commenter commented Jun 16, 2020

Codecov Report

Merging #631 into master will decrease coverage by 0.16%.
The diff coverage is 25.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #631      +/-   ##
==========================================
- Coverage   55.78%   55.61%   -0.17%     
==========================================
  Files          68       68              
  Lines        4383     4398      +15     
==========================================
+ Hits         2445     2446       +1     
- Misses       1768     1782      +14     
  Partials      170      170              
Impacted Files Coverage Δ
controllers/networkchaos/ipset/ipset.go 37.14% <0.00%> (ø)
pkg/store/experiment/experiment.go 32.20% <0.00%> (-6.58%) ⬇️
pkg/utils/chaosdaemon.go 51.21% <0.00%> (ø)
pkg/utils/grpc.go 0.00% <0.00%> (ø)
controllers/twophase/types.go 54.20% <33.33%> (-1.68%) ⬇️
controllers/networkchaos/netem/types.go 47.27% <50.00%> (ø)
controllers/podchaos/containerkill/types.go 64.38% <100.00%> (ø)
controllers/timechaos/types.go 61.44% <100.00%> (ø)

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 5dd0b86...a30999a. Read the comment docs.

@@ -21,7 +21,7 @@ controllerManager:
replicaCount: 1

image: pingcap/chaos-mesh:latest
imagePullPolicy: Always
imagePullPolicy: IfNotPresent
Copy link
Contributor

Choose a reason for hiding this comment

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

Why change to IfNotPresent

Copy link
Member Author

Choose a reason for hiding this comment

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

I think always is not necessary. Sometimes if the pod was restarted and we change some flags of it, which may cause the pod crashing.

Copy link
Member

Choose a reason for hiding this comment

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

I think we should keep it set to always. Because our image is latest. Unless we specify a particular version.

Copy link
Member Author

Choose a reason for hiding this comment

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

Got it

@cwen0 cwen0 merged commit 978dfb4 into chaos-mesh:master Jun 17, 2020
@cwen0 cwen0 deleted the update_install branch June 17, 2020 11:18
shonge pushed a commit to shonge/chaos-mesh that referenced this pull request Jul 7, 2020
* add flag to install dependency only

Signed-off-by: cwen0 <[email protected]>

* address comments

Signed-off-by: cwen0 <[email protected]>
Signed-off-by: shonge <[email protected]>
sjwsl pushed a commit to sjwsl/chaos-mesh that referenced this pull request May 6, 2021
* add flag to install dependency only

Signed-off-by: cwen0 <[email protected]>

* address comments

Signed-off-by: cwen0 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants