-
-
Notifications
You must be signed in to change notification settings - Fork 750
feat: generate mirrors patch #12265
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: generate mirrors patch #12265
Conversation
26fc654 to
33f9da5
Compare
| imageCacheServeCmdFlags.mirrors, | ||
| imageCacheServeCmdFlags.tlsCertFile != "" && imageCacheServeCmdFlags.tlsKeyFile != "", | ||
| ); err != nil { | ||
| development.Error("failed to generate Talos config patch for registry mirrors", zap.Error(err)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not a fatal error, we don't want to crash image-cache server here, so just log it.
Upon starting a image cache server, attempt to generate patch for Talos. Signed-off-by: Mateusz Urbanek <[email protected]>
33f9da5 to
f1c04e4
Compare
| return err | ||
| } | ||
|
|
||
| const patchFile = "image-cache-mirrors-patch.yaml" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we make this configurable?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Most of our patches are not configurable now. I want to change it at some point, but make it all at once.
|
/m |
Upon starting a image cache server, attempt to generate patch for Talos.
Signed-off-by: Mateusz Urbanek [email protected]