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: handle new pod restartPolicy format #2351

Merged
merged 1 commit into from
Mar 26, 2015

Conversation

simon3z
Copy link
Contributor

@simon3z simon3z commented Mar 25, 2015

This patch adds the support of the new restartPolicy format:

kubernetes/kubernetes#3607

Until we're sure that everyone updated their kubernetes instance (probably until v1.0 is officially released) it's better to handle both.

@simon3z
Copy link
Contributor Author

simon3z commented Mar 25, 2015

/cc @abonas @Fryguy @blomquisg

@@ -67,11 +67,16 @@ def parse_service(service)
def parse_pod(pod)
# pod in kubernetes is container group in manageiq
new_result = parse_base_item(pod)
# TODO: https://github.com/GoogleCloudPlatform/kubernetes/issues/3607
Copy link
Member

Choose a reason for hiding this comment

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

This comment doesn't make it clear what needs "TODO". It just points to an issue that is already closed. Can you update the comment to explain that the TODO is to remove this version specific code once old versions are assured to no longer be used?

@Fryguy
Copy link
Member

Fryguy commented Mar 25, 2015

Are there specs for this? On that note are there any kube VCR specs? cc @abonas

This patch adds the support of the new restartPolicy format:

  kubernetes/kubernetes#3607

Until we're sure that everyone updated their kubernetes instance
(probably until v1.0 is officially released) it's better to handle
both.

Signed-off-by: Federico Simoncelli <fsimonce@redhat.com>
@simon3z simon3z force-pushed the pod-restartpolicy branch from d0d0a3b to 4ba239f Compare March 25, 2015 23:49
@miq-bot
Copy link
Member

miq-bot commented Mar 25, 2015

Checked commit simon3z@4ba239f with rubocop 0.27.1
1 file checked, 0 offenses detected
Everything looks good. 👍

Fryguy added a commit that referenced this pull request Mar 26, 2015
kubernetes: handle new pod restartPolicy format
@Fryguy Fryguy merged commit b577152 into ManageIQ:master Mar 26, 2015
@Fryguy Fryguy added this to the Sprint 21 Ending Mar 30, 2015 milestone Mar 26, 2015
@simon3z simon3z deleted the pod-restartpolicy branch March 26, 2015 14:20
@abonas
Copy link
Member

abonas commented Mar 29, 2015

Are there specs for this? On that note are there any kube VCR specs? cc @abonas
@Fryguy
we will start the vcr effort soon

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.

5 participants