Replies: 1 comment 2 replies
-
The status shouldn't have any secrets in it, so I can't think of any reason to shoot this down at least immediately. Preview environments is something that is requested all the time, I know of one Flux off-shoot project besides our own paid product WGE that supports a preview environment workflow, this article is from one month ago: https://kluctl.io/blog/2022/12/28/template-controller/ I have not tried kluctl, or the preview environments feature from our own product frankly, but I am getting around to it. Any solution to this issue will have to consider the context of those other solutions. I've seen one similar solution archived recently, I assume it was done because this space is getting crowded, and there are already several good or very good solutions out there which makes it harder for Flux to compete, maybe better for users in the long run if we spend the resources elsewhere if it's already possible to do this with Flux using another third-party tool added on. I will definitely put preview environments on my personal feature capabilities roadmap, and consider to do a "preview environments" demo some time in the future. What you're proposing here sounds like a major change in Flux that would open the floodgate to new automations to be built from it. I don't want to sound flippant, but such a change will need to have careful consideration and an RFC to cover the benefits and risks, the surface area changes, etc. If the capability you're trying to garner is preview environments, we'll have to show how adding this feature can better enable preview environments, as it isn't clear to me what this is for after reading a brief description of the idea. I also don't think we can expect this change to land quickly based on the scope of impact, but sometimes it's easier to make the change in a fork and show how it's used (rather than writing up a long and involved RFC only to uncover that it won't work.) Is this work you would consider to undertake and share with us, or is it more broadly as a feature request? |
Beta Was this translation helpful? Give feedback.
-
Hi, certain KRM tools output dynamic values into the .status of their custom resource once provisioned. For example; When you create a cluster in KCC unlike other KRM operators it outputs its connection configuration via the
.status
of theCluster
resource.I would like to propose that the notification controller can be configured in such a way that once a resource is
created
it could submit a more rich payload of either the.status
or subset of the information within. Currently the payload is only something likeresource/name
was created. Which means we need our GitHub workflow to then interrogate the cluster which isn't ideal.What I feel could be a better solution is a more extensible and configurable payload that can provide more meaningful information. Using the above usecase, if we create a Cluster KRM resource, and a new cluster is provisioned in our cloud provider, it would be great if it sends the clusters connection config in the payload to the GitHub dispatch_workflow which subsequently would run a flux bootstrap command into that cluster dynamically for us.
https://fluxcd.io/flux/components/notification/provider/#setting-up-the-github-dispatch-provider
Beta Was this translation helpful? Give feedback.
All reactions