Commit Graph

40 Commits

Author SHA1 Message Date
Sebastian Poxhofer be13c9f5f7 feat(manager): share OCI Helm chart resolution across managers (#45760)
* feat(manager): share OCI Helm chart resolution across managers

Add getOciChartDep() to helmv3/oci.ts and use it in argocd, fleet, flux,
helmfile, helmsman, helmv3, kustomize, sveltos, terraform and vendir.

- set pinDigests: false for OCI charts in all of them
- apply registryAliases to OCI charts in argocd, helmfile and helmsman
- keep the registry port in terraform helm_release repositories
- skip fleet OCI charts without a version instead of using 'undefined'

* docs(manager/helmv3): correct the OCI chart pinDigests rationale

* refactor(manager/helmfile): drop redundant OCI repository url guard

The repository schema already requires url to be a string, so the falsy
branch could not be reached by parsed input and left the patch partially
covered.
2026-09-09 13:51:30 +00:00
Sebastian Poxhofer 05e1271376 test: use expect().resolves instead of awaiting inside expect (#45672)
Enables the vitest/prefer-expect-resolves oxlint rule and applies its
autofix across the spec suite.
2026-09-04 10:40:46 +00:00
Jamie Tanna 0e6429b13e refactor(types): document localDir isn't a globalOnly option (#44635)
* refactor(types): document `localDir` isn't a `globalOnly` option

To make sure that it's clear when reviewing `GlobalConfig`, as well as
working with our types, we can move the `localDir` definition into a
separate type.

* fixup! refactor(types): document `localDir` isn't a `globalOnly` option

* fixup! refactor(types): document `localDir` isn't a `globalOnly` option

Co-authored-by: Claude Sonnet 5 <jamie.tanna+claude-code@mend.io>

* fixup! refactor(types): document `localDir` isn't a `globalOnly` option

Co-authored-by: Claude Sonnet 5 <jamie.tanna+claude-code@mend.io>

* fixup! refactor(types): document `localDir` isn't a `globalOnly` option

Co-authored-by: Claude Sonnet 5 <jamie.tanna+claude-code@mend.io>

---------

Co-authored-by: Claude Sonnet 5 <jamie.tanna+claude-code@mend.io>
2026-07-20 08:07:17 +00:00
Norman 4e1553583c feat(terraform): add OCI protocol support for modules and providers (#38934)
* feat(terraform): add OCI protocol support for modules and providers

Adds support for Terraform modules and providers hosted in OCI-compatible
container registries using the `oci://` protocol.

Delegates OCI sources to Docker datasource for version resolution.
Supports both version in separate field and embedded in URL.

Closes https://github.com/renovatebot/renovate/discussions/38927

* refactor(terraform): address code review feedback for OCI support

cd - Move ociRefMatchRegex to shared location in base.ts
cd - Extract OCI parsing into parseOciRef function to reduce duplication
cd - Remove unnecessary registryUrls assignments
cd - Add skipReason when OCI tag is unspecified
cd - Inline oci.tf fixture to avoid triggering vulnerability scanners
cd - Refactor OCI regex tests to use it.each

* refactor(terraform): address PR review, round 2

- Replace custom ociRefMatchRegex/parseOciRef with getDep pattern,
reusing isOCIRegistry/removeOCIPrefix from helmv3/oci.ts
- Remove docs/development/oci-terraform-support.md
- Remove ociRefMatchRegex/parseOciRef from base.ts and modules.ts
- Simplify OCI test in extract.spec.ts
- Remove ociRefMatchRegex describe block from modules.spec.ts

* refactor(terraform): address PR review, round 3

extract duplicate function

Signed-off-by: Norman Stetter <85173861+norman-zon@users.noreply.github.com>

* fix: only allow valid oci urls

oci sources only support query params for versioning

* feat: pass through registryaliases

* fix: fix broken tests

* fix: address PR review round 4

* fix: replace new URL with parseUrl

Signed-off-by: Norman Stetter <85173861+norman-zon@users.noreply.github.com>

* fix: add tests for new path

Signed-off-by: Norman Stetter <85173861+norman-zon@users.noreply.github.com>

---------

Signed-off-by: Norman Stetter <85173861+norman-zon@users.noreply.github.com>
2026-04-29 10:57:45 +00:00
Sergei Zharinov 9d857c1f68 refactor(lint): Organize imports with biome (#40966) 2026-02-06 13:40:01 +00:00
Sergei Zharinov 930cf6633c refactor: Rewrite imports with .ts extensions (#40700)
fix: Additional vi.mock path corrections and prettier formatting
2026-01-26 22:48:17 +00:00
Sergei Zharinov 7c79c11285 fix: Always use default import from upath and semver-stable (#37325) 2025-08-05 11:01:45 +00:00
interad-woergoetter 6ba08ec9d7 feat(terraform): add support for docker_registry_image data source (#35537)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2025-05-22 22:43:50 +00:00
Hansuk Hong c841ea1da4 fix(manager/terraform): support subpath module for git-tags ref (#35978)
Signed-off-by: flavono123 <flavono123@gmail.com>
2025-05-17 09:28:20 +00:00
Michael Kriese 19c115c813 test: cleanup (#34785) 2025-03-13 17:52:09 +00:00
Michael Kriese 997c23502e test: migrate to vitest (#34475)
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
2025-02-26 09:35:54 +00:00
Michael Kriese bf5ce6cc3a fix(manager): retain depName when using registryAliases (#33911) 2025-01-30 08:05:36 +00:00
Michael Kriese 45bdc77844 refactor(manager): always set package name from docker image extract (#33917) 2025-01-29 15:36:24 +00:00
Sergei Zharinov b69416ce17 refactor(prettier): Force trailing commas (#25631) 2023-11-07 15:50:29 +00:00
Michael Kriese fcd5b188c7 fix(terraform): support more local path modules (#22758) 2023-06-14 14:26:57 +00:00
Michael Kriese 7b21f34734 fix(terraform): return null for files without deps (#22731) 2023-06-13 09:51:32 +00:00
Michael Kriese a8c8c00be0 feat(manager/terraform): search lockfile on parent dirs (#22403) 2023-05-25 12:40:30 +00:00
Ryo Matsukawa 0417c111ac refactor: Merged multiple skipReasons into unspecified-version. (#22409) 2023-05-25 05:48:11 +00:00
Michael Kriese 3f33995ab9 feat(manager/terraform): support registry aliases for docker images and oci helm charts (#22022)
Co-authored-by: Sebastian Poxhofer <secustor@users.noreply.github.com>
2023-05-09 15:26:00 +00:00
Michael Kriese f63f3647ec test(manager/terraform): refactor some tests (#22039) 2023-05-09 09:50:37 +00:00
Michael Kriese 7bdf4d6269 fix(manager/terraform): correctly extract oci charts (#21974) 2023-05-04 15:17:04 +00:00
Sebastian Poxhofer 6a8981ec13 fix(manager/terraform): use hashicorp versioning for terraform refs (#20403) 2023-02-14 16:03:24 +01:00
Jameel Al-Aziz c127ead622 feat(manager/terraform): support OCI registry in helm_release repository (#20237)
Co-authored-by: Sebastian Poxhofer <secustor@users.noreply.github.com>
2023-02-07 20:20:26 +00:00
Morre c5db2dc718 feat(manager/terraform): support OCI charts in helm_release (#19869)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Co-authored-by: Sebastian Poxhofer <secustor@users.noreply.github.com>
2023-01-19 18:50:40 +01:00
Sebastian Poxhofer 1127c5e401 fix(manager/terraform): do not return registryUrls containing undefined (#19905) 2023-01-18 15:16:46 +00:00
Sebastian Poxhofer e02ad9e684 fix(terraform): return early on parse errors and do not fail on checklist false positive (#19778)
Closes https://github.com/renovatebot/renovate/issues/19777
2023-01-11 12:19:33 +01:00
Sebastian Poxhofer 1ab049f7f4 feat(terraform): use HCL parser and introduce class based extractors (#19269)
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
2023-01-09 13:16:20 +00:00
Sebastian Poxhofer 1aca2f1f59 test(terraform): further improve testing and simplify test code (#19242) 2022-12-04 17:41:19 +01:00
Sebastian Poxhofer 9599b850fd test(terraform): use matchObject instead of matchSnapshot (#19222) 2022-12-02 15:55:36 +01:00
Sebastian Poxhofer a19f44b2a8 fix(terraform): allow _ and - in hostnames of provider sources (#19203) 2022-12-01 10:23:53 +00:00
Sergei Zharinov 3c56aeca17 refactor(tests): Use codeBlock tagged literal (#18916) 2022-11-15 08:35:36 +00:00
Rhys Arkins f764f8879c feat(config): containerbaseDir (#17414) 2022-08-25 15:43:06 +00:00
Michael Kriese b4319928f1 refactor: strict manager tests (#16155)
* refactor: strict manager tests

* chore: revert changes

* Update lib/modules/manager/gradle/extract.spec.ts
2022-06-20 17:05:39 +02:00
Michael Kriese 827d313de4 feat(manager/terraform): support multiple container images (#16107)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2022-06-16 14:06:36 +00:00
Johannes Feichtner a4205761c8 feat(terraform): kubernetes image resources support (#16029)
* add tests

* add support for kubernetes image resources

* Update lib/modules/manager/terraform/extract.ts

Co-authored-by: Sebastian Poxhofer <secustor@users.noreply.github.com>

* added unknown resource

* added Kubernetes to Readme

* missed one spot in the Readme

* Update lib/modules/manager/terraform/readme.md

Co-authored-by: Sebastian Poxhofer <secustor@users.noreply.github.com>

* switch to toMatchObject() in tests

Co-authored-by: Sebastian Poxhofer <secustor@users.noreply.github.com>
Co-authored-by: Rhys Arkins <rhys@arkins.net>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-06-14 19:51:11 +00:00
patst 500c2cd2ba feat(manager:terraform): Terraform-module updates for Azure DevOps SSH Repositories (#15492)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-05-16 14:23:57 +00:00
Morre d4ccd8a466 fix(manager:terraform): resources can contain blocks (#15543) 2022-05-11 13:41:13 +00:00
Michael Kriese 64f5bd5f03 test: enforce lint style rules (#15085) 2022-04-12 14:49:49 +00:00
Morre Meyer 2a00fcb037 feat(terraform): add support for terraform_version in tfe_workspace blocks (#14522)
Co-authored-by: Sebastian Poxhofer <secustor@users.noreply.github.com>
2022-03-14 09:53:26 +00:00
Rhys Arkins dca3418bbd refactor: lib/modules (#14488)
Moves datasource, manager, platform and versioning code from lib/ into new lib/modules/

BREAKING CHANGE: External tools must update paths to datasource, manager, platform and versioning
2022-03-04 09:04:02 +01:00