Files
kubernetes.core/plugins/doc_fragments/k8s_state_options.py
T
Kuldeeep18andpatchback[bot] 670d43c1a3 k8s: clarify that state=present creates or patches the object (#1278)
Assisted-by: Claude Opus 5.5

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 408802cb67)
2026-11-09 14:10:21 +00:00

30 lines
943 B
Python

# -*- coding: utf-8 -*-
# Copyright: (c) 2018, Red Hat | Ansible
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
# Options for specifying object state
from __future__ import absolute_import, division, print_function
__metaclass__ = type
class ModuleDocFragment(object):
DOCUMENTATION = r"""
options:
state:
description:
- Determines if an object should be created, patched, or deleted. When set to C(present), an object will be
created if it does not already exist, and an existing object will be patched if its attributes differ from
those specified using I(resource_definition) or I(src). If set to C(absent), an existing object will be deleted.
type: str
default: present
choices: [ absent, present ]
force:
description:
- If set to C(yes), and I(state) is C(present), an existing object will be replaced.
type: bool
default: no
"""