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

Fixed a dependency and added a directory for the config #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

aimbot31
Copy link
Member

@aimbot31 aimbot31 commented Aug 6, 2019

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

@aimbot31 aimbot31 added the enhancement New feature or request label Aug 6, 2019
@aimbot31 aimbot31 self-assigned this Aug 6, 2019
Copy link
Contributor

@lukapeschke lukapeschke left a 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 \
Copy link
Contributor

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

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'm not a huge fan of just /config, i don't want to break too many habits when switching from ck −> ck on docker.

Copy link
Contributor

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

/etc/cloudkitty-config \
&& ln -sf \
/etc/cloudkitty/cloudkitty.conf \
/etc/cloudkitty-config/cloudkitty.conf \
Copy link
Contributor

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

Copy link
Member Author

Choose a reason for hiding this comment

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

Good remark

@@ -1,5 +1,6 @@
FROM python:3.7-buster

RUN pip install cloudkitty
RUN pip install cloudkitty \
Copy link
Contributor

Choose a reason for hiding this comment

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

whitespace

Copy link
Member Author

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.*
Copy link
Contributor

Choose a reason for hiding this comment

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

please explain why

Copy link
Contributor

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 😉

Copy link
Member Author

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.*
Copy link
Contributor

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 😉

@aimbot31
Copy link
Member Author

Should be good

@aimbot31 aimbot31 force-pushed the fix-kubernetes branch 2 times, most recently from ef94090 to cb7c8c3 Compare August 13, 2019 15:19
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
@aimbot31 aimbot31 changed the title Added a symlink for the config of cloudkitty-api Fixed a dependency and added a directory for the config Aug 13, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants