kcl-lang / flux-kcl-controller

Flux KCL Controller
https://kcl-lang.io
Apache License 2.0
23 stars 7 forks source link

Image Update Automation support for KCLRun #82

Open blakebarnett opened 2 months ago

blakebarnett commented 2 months ago

We're looking to use this controller, but we need to provide image update automation. Would it be feasible to add support for this to the KCLRun CR itself, or would we need to somehow add support to the image updater side to handle setting the image and tag via native KCL?

Is there a better way to approach this?

Peefy commented 2 months ago

Hello, @blakebarnett

There are two ways to achieve automatic image updates here:

  1. CI stage: As mentioned in the document, you can update the configuration fields in KCL code through KCL API/CLI during the CI phase, which is not limited to Image: https://www.kcl-lang.io/docs/user_docs/guides/ci-integration/github-actions
  2. CD stage: Integrate with Git through Flux KCL Controller and update configuration fields in KCL code through KCL API, not limited to Image.

If you use CD to accomplish this, we can gradually align the Flux KCL Controller with the Kustomize KCL Controller's features like other issues #68 and #69. Although there is some workload, the Flux community already has mature components that we can use directly. In short, both Issues and PRs are welcome. ❤️