container apps - support for additional settings in container apps probes#27551
Conversation
… startup_probe and readiness_probe hashicorp#25457
| Type: pluginsdk.TypeInt, | ||
| Optional: true, | ||
| Default: 1, | ||
| ValidateFunc: validation.IntBetween(1, 1), |
There was a problem hiding this comment.
Can this be set to anything other than 1?
| Type: pluginsdk.TypeInt, | ||
| Optional: true, | ||
| Default: 1, | ||
| ValidateFunc: validation.IntBetween(1, 1), |
There was a problem hiding this comment.
Likewise here, is there a point in exposing this if it's default is 1 and can only be set to 1 anyway?
There was a problem hiding this comment.
Can we please remove this then (from the Computed schemas as well)
There was a problem hiding this comment.
Removed where I added it. But kept it in ContainerAppReadinessProbeSchema to not create a breaking change
ce30625 to
c8002c0
Compare
stephybun
left a comment
There was a problem hiding this comment.
Thanks @SpartakusMd, I've kicked off the tests. Would you mind updating the documentation with these changes as well?
|
@stephybun I have added the docs. Is there anything else? |
stephybun
left a comment
There was a problem hiding this comment.
Tests look good, thanks @SpartakusMd LGTM 👍
|
Thank you @stephybun for the time spent! |
| InitialDelaySeconds: pointer.To(input.InitialDelay), | ||
| PeriodSeconds: pointer.To(input.Interval), | ||
| TimeoutSeconds: pointer.To(input.Timeout), | ||
| FailureThreshold: pointer.To(input.FailureThreshold), |
There was a problem hiding this comment.
how come there is no success threshold property here?
There was a problem hiding this comment.
I have a container app that is failing because I can not set a success_count_threshold to it, it will assign it an empty value.
Since I have a container app that is a public container that accepts ingress, Azure does a health check of the service using startup probe.
Since I can not configure it via terraform, my container always fails until I manually configure it on the UI to have a success threshold count to be 1, which then works fine
There was a problem hiding this comment.
according to the issue you are responding too: #25457
startup_probe should also have a success threshold.
There was a problem hiding this comment.
It was added initialy, but removed later in the same PR due to review in c8002c0
It was removed due to the fact that only a single value is accepted and that is 1. You cannot set the value to anything else. I also use this code for our infra and it's working as expected.
The question would be how it worked until now as the option wasn't present there? If it's really needed, I guess you could create a PR with the changes from that commit to add the success threshold property and see if it's merged.
There was a problem hiding this comment.
You could create a new PR with changes from c8002c0 and put the screenshot as an explanation. Are you sure it fails due to the value being empty?
There was a problem hiding this comment.
Yes I am sure - because once I edit the container config on the UI, once I add a success threshold, then the container lives, otherwise it just dies and keeps restarting.
There was a problem hiding this comment.
I attempted to make a PR however I get denied
remote: Permission to hashicorp/terraform-provider-azurerm.git denied to Dmitriyx
I will check what the rules are for making a PR
There was a problem hiding this comment.
You need to fork the repo and make changes in the forked repository. Afterwards you can create a PR in Github.
|
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions. |



Community Note
Description
The available settings for the configuration of the liveness, readiness and startup probes in Azure Container Apps are lacking a few details.
FYI, There are some defaults for existing probe settings which are different between Azure and Terraform, I left them intact.
PR Checklist
Changes to existing Resource / Data Source
Testing
Change Log
Below please provide what should go into the changelog (if anything) conforming to the Changelog Format documented here.
azurerm_container_app- added missing settings in liveness_probe, startup_probe and readiness_probe [Support for additional settings in liveness_probe, startup_probe and readiness_probe #25457]This is a (please select all that apply):
Related Issue(s)
Fixes #25457, fixes #24845