ansible-collections / kubernetes.core

The collection includes a variety of Ansible content to help automate the management of applications in Kubernetes and OpenShift clusters, as well as the provisioning and maintenance of clusters themselves.
Other
219 stars 141 forks source link

Quickly-fixable typo #794

Open faangbait opened 2 weeks ago

faangbait commented 2 weeks ago
SUMMARY

kubernetes.core.k8s.state reads "If set to present, an existing object will be patched, if its attributes differ from those specified using resource_definition or src."

Should read "If set to patched, an existing object will be patched, if its attributes differ from those specified using resource_definition or src.

ISSUE TYPE
COMPONENT NAME

k8s

ANSIBLE VERSION
latest
alinabuzachis commented 2 weeks ago

@faangbait Thank you for raising this issue. Would you be willing to open a Pull Request with a fix?

gravesm commented 2 weeks ago

I believe the documentation is correct, it's just poorly worded. The present state will both create a resource if it doesn't exist and patch a resource if it does exist and differs from the supplied resource. The patched state will only patch an existing resource.