-
Notifications
You must be signed in to change notification settings - Fork 234
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
Creating an environment from the dev portal doesn't use the manifest default values #34
Comments
Hey @SimonDraime. Thanks for the report! This is definitely a bug, we should be honoring what is defined as the default in the YAML file. I'll let you know when we've got a fix ready. |
Though I am curious to understand more about your last part: We don't currently have this ability in the product. Mind expanding a bit more on what you're hoping to achieve? |
Sorry, I was not very clear on that. I meant that my catalogs Github repo would contain several environment definitions with each time the same ARM template (a different file but the same content) with a different manifest.yaml. |
Ah I really like this idea! |
Yes, it would be a good idea to use the environment type to define some parameters that are always the same for a specific environment type. |
@j-rewerts Do you have an idea of the timeframe for the fix availability? |
Nothing to report currently, I'll follow up once we're getting close to shipping the fix. |
This bug still seems to exist. I noticed it while using Terraform for our catalog. If the user doesn't change the default value of the parameters in the portal (and there is no default value for the variable in variables.tf), then the deployment errors because the values of the variables don't get set. We could just specify default values in the Terraform variables.tf, but then you would have to make sure these are the same as defined in environment.yaml. This duplication would inevitably lead to more problems. |
Thank you for bumping this bug. We are taking a look at it and will update you once a solution is available. |
EDIT: I replied to an older message it seems - I should have refreshed the page I guess. I see you've acknowledged the bug, but will leave my reply as is for informational purposes. Hi @ericaguthan Sorry I'm not clear. I am referring to the defaults in the environment.yaml. If defaults are present and the user just accepts them without changing them, they still don't get passed through to the IaC. Maybe this is just a problem when using Terraform? To reproduce:
Expected behaviour would be the default value from the environment.yaml to be passed through to the Terraform execution environment. This does in fact occur if the user changes the default value to something else. I'm happy to open a separate issue if that would help? |
Hi @timwebster9, This issue is fine to leave open. You are correct that this bug exists and is not just for Terraform. Expected behavior is that the environment yaml is the source of truth so what users see in the DevPortal is what they get. We are taking a look and will update when the fix has hit all regions. |
Hi Team,
As the parameters' default values of the ARM template I use in catalog are defined for a production environment, I set different default values in the manifest.yaml file.
However, when I create an environment from the dev portal it is using the default values of the ARM template instead of the ones defined in the manifest.
It is quite counterintuitive as it is not the values displayed in the dev portal during creation that are actually used.
Is it the expected behaviour? Is it possible to improve that behaviour as it would be very useful to be able to use different manifest files with the same ARM template for different environment type?
The text was updated successfully, but these errors were encountered: