Skip to content

Conversation

@tvandinther
Copy link
Collaborator

@tvandinther tvandinther commented Mar 10, 2025

Here's a pattern for creating abstractions for configuration that is deployed to multiple deployment targets, such as a web app to preview, preprod, and prod environments as shown in the example.

See the included README for the pattern for additional details.

Please provide feedback in the thread and discuss the benefits and drawbacks of this approach. The example can be adjusted where possible to address any drawbacks and where not, we can document them so in an future reference we know which patterns are suitable for what.

Signed-off-by: Tom van Dinther <[email protected]>
@tvandinther tvandinther self-assigned this Mar 10, 2025
@marcellanz
Copy link

I'm interested in the discussion for this topic. I attempted and have built for different scenarios deployment definitions using CUE. While the topic heavily depends on concrete environment I'm interested in the mechanics to have well defined, but also flexible structural configuration – and how to achieve that with CUE.

import "github.com/cue-lang/cue-deployment-patterns/app-abstraction/platform"

platform.#Deployment & {
let base = platform.#WebApp & {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not name it webapp?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants