-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enforce version 2 of manifests (#12775)
- Loading branch information
Showing
5 changed files
with
7 additions
and
471 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 1 addition & 10 deletions
11
datadog_checks_dev/datadog_checks/dev/tooling/manifest_validator/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,8 @@ | ||
# (C) Datadog, Inc. 2021-present | ||
# All rights reserved | ||
# Licensed under a 3-clause BSD style license (see LICENSE) | ||
|
||
from packaging.version import parse | ||
|
||
from .constants import V2 | ||
from .v1.validator import get_v1_validators | ||
from .v2.validator import get_v2_validators | ||
|
||
|
||
def get_all_validators(ctx, version_string, is_extras=False, is_marketplace=False): | ||
if parse(version_string) < V2: | ||
return get_v1_validators(is_extras, is_marketplace) | ||
else: | ||
# e.g. parse(version) >= V2: | ||
return get_v2_validators(ctx, is_extras, is_marketplace) | ||
return get_v2_validators(ctx, is_extras, is_marketplace) |
3 changes: 0 additions & 3 deletions
3
datadog_checks_dev/datadog_checks/dev/tooling/manifest_validator/v1/__init__.py
This file was deleted.
Oops, something went wrong.
260 changes: 0 additions & 260 deletions
260
datadog_checks_dev/datadog_checks/dev/tooling/manifest_validator/v1/schema.py
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.