Skip to content
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

Add support to OVERWRITE capz flatcar images to tekton pipelines #2121

Open
2 tasks
primeroz opened this issue Mar 8, 2023 · 0 comments
Open
2 tasks

Add support to OVERWRITE capz flatcar images to tekton pipelines #2121

primeroz opened this issue Mar 8, 2023 · 0 comments
Labels
area/kaas Mission: Cloud Native Platform - Self-driving Kubernetes as a Service provider/cluster-api-azure Cluster API based running on Azure team/phoenix Team Phoenix

Comments

@primeroz
Copy link

primeroz commented Mar 8, 2023

Motivation

Follow up to #1659

Azure Gallery does not support overwriting an existing image so right now the build pipeline first check for an existing image matching the same FLATCAR_VERSION/KUBERNETES_VERSION combination and exit early if it exists

but we might need to rebuild an image under some circumstances like:

  • Update replicated regions to create cluster in new regions
  • Rebuild with an updated version of image-builder provisioning code
  • others i can't think of now

as highlighted here we could

  • delete the image version after checking for its existence when the OVERWRITE flag is set
    • but this is risky since we have no guarantee that the rebuild will work and we might end up with no image
  • We could change the way that versions are created by
    • Create a temporary version ( FLATCAR_VERSION-build_timestamp )
    • have a task at the end of the build to replace the actual FLATCAR_VERSION with the built one as atomically as possible

TODO

  • Implement a solution to the problem as described above ( or a better one )
  • Document how overwrite works in capz pipelines

Outcome

For Clippy

  • we can, when needed, rebuild the same images
@primeroz primeroz added area/kaas Mission: Cloud Native Platform - Self-driving Kubernetes as a Service team/clippy labels Mar 8, 2023
@Rotfuks Rotfuks added team/turtles Team Turtles and removed team/clippy labels Jun 26, 2023
@T-Kukawka T-Kukawka added the provider/cluster-api-azure Cluster API based running on Azure label Jun 27, 2023
@Rotfuks Rotfuks added team/phoenix Team Phoenix and removed team/turtles Team Turtles labels Jun 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/kaas Mission: Cloud Native Platform - Self-driving Kubernetes as a Service provider/cluster-api-azure Cluster API based running on Azure team/phoenix Team Phoenix
Projects
None yet
Development

No branches or pull requests

3 participants