Skip to content
This repository has been archived by the owner on Aug 23, 2023. It is now read-only.

Schema templates + scylladb docker stack #898

Merged
merged 7 commits into from
May 2, 2018
Merged

Conversation

Dieterbe
Copy link
Contributor

@Dieterbe Dieterbe commented Apr 27, 2018

this is based on @beorn- 's work in #892 with a few commits on top
now we can run cd docker && ./launch.sh docker-dev-scylla and it just works!

beorn- and others added 6 commits April 23, 2018 18:14
* clearer filenames that keep the files together
* simpler section names
* no such thing as a 'keytable'
* no need for global sections
* simplify param names and variable names
* no need to repeat module/section names, e.g.:
  flags within cassandra-idx don't need to repeat that
  no need to mention cassandra or idx in the help info there either
* don't list items (table, keyspace) explicitly everywhere, so that
  we can later add new items if needed with minimal needed changes
* mention what the file is actually used for
* storage->store
* move scylladb files to /usr/share/metrictank/examples
* no need to mount scylladb files in any non-default docker image
@Dieterbe Dieterbe requested a review from replay April 27, 2018 13:18
@Dieterbe Dieterbe added this to the 0.9.0 milestone May 2, 2018
@Dieterbe
Copy link
Contributor Author

Dieterbe commented May 2, 2018

fix #888

util/template.go Outdated
if val == nil {
log.Fatalf("Error %q does not exist in %q", EntryName, TomlFilename)
}
return tree.Get(EntryName)
Copy link
Contributor

Choose a reason for hiding this comment

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

this could directly return val to avoid a redundant call to .Get()

Copy link
Contributor

@replay replay left a comment

Choose a reason for hiding this comment

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

This looks really good to me, please fix the one issue that i commented on, then we can merge it

@Dieterbe Dieterbe merged commit 8ea4223 into master May 2, 2018
@Dieterbe Dieterbe deleted the schema_templates_scylladb branch September 18, 2018 08:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants