Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(build): add mutate image spec config feature #6578

Merged
merged 28 commits into from
Feb 1, 2025

Conversation

iapershin
Copy link
Collaborator

No description provided.

@alexey-igrychev alexey-igrychev marked this pull request as ready for review January 31, 2025 00:03
Signed-off-by: Aleksei Igrychev <aleksei.igrychev@palark.com>
Signed-off-by: Aleksei Igrychev <aleksei.igrychev@palark.com>
Signed-off-by: Aleksei Igrychev <aleksei.igrychev@palark.com>
Signed-off-by: Aleksei Igrychev <aleksei.igrychev@palark.com>
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
	panic: runtime error: invalid memory address or nil pointer dereference [recovered]
	panic: runtime error: invalid memory address or nil pointer dereference [recovered]
	panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0x20 pc=0x10468caa0]

goroutine 1 [running]:
gopkg.in/yaml%2ev2.handleErr(0x14000b071f8)
	/Users/aigrychev/go/pkg/mod/gopkg.in/yaml.v2@v2.4.0/yaml.go:249 +0x80
panic({0x105746060?, 0x107bc53e0?})
	/opt/homebrew/Cellar/go/1.23.2/libexec/src/runtime/panic.go:785 +0x124
gopkg.in/yaml%2ev2.handleErr(0x14000b06f20)
	/Users/aigrychev/go/pkg/mod/gopkg.in/yaml.v2@v2.4.0/yaml.go:249 +0x80
panic({0x105746060?, 0x107bc53e0?})
	/opt/homebrew/Cellar/go/1.23.2/libexec/src/runtime/panic.go:785 +0x124
gopkg.in/yaml%2ev2.handleErr(0x14000b06910)
	/Users/aigrychev/go/pkg/mod/gopkg.in/yaml.v2@v2.4.0/yaml.go:249 +0x80
panic({0x105746060?, 0x107bc53e0?})
	/opt/homebrew/Cellar/go/1.23.2/libexec/src/runtime/panic.go:785 +0x124
github.com/werf/werf/v2/pkg/config.dumpConfigDoc(0x0)
	/Users/aigrychev/workspace/werf/pkg/config/errors.go:59 +0x20
github.com/werf/werf/v2/pkg/config.newDetailedConfigError({0x14000e3dd00, 0x1f}, {0x0?, 0x0?}, 0x1?)
	/Users/aigrychev/workspace/werf/pkg/config/errors.go:29 +0xe0
github.com/werf/werf/v2/pkg/config.checkOverflow(0x1054cc300?, {0x0, 0x0}, 0x0)
	/Users/aigrychev/workspace/werf/pkg/config/common.go:33 +0x1c4
github.com/werf/werf/v2/pkg/config.(*rawImageSpecGlobal).UnmarshalYAML(0x14000fe64e0, 0x10efecd80?)

Signed-off-by: Aleksei Igrychev <aleksei.igrychev@palark.com>
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0x0 pc=0x10700460c]

goroutine 1 [running]:
github.com/werf/werf/v2/pkg/config.(*rawImageSpec).toDirective(0x14000a21b80)
	/Users/aigrychev/workspace/werf/pkg/config/raw_image_spec.go:82 +0x7c
github.com/werf/werf/v2/pkg/config.(*rawStapelImage).toStapelImageBaseDirective(0x14000458b40, {0x1086af760, 0x14000f20e10}, {0x14000487530, 0x6}, 0x0)
	/Users/aigrychev/workspace/werf/pkg/config/raw_stapel_image.go:308 +0x75c
github.com/werf/werf/v2/pkg/config.(*rawStapelImage).toStapelImageDirective(0x14000458b40, {0x1086af760, 0x14000f20e10}, {0x14000487530, 0x6})
	/Users/aigrychev/workspace/werf/pkg/config/raw_stapel_image.go:141 +0x58
github.com/werf/werf/v2/pkg/config.(*rawStapelImage).toStapelImageDirectives(0x14000458b40, {0x1086af760, 0x14000f20e10})
	/Users/aigrychev/workspace/werf/pkg/config/raw_stapel_image.go:108 +0x94

Signed-off-by: Aleksei Igrychev <aleksei.igrychev@palark.com>
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
	panic: runtime error: invalid memory address or nil pointer dereference [recovered]
	panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0x20 pc=0x104cb0aa0]

goroutine 1 [running]:
gopkg.in/yaml%2ev2.handleErr(0x14000f8f1f8)
	/Users/aigrychev/go/pkg/mod/gopkg.in/yaml.v2@v2.4.0/yaml.go:249 +0x80
panic({0x105d6a080?, 0x1081e93e0?})
	/opt/homebrew/Cellar/go/1.23.2/libexec/src/runtime/panic.go:785 +0x124
gopkg.in/yaml%2ev2.handleErr(0x14000f8ef50)
	/Users/aigrychev/go/pkg/mod/gopkg.in/yaml.v2@v2.4.0/yaml.go:249 +0x80
panic({0x105d6a080?, 0x1081e93e0?})
	/opt/homebrew/Cellar/go/1.23.2/libexec/src/runtime/panic.go:785 +0x124
github.com/werf/werf/v2/pkg/config.dumpConfigDoc(0x0)
	/Users/aigrychev/workspace/werf/pkg/config/errors.go:59 +0x20
github.com/werf/werf/v2/pkg/config.newDetailedConfigError({0x14000c29d00, 0x20}, {0x0?, 0x0?}, 0x1?)
	/Users/aigrychev/workspace/werf/pkg/config/errors.go:29 +0xe0
github.com/werf/werf/v2/pkg/config.checkOverflow(0x105af02e0?, {0x0, 0x0}, 0x0)
	/Users/aigrychev/workspace/werf/pkg/config/common.go:33 +0x1c4
github.com/werf/werf/v2/pkg/config.(*rawImageSpec).UnmarshalYAML(0x140011375c0, 0x14f30ab20?)
	/Users/aigrychev/workspace/werf/pkg/config/raw_image_spec.go:51 +0x50
gopkg.in/yaml%2ev2.(*decoder).callUnmarshaler(0x1400112f380, 0x1400033c1c0, {0x14f30ab20, 0x140011375c0})
	/Users/aigrychev/go/pkg/mod/gopkg.in/yaml.v2@v2.4.0/decode.go:270 +0x98
gopkg.in/yaml%2ev2.(*decoder).prepare(0x1400112f380, 0x1400033c1c0, {0x105d9fec0?, 0x140007b9b68?, 0xa000140011271a0?})

Signed-off-by: Aleksei Igrychev <aleksei.igrychev@palark.com>
+
Signed-off-by: Aleksei Igrychev <aleksei.igrychev@palark.com>
Signed-off-by: Aleksei Igrychev <aleksei.igrychev@palark.com>
Signed-off-by: Aleksei Igrychev <aleksei.igrychev@palark.com>
Signed-off-by: Aleksei Igrychev <aleksei.igrychev@palark.com>
Signed-off-by: Aleksei Igrychev <aleksei.igrychev@palark.com>
Signed-off-by: Aleksei Igrychev <aleksei.igrychev@palark.com>
Signed-off-by: Aleksei Igrychev <aleksei.igrychev@palark.com>
Signed-off-by: Aleksei Igrychev <aleksei.igrychev@palark.com>
Signed-off-by: Aleksei Igrychev <aleksei.igrychev@palark.com>
+
Signed-off-by: Aleksei Igrychev <aleksei.igrychev@palark.com>
Signed-off-by: Aleksei Igrychev <aleksei.igrychev@palark.com>
Signed-off-by: Aleksei Igrychev <aleksei.igrychev@palark.com>
Signed-off-by: Aleksei Igrychev <aleksei.igrychev@palark.com>
+
Signed-off-by: Aleksei Igrychev <aleksei.igrychev@palark.com>
+
Signed-off-by: Aleksei Igrychev <aleksei.igrychev@palark.com>
+
Signed-off-by: Aleksei Igrychev <aleksei.igrychev@palark.com>
Signed-off-by: Aleksei Igrychev <aleksei.igrychev@palark.com>
Signed-off-by: Aleksei Igrychev <aleksei.igrychev@palark.com>
Signed-off-by: Aleksei Igrychev <aleksei.igrychev@palark.com>
Signed-off-by: Aleksei Igrychev <aleksei.igrychev@palark.com>
@alexey-igrychev alexey-igrychev force-pushed the feat/build/add-mutate-image-spec-config-feature branch from 87cd775 to 58ce0b5 Compare February 1, 2025 10:58
@alexey-igrychev alexey-igrychev merged commit 799193e into main Feb 1, 2025
12 checks passed
@alexey-igrychev alexey-igrychev deleted the feat/build/add-mutate-image-spec-config-feature branch February 1, 2025 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants