Skip to content

Commit 42180cf

Browse files
authored
Merge pull request #685 from application-stacks/go-124
Update go to v1.24 and oauth2 to v0.27.0
2 parents c453dcb + ec08188 commit 42180cf

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/application-stacks/runtime-component-operator
22

3-
go 1.23
3+
go 1.24
44

55
require (
66
github.com/cert-manager/cert-manager v1.14.7
@@ -58,7 +58,7 @@ require (
5858
go.uber.org/multierr v1.11.0 // indirect
5959
golang.org/x/exp v0.0.0-20231226003508-02704c960a9b // indirect
6060
golang.org/x/net v0.33.0 // indirect
61-
golang.org/x/oauth2 v0.21.0 // indirect
61+
golang.org/x/oauth2 v0.27.0 // indirect
6262
golang.org/x/sys v0.28.0 // indirect
6363
golang.org/x/term v0.27.0 // indirect
6464
golang.org/x/text v0.21.0 // indirect

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,8 @@ golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLL
159159
golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
160160
golang.org/x/net v0.33.0 h1:74SYHlV8BIgHIFC/LrYkOGIwL19eTYXQ5wc6TBuO36I=
161161
golang.org/x/net v0.33.0/go.mod h1:HXLR5J+9DxmrqMwG9qjGCxZ+zKXxBru04zlTvWlWuN4=
162-
golang.org/x/oauth2 v0.21.0 h1:tsimM75w1tF/uws5rbeHzIWxEqElMehnc+iW793zsZs=
163-
golang.org/x/oauth2 v0.21.0/go.mod h1:XYTD2NtWslqkgxebSiOHnXEap4TF09sJSc7H1sXbhtI=
162+
golang.org/x/oauth2 v0.27.0 h1:da9Vo7/tDv5RH/7nZDz1eMGS/q1Vv1N/7FCrBhI9I3M=
163+
golang.org/x/oauth2 v0.27.0/go.mod h1:onh5ek6nERTohokkhCD/y2cV4Do3fxFHFuAejCkRWT8=
164164
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
165165
golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
166166
golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=

utils/utils.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1039,7 +1039,7 @@ func Validate(ba common.BaseComponent) (bool, error) {
10391039
if ss != nil && ss.GetStorage() != nil {
10401040
if ss.GetStorage().GetVolumeClaimTemplate() == nil {
10411041
if ss.GetStorage().GetSize() == "" {
1042-
return false, fmt.Errorf("validation failed: " + requiredFieldMessage("spec.statefulSet.storage.size"))
1042+
return false, fmt.Errorf("validation failed: %s", requiredFieldMessage("spec.statefulSet.storage.size"))
10431043
}
10441044
if _, err := resource.ParseQuantity(ss.GetStorage().GetSize()); err != nil {
10451045
return false, fmt.Errorf("validation failed: cannot parse '%v': %v", ss.GetStorage().GetSize(), err)
@@ -1142,7 +1142,7 @@ func ValidatePrometheusMonitoringEndpoints(ba common.BaseComponent, client clien
11421142
}
11431143

11441144
func createValidationError(msg string) error {
1145-
return fmt.Errorf("validation failed: " + msg)
1145+
return fmt.Errorf("validation failed: %s", msg)
11461146
}
11471147

11481148
func requiredFieldMessage(fieldPaths ...string) string {

0 commit comments

Comments
 (0)