-
Notifications
You must be signed in to change notification settings - Fork 0
Fixed a dependency and added a directory for the config #4
base: master
Are you sure you want to change the base?
Conversation
d1041d0
to
ed4af61
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
About the commit message:
- configmap -> ConfigMap
- "it erase the content of the directory." -> erases or overwrites
- "That's why we need a second directory etc" -> "That's why a second directory is required in order to preserve static configuration files"
&& mkdir /etc/cloudkitty \ | ||
&& mkdir \ | ||
/etc/cloudkitty \ | ||
/etc/cloudkitty-config \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not simply /config
? would be simpler to use
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not a huge fan of just /config, i don't want to break too many habits when switching from ck −> ck on docker.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You don't switch from pure ck to ck on docker, you switch from one automated deployment method (OSA, kolla-ansible, anything). You rarely directly edit /etc/cloudkitty/config_x
. And even if you want to edit stuff in /etc/cloudkitty
, there are symbolic links now
CloudKitty/api/Dockerfile
Outdated
/etc/cloudkitty-config \ | ||
&& ln -sf \ | ||
/etc/cloudkitty/cloudkitty.conf \ | ||
/etc/cloudkitty-config/cloudkitty.conf \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We also need a symbolic link for metrics.yml
then
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good remark
CloudKitty/processor/Dockerfile
Outdated
@@ -1,5 +1,6 @@ | |||
FROM python:3.7-buster | |||
|
|||
RUN pip install cloudkitty | |||
RUN pip install cloudkitty \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
whitespace
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wanted to align with the cmd below
README.md
Outdated
- `/etc/cloudkitty/cloudkitty.conf` | ||
- `/etc/cloudkitty-config/cloudkitty.conf` | ||
|
||
*If you want to deploy this application on kubernetes, the second location could be useful.* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please explain why
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- I'd rather have only one way to do things. eg; "Mount your custom cloudkitty.conf and metrics.yml files to
/xxx
" .
Users usually do weird things when they have a choice 😉
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
standardize this could be a good idea
README.md
Outdated
- `/etc/cloudkitty/cloudkitty.conf` | ||
- `/etc/cloudkitty-config/cloudkitty.conf` | ||
|
||
*If you want to deploy this application on kubernetes, the second location could be useful.* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- I'd rather have only one way to do things. eg; "Mount your custom cloudkitty.conf and metrics.yml files to
/xxx
" .
Users usually do weird things when they have a choice 😉
ed4af61
to
9c9ab35
Compare
Should be good |
ef94090
to
cb7c8c3
Compare
In order to have compatibility between CloudKitty and Kubernetes, we need to have a repository for processing the ConfigMap. There where a problem with PyMySQL which where missing. Updated the readme to explain where to put the config
cb7c8c3
to
f409751
Compare
In order to have compatibility between CloudKitty
and Kubernetes, we need to have a repository
for processing the ConfigMap.
There where a problem with PyMySQL which
where missing.
Updated the readme to explain where to put the config