ITADN
k3d-io/k3d/Issues

feat: allow specifying registry network in configuration

#1627Pull Requestlimwa 创建于 2025-11-26
L
limwacommented
<!-- Hi there, have an early THANK YOU for your contribution! k3d is a community-driven project, so we really highly appreciate any support. Please make sure, you've read our Code of Conduct and the Contributing Guidelines :) - Code of Conduct: https://github.com/k3d-io/k3d/blob/main/CODE_OF_CONDUCT.md - Contributing Guidelines: https://github.com/k3d-io/k3d/blob/main/CONTRIBUTING.md --> # What This PR allows users to specify a network to be used when creating a registry via a configuration file. Example: ```yaml registries: create: ... network: k3d ``` Furthermore, a test was added to ensure that the "network" property is read from the config file. The documentation has been updated to let users know about this option. This PR doesn't add the ability to specify a network via the `--registry-create` option. I wasn't sure if this change required a new JSON schema version. Since this is not a breaking change, I decided to just add the property to the existing `v1alpha5` schema. # Why Fixes #1162. > [...] > Additional question: would it be possible to specify the `--default-network` parameter in the `registries.create` section of the `k3d cluster create` configuration? _Originally posted by @ar3s3ru in [#1162](https://github.com/k3d-io/k3d/issues/1162#issuecomment-1625441587)_ This is very useful for users using Podman. With this PR, they can create a bridge network beforehand and, in the config, use that network to create the registry (as recommended in the docs). # Implications No breaking changes. If the network option is not specified, the "bridge" network remains the default. <!-- Get recognized using our all-contributors bot: https://github.com/k3d-io/k3d/blob/main/CONTRIBUTING.md#get-recognized -->
合并状态:未合并 2 条评论