From f88ed20ae687a2e24b5ec29aff2c660f2123200d Mon Sep 17 00:00:00 2001 From: Olivier Vernin Date: Wed, 21 Jan 2026 21:55:48 +0100 Subject: [PATCH] fix: cleanup updatecli policies Signed-off-by: Olivier Vernin --- updatecli-compose.yaml | 9 --------- updatecli/values.d/golang_major.yaml | 30 +--------------------------- updatecli/values.d/golang_minor.yaml | 30 +--------------------------- updatecli/values.d/golang_patch.yaml | 30 +--------------------------- 4 files changed, 3 insertions(+), 96 deletions(-) diff --git a/updatecli-compose.yaml b/updatecli-compose.yaml index 74f9f7d..f7fb09e 100644 --- a/updatecli-compose.yaml +++ b/updatecli-compose.yaml @@ -1,18 +1,9 @@ policies: - - name: Local Updatecli Policies - config: - - updatecli/updatecli.d/ - values: - - updatecli/values.d/scm.yaml - name: Update Updatecli policies policy: ghcr.io/updatecli/policies/updatecli/autodiscovery:0.7.0@sha256:6890c4b4093a80063f518101881098fab8211c986481641faaf797a9ad5a31c3 values: - updatecli/values.d/scm.yaml - updatecli/values.d/updatecli-compose.yaml - - name: Golang Version - policy: ghcr.io/updatecli/policies/golang/version:0.6.0@sha256:db93f333a26548e9c252e87bf46b9ff69cf68c6e693cd0ac6a7127609b478167 - values: - - updatecli/values.d/scm.yaml - name: Major Golang Module update policy: ghcr.io/updatecli/policies/autodiscovery/golang:0.12.0@sha256:afc70173a6bd01ca96c755378254dfb4b05775a05c2ffb8f82fed0ee2f450ba9 values: diff --git a/updatecli/values.d/golang_major.yaml b/updatecli/values.d/golang_major.yaml index 8e482f2..2259638 100644 --- a/updatecli/values.d/golang_major.yaml +++ b/updatecli/values.d/golang_major.yaml @@ -8,32 +8,4 @@ spec: pattern: majoronly ignore: - modules: - # Ignoring the following modules as they do not publish release - github.com/ProtonMail/go-crypto: "" - # Ignoring the following modules as they do not publish release - github.com/shurcooL/githubv4: "" - # Ignore module using version matching constraint 1.x - helm.sh/helm/v3: "1.x" - # The remote version uses the version v0.0.0-20190318233801-ac98e3ecb4b0 which do not exists anymore - # the patch version will try to fetch the version matching 0.0.x and finds nothing - github.com/iancoleman/orderedmap: "" - # Same for https://pkg.go.dev/golang.org/x/time?tab=versions - golang.org/x/time: "" - # Same for https://pkg.go.dev/golang.org/x/time?tab=versions - github.com/nirasan/go-oauth-pkce-code-verifier: "" - # Same for https://pkg.go.dev/golang.org/x/time?tab=versions - github.com/skratchdot/open-golang: "" - k8s.io/utils: "" - # https://pkg.go.dev/golang.org/x/exp?tab=versions - golang.org/x/exp: "" - # github.com/minamijoyo/hcledit v0.2.17 depends on - # the golang module github.com/hashicorp/hcl/v2 v2.23.1-0.20250211201033-5c140ce1cb20 - # It's not possible for Updatecli to detect version based on a commit so we just ignore - # that version until github.com/hashicorp/hcl/v2 v2.23.1 is not released - github.com/hashicorp/hcl/v2: ">= v2.23.0-0 < v2.23.2-0" - - only: - # This repository contains other go.sum file used for testing. - # So we want to be sure that we only update the one at the root of the repository - - path: "go.mod" - + "github.com/saschagrunert/demo": "" diff --git a/updatecli/values.d/golang_minor.yaml b/updatecli/values.d/golang_minor.yaml index 8efcd23..bb84d21 100644 --- a/updatecli/values.d/golang_minor.yaml +++ b/updatecli/values.d/golang_minor.yaml @@ -8,32 +8,4 @@ spec: pattern: minoronly ignore: - modules: - # Ignoring the following modules as they do not publish release - github.com/ProtonMail/go-crypto: "" - # Ignoring the following modules as they do not publish release - github.com/shurcooL/githubv4: "" - # Ignore module using version matching constraint 1.x - helm.sh/helm/v3: "1.x" - # The remote version uses the version v0.0.0-20190318233801-ac98e3ecb4b0 which do not exists anymore - # the patch version will try to fetch the version matching 0.0.x and finds nothing - github.com/iancoleman/orderedmap: "" - # Same for https://pkg.go.dev/golang.org/x/time?tab=versions - golang.org/x/time: "" - # Same for https://pkg.go.dev/golang.org/x/time?tab=versions - github.com/nirasan/go-oauth-pkce-code-verifier: "" - # Same for https://pkg.go.dev/golang.org/x/time?tab=versions - github.com/skratchdot/open-golang: "" - k8s.io/utils: "" - # https://pkg.go.dev/golang.org/x/exp?tab=versions - golang.org/x/exp: "" - # github.com/minamijoyo/hcledit v0.2.17 depends on - # the golang module github.com/hashicorp/hcl/v2 v2.23.1-0.20250211201033-5c140ce1cb20 - # It's not possible for Updatecli to detect version based on a commit so we just ignore - # that version until github.com/hashicorp/hcl/v2 v2.23.1 is not released - github.com/hashicorp/hcl/v2: ">= v2.23.0-0 < v2.23.2-0" - - only: - # This repository contains other go.sum file used for testing. - # So we want to be sure that we only update the one at the root of the repository - - path: "go.mod" - + "github.com/saschagrunert/demo": "" diff --git a/updatecli/values.d/golang_patch.yaml b/updatecli/values.d/golang_patch.yaml index b685a9e..27c8b1d 100644 --- a/updatecli/values.d/golang_patch.yaml +++ b/updatecli/values.d/golang_patch.yaml @@ -9,32 +9,4 @@ spec: pattern: patch ignore: - modules: - # Ignoring the following modules as they do not publish release - github.com/ProtonMail/go-crypto: "" - # Ignoring the following modules as they do not publish release - github.com/shurcooL/githubv4: "" - # Ignore module using version matching constraint 1.x - helm.sh/helm/v3: "1.x" - # The remote version uses the version v0.0.0-20190318233801-ac98e3ecb4b0 which do not exists anymore - # the patch version will try to fetch the version matching 0.0.x and finds nothing - github.com/iancoleman/orderedmap: "" - # Same for https://pkg.go.dev/golang.org/x/time?tab=versions - golang.org/x/time: "" - # Same for https://pkg.go.dev/golang.org/x/time?tab=versions - github.com/nirasan/go-oauth-pkce-code-verifier: "" - # Same for https://pkg.go.dev/golang.org/x/time?tab=versions - github.com/skratchdot/open-golang: "" - k8s.io/utils: "" - # https://pkg.go.dev/golang.org/x/exp?tab=versions - golang.org/x/exp: "" - # github.com/minamijoyo/hcledit v0.2.17 depends on - # the golang module github.com/hashicorp/hcl/v2 v2.23.1-0.20250211201033-5c140ce1cb20 - # It's not possible for Updatecli to detect version based on a commit so we just ignore - # that version until github.com/hashicorp/hcl/v2 v2.23.1 is not released - github.com/hashicorp/hcl/v2: ">= v2.23.0-0 < v2.23.2-0" - - only: - # This repository contains other go.sum file used for testing. - # So we want to be sure that we only update the one at the root of the repository - - path: "go.mod" - + "github.com/saschagrunert/demo": ""