Skip to content

v2.6.0

Latest

Choose a tag to compare

@github-actions github-actions released this 24 Aug 10:56
eaa8615

What's Changed

Added

  • Add --bundle-cache-min to override the minimum schema cache duration by @somaz94 in #359

    The helm schema plugin has supported caching the schemas it downloads during bundling since v2.0.0 (when using --bundle). However, the most common hosting sites for JSON Schemas are https://schemastore.org and raw files from https://github.com. Both of which set very short HTTP cache headers (5-10min).

    So if you want better caching in for example your GitHub Action workflows, then you can now set --bundle-cache-min 30h to increase the lower limit of how long helm schema will rely on its cached schemas.

  • feat: add nullable schema annotation by @somaz94 in #360

    Short-hand for adding null as a valid type on properties:

    nameOverride: "" # @schema nullable
    # => "type": ["string", "null"]
    
    replicaCount: # @schema type: integer; nullable
    # => "type": ["integer", "null"]
  • feat: support itemRequired schema annotations by @ksdpmx in #361

    Now supported:

    env: [] # @schema itemRequired:[name, value]; type: object
    "env": {
        "items": {
            "required": [
                "name",
                "value"
            ],
            "type": "object"
        },
        "type": "array"
    }
  • feat: add itemPattern annotation support by @ksdpmx in #374

    Now supported:

    hostnames: [] # @schema itemPattern:^[a-z0-9.-]+$; item:string
    "hostnames": {
        "items": {
            "pattern": "^[a-z0-9.-]+$",
            "type": "string"
        },
        "type": "array"
    }

Fixed

  • fix: close $ref/applicator nodes with unevaluatedProperties by @piontec in #378

    If using --no-additional-properties flag, any subschema with $ref now gets unevaluatedProperties: false added instead of additionalProperties: false (assuming draft 2019 or later). This also applies to other schema properties that have issues with additionalProperties: false, such as allOf, anyOf, and oneOf.

    If you need the old behavior, you can override this by manually setting # @schema additionalProperties: false annotation comment where you need it.

  • fix: don't rewrite output file when schema is unchanged by @Allsimon in #384

    This preserves the file's "modified time" when there are no changes

Updated

  • build(deps): bump securego/gosec from 2.26.1 to 2.27.1 by @dependabot[bot] in #363
  • build(deps): bump actions/checkout from 6.0.2 to 6.0.3 by @dependabot[bot] in #364
  • build(deps): bump github.com/knadh/koanf/v2 from 2.3.4 to 2.3.5 by @dependabot[bot] in #362
  • build(deps): bump codecov/codecov-action from 6.0.1 to 7.0.0 by @dependabot[bot] in #367
  • build(deps): bump actions/checkout from 6.0.3 to 7.0.0 by @dependabot[bot] in #368
  • build(deps): bump actions/setup-go from 6.4.0 to 6.5.0 by @dependabot[bot] in #369
  • build(deps): bump azure/setup-helm from 5.0.0 to 5.0.1 by @dependabot[bot] in #371
  • build(deps): bump zizmorcore/zizmor-action from 0.5.6 to 0.5.7 by @dependabot[bot] in #370
  • build(deps): bump golangci/golangci-lint-action from 9.2.1 to 9.3.0 by @dependabot[bot] in #372
  • build(deps): bump zizmorcore/zizmor-action from 0.5.7 to 0.6.0 by @dependabot[bot] in #375
  • build(deps): bump goreleaser/goreleaser-action from 7.2.2 to 7.2.3 by @dependabot[bot] in #373
  • build(deps): bump actions/setup-go from 6.5.0 to 7.0.0 by @dependabot[bot] in #376
  • build(deps): bump securego/gosec from 2.27.1 to 2.28.0 by @dependabot[bot] in #377
  • build(deps): bump zizmorcore/zizmor-action from 0.6.0 to 0.6.1 by @dependabot[bot] in #379
  • build(deps): bump go.yaml.in/yaml/v3 from 3.0.4 to 3.0.5 by @dependabot[bot] in #382
  • build(deps): bump actions/checkout from 7.0.0 to 7.0.1 by @dependabot[bot] in #380
  • build(deps): bump reviewdog/action-actionlint from 1.72.0 to 1.73.0 by @dependabot[bot] in #381
  • build(deps): bump reviewdog/action-actionlint from 1.73.0 to 1.73.1 by @dependabot[bot] in #385
  • build(deps): bump zizmorcore/zizmor-action from 0.6.1 to 0.6.2 by @dependabot[bot] in #387
  • build(deps): bump github.com/knadh/koanf/v2 from 2.3.5 to 2.3.6 by @dependabot[bot] in #389
  • build(deps): bump github.com/knadh/koanf/providers/posflag from 1.0.1 to 1.0.2 by @dependabot[bot] in #386
  • build(deps): bump github.com/knadh/koanf/providers/structs from 1.0.0 to 1.0.1 by @dependabot[bot] in #388
  • build(deps): bump reviewdog/action-actionlint from 1.73.1 to 1.73.2 by @dependabot[bot] in #390
  • build(deps): bump github.com/stretchr/testify from 1.11.1 to 1.12.0 by @dependabot[bot] in #391

Other

  • refactor: extract shared flags into registerSharedFlags (cmd_flags.go) by @somaz94 in #357
  • chore: remove deprecated go report card by @losisin in #383
  • release: v2.6.0 by @losisin in #392

New Contributors

Full Changelog: v2.5.0...v2.6.0