Skip to content

Conversation

@davidfowl
Copy link
Member

@davidfowl davidfowl commented May 9, 2025

  • AsEnvironmentPlaceholder will add an environment variable place holder for docker service/file values.
  • Unknown parameters become env placeholders

Description

Please include a summary of the changes and the related issue. Please also include relevant motivation and context. List any dependencies that are required for this change.

Checklist

  • Is this feature complete?
    • Yes. Ready to ship.
  • Are you including unit tests for the changes and scenario tests if relevant?
    • Yes
  • Did you add public API?
    • Yes
  • Does the change make any security assumptions or guarantees?
    • No
  • Does the change require an update in our Aspire docs?
    • Yes
    • No

- AsEnvPlaceHolder will add an envrionment variable place holder for docker service/file values.
- Unknown parameters become env placeholders
@github-actions github-actions bot added the area-integrations Issues pertaining to Aspire Integrations packages label May 9, 2025
davidfowl added 4 commits May 8, 2025 22:06
- Updated CapturedEnvironmentVariables to include a source object.
- Modified AddEnvironmentVariable method to accept a source parameter.
- Adjusted AsEnvironmentPlaceHolder methods to utilize the new source parameter for better context.
… placeholder and update usage in service extensions
return builder;
}

/// <summary>
Copy link
Member Author

@davidfowl davidfowl May 9, 2025

Choose a reason for hiding this comment

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

@prom3theu5 This is the pattern we want for helm values for the k8s manifest. I am thinking that before we GA either docker compose or the k8s resource types, the underlying model should be more typed so these aren't strings but something like YamlValue<string> (or maybe we go specific and say it's ComposeValue<T> and KubeValue<T>), that way it's type safe.

We need to:

  • Allow going from app model to cdk model
  • Preserve the association between the cdk value and the aspire app model somewhere (for later)

@davidfowl davidfowl merged commit c4d2486 into main May 9, 2025
170 checks passed
@davidfowl davidfowl deleted the davidfowl/docker-env branch May 9, 2025 14:22
@github-actions github-actions bot locked and limited conversation to collaborators Jun 13, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-integrations Issues pertaining to Aspire Integrations packages

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants