Renovates correctly updates the ref
in the URL for remote targets in kustomize, but it doesn't support multiple query parameters in the URL. If there are query parameters before ref
, renovate doesn't work. If the query parameters are after ref
, renovate deletes them in the update. Also, version
is not treated as ref
.
Working example from the file in working:
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- https://github.com/kubernetes-sigs/gateway-api/config/crd?ref=v1.0.0
Problem 1 - Renovate doesn't support query parameters before ref
in the URL for remote targets in kustomize.
The following, from the file in timeout is not recognized by Renovate because there query parameters before ref
in the URL:
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- https://github.com/kubernetes-sigs/gateway-api/config/crd?timeout=120&ref=v1.0.0
The following, from the file in ref-before-timeout is not updated correctly by Renovate because the query parameters are deleted:
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- https://github.com/kubernetes-sigs/gateway-api/config/crd?ref=v1.0.0&timeout=120
The following, from the file in version is not recognized by Renovate because version
is not treated as ref
:
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- https://github.com/kubernetes-sigs/gateway-api/config/crd?version=v1.0.0
Renovate should be able to handle multiple query parameters in the URL for remote targets in kustomize, no matter the order of the query parameters. Renovate should also treat version
as ref
in the URL for remote targets in kustomize.
Remote targets in kustomize support multiple query parameters:
ref
- agit fetch
-able ref, typically a branch, tag, or full commit hash (short hashes are not supported)version
- same asref
. Ifref
is provided, this is ignored.timeout
(default27s
) - a number in seconds, or a go duration. specifies the timeout for fetching the resourcesubmodules
(defaulttrue
) - a boolean specifying whether to clone submodules or not
Reproduction repo for renovatebot/renovate#31064