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

kubernetes/kubeutil.py: Tag pods that are created by StatefulSets #3443

Merged
merged 1 commit into from
Jul 18, 2017

Conversation

erkolson
Copy link

Note: Please remember to review the Datadog Contribution Guidelines
if you have not yet done so.

What does this PR do?

This will tag pod metadata with kube_stateful_set:<name> if they are members of a stateful set.

Motivation

I ultimately want to be able to create timeboards and monitors on the diff between the desired and current number of pods for a given StatefulSet. I am currently doing something similar with the diff between desired and available pods for a deployment. It is unclear to me if these changes are needed for the kube_state integration or not.

Testing Guidelines

An overview on testing
is available in our contribution guidelines.

Additional Notes

Anything else we should know when reviewing?

@hkaj hkaj requested a review from xvello July 18, 2017 09:30
@xvello xvello self-assigned this Jul 18, 2017
Copy link
Contributor

@xvello xvello left a comment

Choose a reason for hiding this comment

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

Hi!

That looks good to me, thanks for your contribution! As 5.15 is in the release pipeline, I'm tagging this for 5.16. In the meantime are you OK building your own image overwriting kubeutil.py?

As for k_state, we already have a PR open for it: DataDog/integrations-core#561

@xvello xvello added this to the 5.16 milestone Jul 18, 2017
@xvello xvello merged commit 7bef288 into DataDog:master Jul 18, 2017
@truthbk truthbk modified the milestones: 5.16, 5.17 Jul 25, 2017
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.

3 participants