Skip to content

Commit 48fdcf8

Browse files
authored
Consider all SHA's of a manifest (#355)
1 parent c5a91ff commit 48fdcf8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+1708
-658
lines changed

cmd/app/options.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -126,18 +126,14 @@ func (o *Options) addAppFlags(fs *pflag.FlagSet) {
126126
"If enabled, all containers will be tested, unless they have the "+
127127
fmt.Sprintf(`annotation "%s/${my-container}=false".`, api.EnableAnnotationKey))
128128

129-
fs.DurationVarP(&o.CacheTimeout,
130-
"image-cache-timeout", "c", time.Minute*30,
131-
"The time for an image version in the cache to be considered fresh. Images "+
132-
"will be rechecked after this interval.")
133-
134129
fs.StringVarP(&o.LogLevel,
135130
"log-level", "v", "info",
136131
"Log level (debug, info, warn, error, fatal, panic).")
137132

138-
fs.DurationVarP(&o.GracefulShutdownTimeout,
139-
"graceful-shutdown-timeout", "", 10*time.Second,
140-
"Time that the manager should wait for all controller to shutdown.")
133+
fs.DurationVarP(&o.CacheTimeout,
134+
"image-cache-timeout", "c", time.Minute*30,
135+
"The time for an image version in the cache to be considered fresh. Images "+
136+
"will be rechecked after this interval.")
141137

