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

remove hook from helm chart #459

Merged
merged 5 commits into from
May 6, 2020
Merged

remove hook from helm chart #459

merged 5 commits into from
May 6, 2020

Conversation

cwen0
Copy link
Member

@cwen0 cwen0 commented Apr 30, 2020

Signed-off-by: cwen0 [email protected]

What problem does this PR solve?

Remove the hook and use genCA to generate certs

What is changed and how does it work?

Check List

Tests

  • Unit test
  • E2E test
  • Manual test (add detailed scripts or steps below)
  • No code

Code changes

  • Has Go code change
  • Has CI related scripts change
  • Has Terraform scripts change

Side effects

  • Breaking backward compatibility

Related changes

  • Need to update the documentation

Does this PR introduce a user-facing change?:

NONE

Signed-off-by: cwen0 <[email protected]>
@cwen0 cwen0 changed the title [WIP] remove hook from helm chart remove hook from helm chart May 5, 2020
@cwen0 cwen0 requested a review from Gallardot May 5, 2020 13:22
@cwen0
Copy link
Member Author

cwen0 commented May 5, 2020

/run-e2e-test

@cwen0
Copy link
Member Author

cwen0 commented May 6, 2020

@Gallardot @yeya24 @fewdan PTAL

@@ -1,3 +1,27 @@
{{- $altNames := list ( printf "%s.%s.svc" (include "chaos-mesh.svc" .) .Release.Namespace ) }}
{{- $ca := genCA "chaos-mesh-ca" 3650 }}
{{- $cert := genSignedCert "chaos-mesh-ca" nil $altNames 3650 $ca }}
Copy link
Member

Choose a reason for hiding this comment

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

Signed-off-by: cwen0 <[email protected]>
@codecov-io
Copy link

Codecov Report

Merging #459 into master will increase coverage by 0.34%.
The diff coverage is 53.87%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #459      +/-   ##
==========================================
+ Coverage   58.57%   58.91%   +0.34%     
==========================================
  Files          60       68       +8     
  Lines        3626     4379     +753     
==========================================
+ Hits         2124     2580     +456     
- Misses       1333     1606     +273     
- Partials      169      193      +24     
Impacted Files Coverage Δ
api/v1alpha1/common_webhook.go 100.00% <ø> (ø)
api/v1alpha1/iochaos_types.go 31.11% <0.00%> (-1.45%) ⬇️
api/v1alpha1/kernelchaos_types.go 4.44% <0.00%> (-0.21%) ⬇️
api/v1alpha1/networkchaos_types.go 18.65% <0.00%> (-0.29%) ⬇️
api/v1alpha1/podchaos_types.go 31.11% <0.00%> (-1.45%) ⬇️
controllers/stresschaos_controller.go 0.00% <0.00%> (ø)
controllers/timechaos_controller.go 0.00% <0.00%> (ø)
controllers/twophase/types.go 55.78% <0.00%> (-7.31%) ⬇️
pkg/chaosdaemon/netem_linux.go 26.66% <0.00%> (-17.78%) ⬇️
pkg/chaosdaemon/netlink_linux.go 0.00% <ø> (ø)
... and 31 more

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 9753087...7ef24d0. Read the comment docs.

Copy link
Contributor

@yeya24 yeya24 left a comment

Choose a reason for hiding this comment

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

Other LGTM

@@ -71,7 +71,6 @@ The following tables list the configurable parameters of the Chaos Mesh chart an
| `preJobs.podAnnotations` | | `{}` |
| `postJobs.podAnnotations` | | `{}` |
Copy link
Contributor

Choose a reason for hiding this comment

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

Please also delete these two options since they are not used anymore.

Signed-off-by: cwen0 <[email protected]>
@cwen0
Copy link
Member Author

cwen0 commented May 6, 2020

/run-e2e-test

1 similar comment
@yeya24
Copy link
Contributor

yeya24 commented May 6, 2020

/run-e2e-test

@yeya24
Copy link
Contributor

yeya24 commented May 6, 2020

Sorry about the flaky E2E, I think we can merge this first because the failed case is not related to this PR. WDYT?

@cwen0
Copy link
Member Author

cwen0 commented May 6, 2020

/merge

@sre-bot
Copy link
Contributor

sre-bot commented May 6, 2020

/run-all-tests

@sre-bot
Copy link
Contributor

sre-bot commented May 6, 2020

@cwen0 merge failed.

@cwen0 cwen0 merged commit 8e769a7 into chaos-mesh:master May 6, 2020
@cwen0 cwen0 deleted the remove_hook branch May 6, 2020 06:40
sjwsl pushed a commit to sjwsl/chaos-mesh that referenced this pull request May 6, 2021
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.

5 participants