terraform-provider-kubernetes
terraform-provider-kubernetes copied to clipboard
Documentation for container section of Deployment is incorrect
The documentation of the container section of deployments lists resources as:
(Optional) Compute Resources required by this container. Cannot be updated.
K8s does allow updates to these fields. Is there a reason why terraform doesn't update these? My only option is to destroy/create or rename the resource so the changes are applied
This looks like a mistake in the documentation @simhnna – you can change any of the container fields in deployment because it's just part of the template.
This may have been copied over from Pod where only some of the fields are editable, and updating the the resources of a Pod in place produces the following error:
Forbidden: pod updates may not change fields other than `spec.containers[*].image`, `spec.initContainers[*].image`, `spec.activeDeadlineSeconds`, `spec.tolerations` (only additions to existing tolerations) or `spec.terminationGracePeriodSeconds
Marking this issue as stale due to inactivity. If this issue receives no comments in the next 30 days it will automatically be closed. If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. This helps our maintainers find and focus on the active issues. Maintainers may also remove the stale label at their discretion. Thank you!