Update devfile library (#6599)

This commit is contained in:
Philippe Martin
2023-02-16 11:47:04 +01:00
committed by GitHub
parent 262d11e3ef
commit 2460ea83da
4 changed files with 5 additions and 3 deletions

2
go.mod
View File

@@ -9,7 +9,7 @@ require (
github.com/Xuanwo/go-locale v1.1.0
github.com/blang/semver v3.5.1+incompatible
github.com/devfile/api/v2 v2.2.0
github.com/devfile/library/v2 v2.2.1-0.20230118161058-0d04f791d801
github.com/devfile/library/v2 v2.2.1-0.20230214135944-4f0ff68c83b7
github.com/devfile/registry-support/index/generator v0.0.0-20221018203505-df96d34d4273
github.com/devfile/registry-support/registry-library v0.0.0-20221201200738-19293ac0b8ab
github.com/fatih/color v1.14.1

2
go.sum
View File

@@ -380,6 +380,8 @@ github.com/devfile/library v1.2.1-0.20220308191614-f0f7e11b17de/go.mod h1:GSPfJa
github.com/devfile/library/v2 v2.0.1/go.mod h1:paJ0PARAVy0br13VpBEQ4fO3rZVDxWtooQ29+23PNBk=
github.com/devfile/library/v2 v2.2.1-0.20230118161058-0d04f791d801 h1:DreLje9666H/di1jx4nj7+I4vV6C4M0T02FW05heI+0=
github.com/devfile/library/v2 v2.2.1-0.20230118161058-0d04f791d801/go.mod h1:DkZkmV09jZjOtkVgZ8YMWeMTIRM/twUGE1HdToIhkUA=
github.com/devfile/library/v2 v2.2.1-0.20230214135944-4f0ff68c83b7 h1:LdIKu3YGBGolTEx957mH8yGzTNKMtu19GFzslPdXFrg=
github.com/devfile/library/v2 v2.2.1-0.20230214135944-4f0ff68c83b7/go.mod h1:DkZkmV09jZjOtkVgZ8YMWeMTIRM/twUGE1HdToIhkUA=
github.com/devfile/registry-support/index/generator v0.0.0-20220222194908-7a90a4214f3e/go.mod h1:iRPBxs+ZjfLEduVXpCCIOzdD2588Zv9OCs/CcXMcCCY=
github.com/devfile/registry-support/index/generator v0.0.0-20220527155645-8328a8a883be/go.mod h1:1fyDJL+fPHtcrYA6yjSVWeLmXmjCNth0d5Rq1rvtryc=
github.com/devfile/registry-support/index/generator v0.0.0-20221018203505-df96d34d4273 h1:DXENQSRTEDsk9com38njPg5511DD12HPIgzyFUErnpM=

View File

@@ -250,7 +250,7 @@ func getPodTemplateSpec(globalAttributes attributes.Attributes, components []v1.
Volumes: podTemplateSpecParams.Volumes,
},
}
if len(globalAttributes) != 0 && needsPodOverrides(globalAttributes, components) {
if needsPodOverrides(globalAttributes, components) {
patchedPodTemplateSpec, err := applyPodOverrides(globalAttributes, components, podTemplateSpec)
if err != nil {
return nil, err

2
vendor/modules.txt vendored
View File

@@ -151,7 +151,7 @@ github.com/devfile/api/v2/pkg/utils/overriding
github.com/devfile/api/v2/pkg/utils/unions
github.com/devfile/api/v2/pkg/validation
github.com/devfile/api/v2/pkg/validation/variables
# github.com/devfile/library/v2 v2.2.1-0.20230118161058-0d04f791d801
# github.com/devfile/library/v2 v2.2.1-0.20230214135944-4f0ff68c83b7
## explicit; go 1.15
github.com/devfile/library/v2/pkg/devfile
github.com/devfile/library/v2/pkg/devfile/generator