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

[check_marathon] Add marathon disable_ssl_validation and group support #3140

Merged
merged 3 commits into from Jan 24, 2017

Conversation

Carles-Figuerola
Copy link
Contributor

What does this PR do?

Add support to marathon for:
disable_ssl_validation: to bypass bad or self-signed certs
group: to get a subset of apps running in marathon (https://mesosphere.github.io/marathon/docs/application-groups.html)

Motivation

Optional features to support different usecases

Testing Guidelines

Tests already exist for check_marathon

Additional Notes

none that I know of

Copy link
Contributor

@masci masci left a comment

Choose a reason for hiding this comment

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

an indentation issue but other than that this LGTM!


instance_tags = instance.get('tags', [])
default_timeout = self.init_config.get('default_timeout', self.DEFAULT_TIMEOUT)
timeout = float(instance.get('timeout', default_timeout))

# Marathon apps
response = self.get_json(urljoin(url, "v2/apps"), timeout, auth)
if group is None:
marathon_path = urljoin(url, "v2/apps")
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you fix the indentation here? Flake8 is complaining and the CI fails

@masci masci added this to the Triage milestone Jan 24, 2017
@masci masci modified the milestones: 5.12.0, Triage Jan 24, 2017
Copy link
Contributor

@masci masci left a comment

Choose a reason for hiding this comment

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

👍

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.

None yet

2 participants