Skip to content

Conversation

@sclu1034
Copy link
Contributor

Params like REGISTRY_MIRRORS don't really scale well to cover a complex schema like buildkit's toml configuration. Plus, they can become out-of-date.

A param whose content is written verbatim to the config file allows defining everything the configuration has to offer, now and in the future. It also avoids having to add new params one by one as users request the ability to configure individual values.

Closes: #120

Params like `REGISTRY_MIRRORS` don't really scale well to cover
a complex schema like buildkit's toml configuration. Plus, they
can become out-of-date.

A param whose content is written verbatim to the config file
allows defining everything the configuration has to offer, now
and in the future. It also avoids having to add new params one by
one as users request the ability to configure individual values.

Closes: concourse#120
Signed-off-by: Lucas Schwiderski <[email protected]>
@sclu1034 sclu1034 force-pushed the feat/extra-buildkit-config branch from 6ea6ac8 to 9a50d4e Compare August 29, 2024 09:36
Copy link
Member

@taylorsilva taylorsilva left a comment

Choose a reason for hiding this comment

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

I'm not completely against the escape-hatch here. I do worry about the resulting configuration being valid TOML though, especially since we're blindly appending this user input to the config file.

I guess what I'm looking for here is a test or two. If you're still interested in this PR could you please add tests. If not then feel free to close the PR.

Copy link
Member

@taylorsilva taylorsilva left a comment

Choose a reason for hiding this comment

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

LGTM

@taylorsilva taylorsilva merged commit da336b8 into concourse:master Apr 23, 2025
0 of 3 checks passed
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.

Configure plain http or insecure https for registry mirrors

2 participants