-
Notifications
You must be signed in to change notification settings - Fork 468
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
Support for image_cleaner & image_cleaner_interval_hours #342
Comments
@aevlogiev I would propose we implement this as soon as the feature is GA. Would this work for you ? |
Agreed, I'd like to support this feature when it's not preview. |
Perfect @zioproto @lonegunmanb thanks |
@zioproto In my opinion, this is a useful feature to start using now and I don't see a point in waiting for it to become GA, as it is low-risk: it is only about adding a couple of optional variables and thus should not break any existing setups that are not enabling the use of image cleaner at the moment. This PR already implemented these new variables. |
Hi @skolobov sorry for the late reply and thanks for your pr, unfortunately I agree with @zioproto, since the feature is still in preview, I'd like to wait for its GA. A preview feature's API might be changed significantly, or even been revoked. We can only introduce breaking change to this module when we'd like to publish a major version upgrade, and we take these kinds of breaking changes very seriously. So, I'd like to wait for GA, please accept my apology. When the feature is GA would you please update your pr and ping me to kick off the e2e test? Thanks for your contribution and understanding! |
The AKS image cleaner feature is now GA. |
Is there an existing issue for this?
Description
image_cleaner_enabled - (Optional) Specifies whether Image Cleaner is enabled.
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/kubernetes_cluster#image_cleaner_enabled
image_cleaner_interval_hours - (Optional) Specifies the interval in hours when images should be cleaned up. Defaults to 48
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/kubernetes_cluster#image_cleaner_interval_hours
This feature helps clean the unused images, although it can be updated manually on a cluster level, doing it manually triggers terraform change, along with the missing lifecycle option, we need to enable it each time we run terraform
This requires that the Preview Feature Microsoft.ContainerService/EnableImageCleanerPreview is enabled and the Resource Provider is re-registered, see the documentation for more information.
New or Affected Resource(s)/Data Source(s)
module.aks.azurerm_kubernetes_cluster.main
Potential Terraform Configuration
References
No response
The text was updated successfully, but these errors were encountered: