Skip to content

Conversation

@chaptersix
Copy link
Contributor

@chaptersix chaptersix commented Nov 23, 2025

What changed?

  • Remove previously support for dockerize syntax. Now we just support sprig
  • updated embedded config

Why?

Simplification

How did you test it?

  • covered by existing tests
  • added new unit test(s)

Potential risks

Existing config templates will need to be updated to use sprig only syntax. Otherwise the server will not be able to read it.

log:
stdout: true
level: {{ default .Env.LOG_LEVEL "info" }}
level: {{ default "info" (env "LOG_LEVEL") }}
Copy link
Contributor Author

@chaptersix chaptersix Dec 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is worth looking at. (Hidden by Github do to the large number of changes)


func TestEmbeddedTemplateOnlyDiffersFromDockerByComment(t *testing.T) {
embeddedContent, err := os.ReadFile("config_template_embedded.yaml")
func TestEmbeddedTemplateConsistentWithDockerTemplate(t *testing.T) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
func TestEmbeddedTemplateConsistentWithDockerTemplate(t *testing.T) {
func TestEmbeddedTemplateConsistentWithDockerTemplate(t *testing.T) {

this test in no longer relevant since there's a syntax different between the 2 files. docker-builds still expects the dockerize syntax.


var rendered bytes.Buffer
err = tpl.Execute(&rendered, ctx)
err = tpl.Execute(&rendered, nil)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no need to pass in the environment as context

and [base-builder](https://github.com/temporalio/docker-builds/blob/main/docker/base-images/base-builder.Dockerfile)~~
**Note:** The docker-builds repository is now deprecated and will be archived.
<!-- TODO: Remove docker/config_template.yaml after temporalio/docker-builds repository is archived -->
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note is already in the file and this does not render.

@chaptersix chaptersix marked this pull request as ready for review December 4, 2025 22:44
@chaptersix chaptersix requested review from a team as code owners December 4, 2025 22:44
@chaptersix chaptersix requested a review from bergundy December 4, 2025 22:45
@chaptersix chaptersix enabled auto-merge (squash) December 5, 2025 16:04
@chaptersix chaptersix merged commit 1b109c3 into main Dec 5, 2025
57 checks passed
@chaptersix chaptersix deleted the alex/loader-re branch December 5, 2025 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants