• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pantsbuild / pants / 18225878979

03 Oct 2025 02:59PM UTC coverage: 80.269% (-0.006%) from 80.275%
18225878979

Pull #22717

github

web-flow
Merge b17e03226 into f7b1ba442
Pull Request #22717: wip: run tests on mac arm

77232 of 96217 relevant lines covered (80.27%)

3.63 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

96.3
/src/python/pants/backend/helm/check/kubeconform/subsystem.py
1
# Copyright 2023 Pants project contributors (see CONTRIBUTORS.md).
2
# Licensed under the Apache License, Version 2.0 (see LICENSE).
3

4
from __future__ import annotations
5✔
5

6
from enum import Enum, unique
5✔
7

8
from pants.core.util_rules.external_tool import TemplatedExternalTool
5✔
9
from pants.engine.platform import Platform
5✔
10
from pants.option.option_types import BoolOption, EnumOption, IntOption, SkipOption, StrListOption
5✔
11

12

13
@unique
5✔
14
class KubeconformOutput(Enum):
5✔
15
    """The report format used for the unit tests."""
16

17
    TEXT = "text"
5✔
18
    JSON = "json"
5✔
19
    TAP = "tap"
5✔
20
    JUNIT = "junit"
5✔
21

22

23
class KubeconformSubsystem(TemplatedExternalTool):
5✔
24
    options_scope = "kubeconform"
5✔
25
    name = "kubeconform"
5✔
26
    help = "Kubeconform tool (https://github.com/yannh/kubeconform)"
5✔
27

28
    default_version = "0.7.0"
5✔
29
    default_url_template = "https://github.com/yannh/kubeconform/releases/download/v{version}/kubeconform-{platform}.tar.gz"
5✔
30
    default_known_versions = [
5✔
31
        "0.7.0|macos_x86_64|c6771cc894d82e1b12f35ee797dcda1f7da6a3787aa30902a15c264056dd40d4|7420234",
32
        "0.7.0|macos_arm64|b5d32b2cb77f9c781c976b20a85e2d0bc8f9184d5d1cfe665a2f31a19f99eeb9|7031569",
33
        "0.7.0|linux_x86_64|c31518ddd122663b3f3aa874cfe8178cb0988de944f29c74a0b9260920d115d3|7491807",
34
        "0.7.0|linux_arm64|cc907ccf9e3c34523f0f32b69745265e0a6908ca85b92f41931d4537860eb83c|6982794",
35
        "0.6.7|macos_x86_64|3b5324ac4fd38ac60a49823b4051ff42ff7eb70144f1e9741fed1d14bc4fdb4e|6225509",
36
        "0.6.7|macos_arm64|cbb47d938a8d18eb5f79cb33663b2cecdee0c8ac0bf562ebcfca903df5f0802f|5907133",
37
        "0.6.7|linux_x86_64|95f14e87aa28c09d5941f11bd024c1d02fdc0303ccaa23f61cef67bc92619d73|6264184",
38
        "0.6.7|linux_arm64|dc82f79bb03c5479b1ae5fd4af221e4b5a3111f62bf01a2795d9c5c20fa96644|5841917",
39
        "0.6.2|macos_x86_64|88e53c2562482ed5ab7434188ca5ba03d3482088ac52d53da7499d579923f2e8|5656173",
40
        "0.6.2|macos_arm64|881e3fe2ecdb1cc41bce80013113f24da80e1bec593876ffe88668333ae69b51|5423607",
41
        "0.6.2|linux_x86_64|d2a10db6b78d56de8fe9375b9c351bc573aa218a74da04d114767b505a675090|5739066",
42
        "0.6.2|linux_arm64|41c15ecbb120042bee0aca8a616e479b555084d5d14bc2e095ed96081c1e9404|5335394",
43
    ]
44
    default_url_platform_mapping = {
5✔
45
        "linux_arm64": "linux-arm64",
46
        "linux_x86_64": "linux-amd64",
47
        "macos_arm64": "darwin-arm64",
48
        "macos_x86_64": "darwin-amd64",
49
    }
50

51
    skip = SkipOption("check")
5✔
52

53
    concurrency = IntOption(
5✔
54
        default=None,
55
        help="Number of workers used by Kubeconform to validate resources.",
56
        advanced=True,
57
    )
58
    schema_locations = StrListOption(
5✔
59
        default=["default"],
60
        help="List of schema locations to use to validate the resources.",
61
        advanced=True,
62
    )
63
    output_type = EnumOption(
5✔
64
        default=KubeconformOutput.TEXT, help="Output type used by `kubeconform`."
65
    )
66
    summary = BoolOption(default=False, help="Set to true to only output check summary.")
5✔
67
    verbose = BoolOption(default=False, help="Set to true to increase output verbosity.")
5✔
68

69
    def generate_exe(self, _: Platform) -> str:
5✔
70
        return "./kubeconform"
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc