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

Enable dependencies and index cleaner by default #162

Conversation

pavolloffay
Copy link
Member

Signed-off-by: Pavol Loffay ploffay@redhat.com

@jpkrohling
Copy link
Contributor

This change is Reviewable

@codecov
Copy link

codecov bot commented Dec 6, 2018

Codecov Report

Merging #162 into master will increase coverage by 0.02%.
The diff coverage is 95%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #162      +/-   ##
==========================================
+ Coverage   96.36%   96.38%   +0.02%     
==========================================
  Files          30       30              
  Lines        1430     1438       +8     
==========================================
+ Hits         1378     1386       +8     
  Misses         40       40              
  Partials       12       12
Impacted Files Coverage Δ
pkg/storage/cassandra_dependencies.go 100% <ø> (ø) ⬆️
pkg/apis/io/v1alpha1/jaeger_types.go 100% <ø> (ø) ⬆️
pkg/cronjob/spark_dependencies.go 97.46% <0%> (ø) ⬆️
pkg/strategy/controller.go 100% <100%> (ø) ⬆️
pkg/strategy/production.go 100% <100%> (ø) ⬆️
pkg/cronjob/es_index_cleaner.go 96% <100%> (ø) ⬆️
pkg/strategy/all-in-one.go 100% <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 a3b8455...1444a77. Read the comment docs.

Copy link
Contributor

@jpkrohling jpkrohling left a comment

Choose a reason for hiding this comment

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

Reviewed 11 of 11 files at r1, 1 of 1 files at r2.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @pavolloffay and @objectiser)


pkg/strategy/controller.go, line 113 at r2 (raw file):

func normalizeIndexCleaner(spec *v1alpha1.JaegerEsIndexCleanerSpec, storage string) {
	// auto enable only for supported storages
	if storage == "elasticsearch" && spec.Enabled == nil {

We usually compare with strings.ToLower, so that Elasticsearch would be a match as well. You know, "be lenient with what you receive" :-)


pkg/strategy/controller_test.go, line 174 at r2 (raw file):

	defer viper.Reset()
	trueVar := true
	falseVar := false

Why can't Go provide a more elegant way to do this...

@pavolloffay
Copy link
Member Author

@jpkrohling updated

Signed-off-by: Pavol Loffay <ploffay@redhat.com>
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
@pavolloffay pavolloffay force-pushed the enable-deps-and-index-cleaner-by-default branch from f0279e0 to 1444a77 Compare December 7, 2018 11:51
Copy link
Contributor

@jpkrohling jpkrohling left a comment

Choose a reason for hiding this comment

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

Reviewed 3 of 3 files at r3.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @objectiser)

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.

2 participants