142138
fs.DurationVarP(&o.RequeueDuration,
143139
"requeue-duration", "r", time.Hour,
@@ -146,6 +142,10 @@ func (o *Options) addAppFlags(fs *pflag.FlagSet) {
146142
fs.DurationVarP(&o.CacheSyncPeriod,
147143
"cache-sync-period", "", 5*time.Hour,
148144
"The time in which all resources should be updated.")
145+
146+
fs.DurationVarP(&o.GracefulShutdownTimeout,
147+
"graceful-shutdown-timeout", "", 10*time.Second,
148+
"Time that the manager should wait for all controller to shutdown.")
149149
}
150150

151151
func (o *Options) addAuthFlags(fs *pflag.FlagSet) {

go.mod

Lines changed: 62 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,73 @@
11
module github.com/jetstack/version-checker
22

3-
go 1.24.0
4-
5-
toolchain go1.24.2
3+
go 1.24.5
64

75
// Do not remove this comment:
86
// please place any replace statements here at the top for visibility and add a
97
// comment to it as to when it can be removed
108

9+
replace github.com/imdario/mergo => github.com/imdario/mergo v0.3.16
10+
11+
// Core Dependencies
1112
require (
12-
github.com/Azure/go-autorest/autorest v0.11.30
13-
github.com/Azure/go-autorest/autorest/adal v0.9.24
14-
github.com/aws/aws-sdk-go-v2 v1.36.5
15-
github.com/golang-jwt/jwt/v5 v5.2.2
16-
github.com/hashicorp/go-retryablehttp v0.7.8
13+
github.com/bombsimon/logrusr/v4 v4.1.0
1714
github.com/prometheus/client_golang v1.22.0
1815
github.com/sirupsen/logrus v1.9.3
1916
github.com/spf13/cobra v1.9.1
20-
github.com/spf13/pflag v1.0.6
21-
golang.org/x/oauth2 v0.30.0 // indirect
22-
k8s.io/api v0.33.2
23-
k8s.io/apimachinery v0.33.2
24-
k8s.io/cli-runtime v0.33.2
25-
k8s.io/client-go v0.33.2
26-
k8s.io/component-base v0.33.2
27-
k8s.io/utils v0.0.0-20250321185631-1f6e0b77f77e // indirect
17+
github.com/spf13/pflag v1.0.7
18+
golang.org/x/time v0.9.0
19+
k8s.io/api v0.33.3
20+
k8s.io/apimachinery v0.33.3
21+
k8s.io/cli-runtime v0.33.3
22+
k8s.io/client-go v0.33.3
23+
k8s.io/component-base v0.33.3
24+
sigs.k8s.io/controller-runtime v0.21.0
2825
)
2926

27+
// Azure Client Dependencies
3028
require (
29+
github.com/Azure/go-autorest/autorest v0.11.30
30+
github.com/Azure/go-autorest/autorest/adal v0.9.24
31+
github.com/MicahParks/jwkset v0.8.0 // indirect
3132
github.com/MicahParks/keyfunc/v3 v3.4.0
33+
github.com/golang-jwt/jwt/v5 v5.2.3
34+
)
35+
36+
// AWS Client Dependencies
37+
require (
38+
github.com/aws/aws-sdk-go-v2 v1.36.5
3239
github.com/aws/aws-sdk-go-v2/config v1.29.17
3340
github.com/aws/aws-sdk-go-v2/credentials v1.17.70
3441
github.com/aws/aws-sdk-go-v2/service/ecr v1.45.1
35-
github.com/bombsimon/logrusr/v4 v4.1.0
36-
github.com/go-chi/transport v0.5.0
42+
)
43+
44+
// Github Client Dependencies
45+
require (
3746
github.com/gofri/go-github-ratelimit v1.1.1
38-
github.com/google/go-cmp v0.7.0
39-
github.com/google/go-containerregistry v0.20.6
4047
github.com/google/go-github/v70 v70.0.0
48+
)
49+
50+
// Generic Client Dependencies
51+
require (
52+
github.com/go-chi/transport v0.5.0
53+
github.com/google/go-containerregistry v0.20.6
4154
github.com/hashicorp/go-cleanhttp v0.5.2
42-
github.com/jarcoal/httpmock v1.4.0
55+
github.com/hashicorp/go-retryablehttp v0.7.8
4356
github.com/patrickmn/go-cache v2.1.0+incompatible
57+
)
58+
59+
// Testing Dependencies
60+
require (
61+
github.com/jarcoal/httpmock v1.4.0
4462
github.com/stretchr/testify v1.10.0
45-
sigs.k8s.io/controller-runtime v0.21.0
4663
)
4764

4865
require (
49-
github.com/Azure/go-ansiterm v0.0.0-20250102033503-faa5f7b0171c // indirect
66+
github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161 // indirect
5067
github.com/Azure/go-autorest v14.2.0+incompatible // indirect
51-
github.com/Azure/go-autorest/autorest/date v0.3.1 // indirect
52-
github.com/Azure/go-autorest/logger v0.2.2 // indirect
53-
github.com/Azure/go-autorest/tracing v0.6.1 // indirect
54-
github.com/MicahParks/jwkset v0.8.0 // indirect
68+
github.com/Azure/go-autorest/autorest/date v0.3.0 // indirect
69+
github.com/Azure/go-autorest/logger v0.2.1 // indirect
70+
github.com/Azure/go-autorest/tracing v0.6.0 // indirect
5571
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.32 // indirect
5672
github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36 // indirect
5773
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36 // indirect
@@ -66,24 +82,25 @@ require (
6682
github.com/blang/semver/v4 v4.0.0 // indirect
6783
github.com/cespare/xxhash/v2 v2.3.0 // indirect
6884
github.com/containerd/stargz-snapshotter/estargz v0.16.3 // indirect
69-
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
85+
github.com/davecgh/go-spew v1.1.1 // indirect
7086
github.com/docker/cli v28.2.2+incompatible // indirect
7187
github.com/docker/distribution v2.8.3+incompatible // indirect
7288
github.com/docker/docker-credential-helpers v0.9.3 // indirect
73-
github.com/emicklei/go-restful/v3 v3.12.2 // indirect
89+
github.com/emicklei/go-restful/v3 v3.11.0 // indirect
7490
github.com/evanphx/json-patch v4.12.0+incompatible // indirect
7591
github.com/evanphx/json-patch/v5 v5.9.11 // indirect
76-
github.com/fsnotify/fsnotify v1.8.0 // indirect
77-
github.com/fxamacker/cbor/v2 v2.8.0 // indirect
78-
github.com/go-errors/errors v1.5.1 // indirect
92+
github.com/fsnotify/fsnotify v1.7.0 // indirect
93+
github.com/fxamacker/cbor/v2 v2.7.0 // indirect
94+
github.com/go-errors/errors v1.4.2 // indirect
7995
github.com/go-logr/logr v1.4.3 // indirect
80-
github.com/go-openapi/jsonpointer v0.21.1 // indirect
81-
github.com/go-openapi/jsonreference v0.21.0 // indirect
82-
github.com/go-openapi/swag v0.23.1 // indirect
96+
github.com/go-openapi/jsonpointer v0.21.0 // indirect
97+
github.com/go-openapi/jsonreference v0.20.2 // indirect
98+
github.com/go-openapi/swag v0.23.0 // indirect
8399
github.com/gogo/protobuf v1.3.2 // indirect
84100
github.com/golang-jwt/jwt/v4 v4.5.2 // indirect
85101
github.com/google/btree v1.1.3 // indirect
86102
github.com/google/gnostic-models v0.6.9 // indirect
103+
github.com/google/go-cmp v0.7.0 // indirect
87104
github.com/google/go-querystring v1.1.0 // indirect
88105
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 // indirect
89106
github.com/google/uuid v1.6.0 // indirect
@@ -94,9 +111,9 @@ require (
94111
github.com/klauspost/compress v1.18.0 // indirect
95112
github.com/kylelemons/godebug v1.1.0 // indirect
96113
github.com/liggitt/tabwriter v0.0.0-20181228230101-89fcab3d43de // indirect
97-
github.com/mailru/easyjson v0.9.0 // indirect
114+
github.com/mailru/easyjson v0.7.7 // indirect
98115
github.com/mitchellh/go-homedir v1.1.0 // indirect
99-
github.com/moby/term v0.5.2 // indirect
116+
github.com/moby/term v0.5.0 // indirect
100117
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
101118
github.com/modern-go/reflect2 v1.0.2 // indirect
102119
github.com/monochromegane/go-gitignore v0.0.0-20200626010858-205db1a8cc00 // indirect
@@ -105,36 +122,34 @@ require (
105122
github.com/opencontainers/image-spec v1.1.1 // indirect
106123
github.com/peterbourgon/diskv v2.0.1+incompatible // indirect
107124
github.com/pkg/errors v0.9.1 // indirect
108-
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
125+
github.com/pmezard/go-difflib v1.0.0 // indirect
109126
github.com/prometheus/client_model v0.6.1 // indirect
110-
github.com/prometheus/common v0.63.0 // indirect
111-
github.com/prometheus/procfs v0.16.0 // indirect
127+
github.com/prometheus/common v0.62.0 // indirect
128+
github.com/prometheus/procfs v0.15.1 // indirect
112129
github.com/stretchr/objx v0.5.2 // indirect
113130
github.com/vbatts/tar-split v0.12.1 // indirect
114131
github.com/x448/float16 v0.8.4 // indirect
115132
github.com/xlab/treeprint v1.2.0 // indirect
116133
golang.org/x/crypto v0.36.0 // indirect
117134
golang.org/x/net v0.38.0 // indirect
135+
golang.org/x/oauth2 v0.30.0 // indirect
118136
golang.org/x/sync v0.15.0 // indirect
119137
golang.org/x/sys v0.33.0 // indirect
120138
golang.org/x/term v0.30.0 // indirect
121139
golang.org/x/text v0.23.0 // indirect
122-
golang.org/x/time v0.11.0 // indirect
123-
gomodules.xyz/jsonpatch/v2 v2.5.0 // indirect
124-
google.golang.org/protobuf v1.36.6 // indirect
140+
gomodules.xyz/jsonpatch/v2 v2.4.0 // indirect
141+
google.golang.org/protobuf v1.36.5 // indirect
125142
gopkg.in/evanphx/json-patch.v4 v4.12.0 // indirect
126143
gopkg.in/inf.v0 v0.9.1 // indirect
127144
gopkg.in/yaml.v3 v3.0.1 // indirect
128-
gotest.tools/v3 v3.1.0 // indirect
129145
k8s.io/apiextensions-apiserver v0.33.0 // indirect
130146
k8s.io/klog/v2 v2.130.1 // indirect
131147
k8s.io/kube-openapi v0.0.0-20250318190949-c8a335a9a2ff // indirect
132-
sigs.k8s.io/json v0.0.0-20241014173422-cfa47c3a1cc8 // indirect
148+
k8s.io/utils v0.0.0-20241104100929-3ea5e8cea738 // indirect
149+
sigs.k8s.io/json v0.0.0-20241010143419-9aa6b5e7a4b3 // indirect
133150
sigs.k8s.io/kustomize/api v0.19.0 // indirect
134151
sigs.k8s.io/kustomize/kyaml v0.19.0 // indirect
135152
sigs.k8s.io/randfill v1.0.0 // indirect
136153
sigs.k8s.io/structured-merge-diff/v4 v4.6.0 // indirect
137154
sigs.k8s.io/yaml v1.4.0 // indirect
138155
)
139-
140-
replace github.com/imdario/mergo => github.com/imdario/mergo v0.3.16

0 commit comments

Comments
 (0)