Skip to content

Commit

Permalink
fix: use the custom image factory host in backend and frontend
Browse files Browse the repository at this point in the history
Contains two fixes:

- In the frontend, `factory.talos.dev` was hardcoded for the maintenance upgrade calls. Move the image factory URL into the `FeaturesConfig` resource, and switch to reading the host from this resource on the frontend.

- In the backend, we were initializing the `imageFactoryHost` in an `init` block, and because of init, it was running before the user override was actually written into the config by Cobra. Fix it by initializing the `imageFactoryHost` lazily when it is used for the first time.

Signed-off-by: Utku Ozdemir <[email protected]>
  • Loading branch information
utkuozdemir committed Nov 22, 2024
1 parent 7fd2817 commit 9085e82
Show file tree
Hide file tree
Showing 28 changed files with 1,239 additions and 3,858 deletions.
26 changes: 5 additions & 21 deletions client/api/common/omni.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 9085e82

Please sign in to comment.