From 8a7f78993f31e33dd198620421a9bc121a8457ea Mon Sep 17 00:00:00 2001 From: Chris Houseknecht Date: Mon, 27 Mar 2017 20:30:06 -0400 Subject: [PATCH] Update modules --- .../k8s_v1_applied_cluster_resource_quota.py | 6 ++++ ..._v1_applied_cluster_resource_quota_list.py | 6 ++++ library/k8s_v1_binding.py | 6 ++++ library/k8s_v1_build.py | 20 ++++++++---- library/k8s_v1_build_config.py | 20 ++++++++---- library/k8s_v1_build_config_list.py | 20 ++++++++---- library/k8s_v1_build_list.py | 20 ++++++++---- library/k8s_v1_build_request.py | 6 ++++ library/k8s_v1_cluster_network.py | 20 ++++++++---- library/k8s_v1_cluster_network_list.py | 20 ++++++++---- library/k8s_v1_cluster_policy.py | 20 ++++++++---- library/k8s_v1_cluster_policy_binding.py | 20 ++++++++---- library/k8s_v1_cluster_policy_binding_list.py | 20 ++++++++---- library/k8s_v1_cluster_policy_list.py | 20 ++++++++---- library/k8s_v1_cluster_resource_quota.py | 20 ++++++++---- library/k8s_v1_cluster_resource_quota_list.py | 20 ++++++++---- library/k8s_v1_cluster_role.py | 20 ++++++++---- library/k8s_v1_cluster_role_binding.py | 20 ++++++++---- library/k8s_v1_cluster_role_binding_list.py | 20 ++++++++---- library/k8s_v1_cluster_role_list.py | 20 ++++++++---- library/k8s_v1_component_status.py | 6 ++++ library/k8s_v1_component_status_list.py | 6 ++++ library/k8s_v1_config_map.py | 20 ++++++++---- library/k8s_v1_config_map_list.py | 20 ++++++++---- library/k8s_v1_deployment_config.py | 32 ++++++++++++------- library/k8s_v1_deployment_config_list.py | 20 ++++++++---- library/k8s_v1_deployment_config_rollback.py | 6 ++++ library/k8s_v1_egress_network_policy.py | 20 ++++++++---- library/k8s_v1_egress_network_policy_list.py | 20 ++++++++---- library/k8s_v1_endpoints.py | 20 ++++++++---- library/k8s_v1_endpoints_list.py | 20 ++++++++---- library/k8s_v1_event.py | 20 ++++++++---- library/k8s_v1_event_list.py | 20 ++++++++---- library/k8s_v1_group.py | 20 ++++++++---- library/k8s_v1_group_list.py | 20 ++++++++---- library/k8s_v1_horizontal_pod_autoscaler.py | 20 ++++++++---- .../k8s_v1_horizontal_pod_autoscaler_list.py | 20 ++++++++---- library/k8s_v1_host_subnet.py | 20 ++++++++---- library/k8s_v1_host_subnet_list.py | 20 ++++++++---- library/k8s_v1_identity.py | 20 ++++++++---- library/k8s_v1_identity_list.py | 20 ++++++++---- library/k8s_v1_image.py | 20 ++++++++---- library/k8s_v1_image_list.py | 20 ++++++++---- library/k8s_v1_image_signature.py | 20 ++++++++---- library/k8s_v1_image_stream.py | 20 ++++++++---- library/k8s_v1_image_stream_image.py | 6 ++++ library/k8s_v1_image_stream_import.py | 6 ++++ library/k8s_v1_image_stream_list.py | 20 ++++++++---- library/k8s_v1_image_stream_mapping.py | 6 ++++ library/k8s_v1_image_stream_tag.py | 20 ++++++++---- library/k8s_v1_image_stream_tag_list.py | 20 ++++++++---- library/k8s_v1_job.py | 20 ++++++++---- library/k8s_v1_job_list.py | 20 ++++++++---- library/k8s_v1_limit_range.py | 20 ++++++++---- library/k8s_v1_limit_range_list.py | 20 ++++++++---- library/k8s_v1_namespace.py | 20 ++++++++---- library/k8s_v1_namespace_list.py | 20 ++++++++---- library/k8s_v1_net_namespace.py | 20 ++++++++---- library/k8s_v1_net_namespace_list.py | 20 ++++++++---- library/k8s_v1_node.py | 20 ++++++++---- library/k8s_v1_node_list.py | 20 ++++++++---- library/k8s_v1_o_auth_access_token.py | 20 ++++++++---- library/k8s_v1_o_auth_access_token_list.py | 20 ++++++++---- library/k8s_v1_o_auth_authorize_token.py | 6 ++++ library/k8s_v1_o_auth_authorize_token_list.py | 20 ++++++++---- library/k8s_v1_o_auth_client.py | 20 ++++++++---- library/k8s_v1_o_auth_client_authorization.py | 20 ++++++++---- ...k8s_v1_o_auth_client_authorization_list.py | 20 ++++++++---- library/k8s_v1_o_auth_client_list.py | 20 ++++++++---- library/k8s_v1_persistent_volume.py | 20 ++++++++---- library/k8s_v1_persistent_volume_claim.py | 20 ++++++++---- .../k8s_v1_persistent_volume_claim_list.py | 20 ++++++++---- library/k8s_v1_persistent_volume_list.py | 20 ++++++++---- library/k8s_v1_pod.py | 20 ++++++++---- library/k8s_v1_pod_list.py | 20 ++++++++---- library/k8s_v1_pod_security_policy_review.py | 6 ++++ ...pod_security_policy_self_subject_review.py | 6 ++++ ...s_v1_pod_security_policy_subject_review.py | 6 ++++ library/k8s_v1_pod_template.py | 20 ++++++++---- library/k8s_v1_pod_template_list.py | 20 ++++++++---- library/k8s_v1_policy.py | 20 ++++++++---- library/k8s_v1_policy_binding.py | 20 ++++++++---- library/k8s_v1_policy_binding_list.py | 20 ++++++++---- library/k8s_v1_policy_list.py | 20 ++++++++---- library/k8s_v1_project.py | 20 ++++++++---- library/k8s_v1_project_list.py | 20 ++++++++---- library/k8s_v1_replication_controller.py | 20 ++++++++---- library/k8s_v1_replication_controller_list.py | 20 ++++++++---- library/k8s_v1_resource_quota.py | 20 ++++++++---- library/k8s_v1_resource_quota_list.py | 20 ++++++++---- library/k8s_v1_role.py | 20 ++++++++---- library/k8s_v1_role_binding.py | 20 ++++++++---- library/k8s_v1_role_binding_list.py | 20 ++++++++---- library/k8s_v1_role_binding_restriction.py | 20 ++++++++---- .../k8s_v1_role_binding_restriction_list.py | 20 ++++++++---- library/k8s_v1_role_list.py | 20 ++++++++---- library/k8s_v1_route.py | 20 ++++++++---- library/k8s_v1_route_list.py | 20 ++++++++---- library/k8s_v1_scale.py | 6 ++++ library/k8s_v1_secret.py | 20 ++++++++---- library/k8s_v1_secret_list.py | 20 ++++++++---- .../k8s_v1_security_context_constraints.py | 20 ++++++++---- ...8s_v1_security_context_constraints_list.py | 20 ++++++++---- library/k8s_v1_self_subject_rules_review.py | 6 ++++ library/k8s_v1_service.py | 20 ++++++++---- library/k8s_v1_service_account.py | 20 ++++++++---- library/k8s_v1_service_account_list.py | 20 ++++++++---- library/k8s_v1_service_list.py | 20 ++++++++---- library/k8s_v1_subject_rules_review.py | 6 ++++ library/k8s_v1_template.py | 20 ++++++++---- library/k8s_v1_template_list.py | 20 ++++++++---- library/k8s_v1_user.py | 20 ++++++++---- library/k8s_v1_user_identity_mapping.py | 20 ++++++++---- library/k8s_v1_user_list.py | 20 ++++++++---- ...8s_v1alpha1_certificate_signing_request.py | 20 ++++++++---- ...alpha1_certificate_signing_request_list.py | 20 ++++++++---- library/k8s_v1beta1_daemon_set.py | 20 ++++++++---- library/k8s_v1beta1_daemon_set_list.py | 20 ++++++++---- library/k8s_v1beta1_deployment.py | 20 ++++++++---- library/k8s_v1beta1_deployment_list.py | 20 ++++++++---- library/k8s_v1beta1_eviction.py | 6 ++++ .../k8s_v1beta1_horizontal_pod_autoscaler.py | 20 ++++++++---- ..._v1beta1_horizontal_pod_autoscaler_list.py | 20 ++++++++---- library/k8s_v1beta1_ingress.py | 20 ++++++++---- library/k8s_v1beta1_ingress_list.py | 20 ++++++++---- library/k8s_v1beta1_job.py | 20 ++++++++---- library/k8s_v1beta1_job_list.py | 20 ++++++++---- library/k8s_v1beta1_network_policy.py | 20 ++++++++---- library/k8s_v1beta1_network_policy_list.py | 20 ++++++++---- library/k8s_v1beta1_pod_disruption_budget.py | 20 ++++++++---- .../k8s_v1beta1_pod_disruption_budget_list.py | 20 ++++++++---- library/k8s_v1beta1_pod_security_policy.py | 20 ++++++++---- .../k8s_v1beta1_pod_security_policy_list.py | 20 ++++++++---- library/k8s_v1beta1_replica_set.py | 20 ++++++++---- library/k8s_v1beta1_replica_set_list.py | 20 ++++++++---- library/k8s_v1beta1_scale.py | 6 ++++ library/k8s_v1beta1_stateful_set.py | 20 ++++++++---- library/k8s_v1beta1_stateful_set_list.py | 20 ++++++++---- library/k8s_v1beta1_storage_class.py | 20 ++++++++---- library/k8s_v1beta1_storage_class_list.py | 20 ++++++++---- library/k8s_v1beta1_third_party_resource.py | 20 ++++++++---- .../k8s_v1beta1_third_party_resource_list.py | 20 ++++++++---- library/k8s_v1beta1_token_review.py | 6 ++++ library/k8s_v2alpha1_cron_job.py | 20 ++++++++---- library/k8s_v2alpha1_cron_job_list.py | 20 ++++++++---- library/k8s_v2alpha1_job.py | 20 ++++++++---- library/k8s_v2alpha1_job_list.py | 20 ++++++++---- 147 files changed, 1904 insertions(+), 768 deletions(-) diff --git a/library/k8s_v1_applied_cluster_resource_quota.py b/library/k8s_v1_applied_cluster_resource_quota.py index 5855e1e8..e0afd25e 100644 --- a/library/k8s_v1_applied_cluster_resource_quota.py +++ b/library/k8s_v1_applied_cluster_resource_quota.py @@ -32,6 +32,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. diff --git a/library/k8s_v1_applied_cluster_resource_quota_list.py b/library/k8s_v1_applied_cluster_resource_quota_list.py index c5081d89..79211e05 100644 --- a/library/k8s_v1_applied_cluster_resource_quota_list.py +++ b/library/k8s_v1_applied_cluster_resource_quota_list.py @@ -27,6 +27,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. diff --git a/library/k8s_v1_binding.py b/library/k8s_v1_binding.py index 0984f1df..9229e93a 100644 --- a/library/k8s_v1_binding.py +++ b/library/k8s_v1_binding.py @@ -32,6 +32,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. diff --git a/library/k8s_v1_build.py b/library/k8s_v1_build.py index becb2f4b..36aa3ad1 100644 --- a/library/k8s_v1_build.py +++ b/library/k8s_v1_build.py @@ -32,6 +32,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -613,16 +619,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1_build_config.py b/library/k8s_v1_build_config.py index 43511b23..6d59c7ec 100644 --- a/library/k8s_v1_build_config.py +++ b/library/k8s_v1_build_config.py @@ -32,6 +32,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -621,16 +627,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1_build_config_list.py b/library/k8s_v1_build_config_list.py index fb4c603a..0913e8da 100644 --- a/library/k8s_v1_build_config_list.py +++ b/library/k8s_v1_build_config_list.py @@ -27,6 +27,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -63,16 +69,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1_build_list.py b/library/k8s_v1_build_list.py index cc7c754b..df9f55b4 100644 --- a/library/k8s_v1_build_list.py +++ b/library/k8s_v1_build_list.py @@ -27,6 +27,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -63,16 +69,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1_build_request.py b/library/k8s_v1_build_request.py index 680c0fb9..4b00ae66 100644 --- a/library/k8s_v1_build_request.py +++ b/library/k8s_v1_build_request.py @@ -88,6 +88,12 @@ options: - env contains additional environment variables you want to pass into a builder container type: list + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. diff --git a/library/k8s_v1_cluster_network.py b/library/k8s_v1_cluster_network.py index 66b72586..1ddac4bf 100644 --- a/library/k8s_v1_cluster_network.py +++ b/library/k8s_v1_cluster_network.py @@ -32,6 +32,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -96,16 +102,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1_cluster_network_list.py b/library/k8s_v1_cluster_network_list.py index fdf969e9..24d671ff 100644 --- a/library/k8s_v1_cluster_network_list.py +++ b/library/k8s_v1_cluster_network_list.py @@ -27,6 +27,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -63,16 +69,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1_cluster_policy.py b/library/k8s_v1_cluster_policy.py index ee188222..d3588712 100644 --- a/library/k8s_v1_cluster_policy.py +++ b/library/k8s_v1_cluster_policy.py @@ -32,6 +32,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -85,16 +91,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1_cluster_policy_binding.py b/library/k8s_v1_cluster_policy_binding.py index 43be3409..8b4e49a9 100644 --- a/library/k8s_v1_cluster_policy_binding.py +++ b/library/k8s_v1_cluster_policy_binding.py @@ -32,6 +32,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -127,16 +133,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1_cluster_policy_binding_list.py b/library/k8s_v1_cluster_policy_binding_list.py index 8cac1482..66b7b24f 100644 --- a/library/k8s_v1_cluster_policy_binding_list.py +++ b/library/k8s_v1_cluster_policy_binding_list.py @@ -27,6 +27,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -63,16 +69,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1_cluster_policy_list.py b/library/k8s_v1_cluster_policy_list.py index 99bbdecd..c14e4286 100644 --- a/library/k8s_v1_cluster_policy_list.py +++ b/library/k8s_v1_cluster_policy_list.py @@ -27,6 +27,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -63,16 +69,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1_cluster_resource_quota.py b/library/k8s_v1_cluster_resource_quota.py index d5674f04..7a1e0d08 100644 --- a/library/k8s_v1_cluster_resource_quota.py +++ b/library/k8s_v1_cluster_resource_quota.py @@ -32,6 +32,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -116,16 +122,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1_cluster_resource_quota_list.py b/library/k8s_v1_cluster_resource_quota_list.py index ef50e17c..acb5d6cc 100644 --- a/library/k8s_v1_cluster_resource_quota_list.py +++ b/library/k8s_v1_cluster_resource_quota_list.py @@ -27,6 +27,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -63,16 +69,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1_cluster_role.py b/library/k8s_v1_cluster_role.py index 40d0f3e8..fd5e7199 100644 --- a/library/k8s_v1_cluster_role.py +++ b/library/k8s_v1_cluster_role.py @@ -32,6 +32,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -85,16 +91,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1_cluster_role_binding.py b/library/k8s_v1_cluster_role_binding.py index 22af90ff..3e7080a0 100644 --- a/library/k8s_v1_cluster_role_binding.py +++ b/library/k8s_v1_cluster_role_binding.py @@ -32,6 +32,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool group_names: description: - GroupNames holds all the groups directly bound to the role. This field should @@ -128,16 +134,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced subjects: description: - Subjects hold object references to authorize with this rule. This field is ignored diff --git a/library/k8s_v1_cluster_role_binding_list.py b/library/k8s_v1_cluster_role_binding_list.py index 5c53b904..23197521 100644 --- a/library/k8s_v1_cluster_role_binding_list.py +++ b/library/k8s_v1_cluster_role_binding_list.py @@ -27,6 +27,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -63,16 +69,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1_cluster_role_list.py b/library/k8s_v1_cluster_role_list.py index 37ac107c..70e727f6 100644 --- a/library/k8s_v1_cluster_role_list.py +++ b/library/k8s_v1_cluster_role_list.py @@ -27,6 +27,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -63,16 +69,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1_component_status.py b/library/k8s_v1_component_status.py index 1b5af641..a5a92026 100644 --- a/library/k8s_v1_component_status.py +++ b/library/k8s_v1_component_status.py @@ -36,6 +36,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. diff --git a/library/k8s_v1_component_status_list.py b/library/k8s_v1_component_status_list.py index 0a8699e8..2eae282a 100644 --- a/library/k8s_v1_component_status_list.py +++ b/library/k8s_v1_component_status_list.py @@ -27,6 +27,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. diff --git a/library/k8s_v1_config_map.py b/library/k8s_v1_config_map.py index 8a0388bf..3207e270 100644 --- a/library/k8s_v1_config_map.py +++ b/library/k8s_v1_config_map.py @@ -37,6 +37,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -86,16 +92,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1_config_map_list.py b/library/k8s_v1_config_map_list.py index 6d0d32a1..103d9fbd 100644 --- a/library/k8s_v1_config_map_list.py +++ b/library/k8s_v1_config_map_list.py @@ -27,6 +27,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -63,16 +69,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1_deployment_config.py b/library/k8s_v1_deployment_config.py index af36c187..99e1d94f 100644 --- a/library/k8s_v1_deployment_config.py +++ b/library/k8s_v1_deployment_config.py @@ -32,6 +32,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -123,7 +129,7 @@ options: type: dict spec_strategy_custom_params: description: - - When C(spec_strategy_type) is I(custom), provide a mapping of 'key:value' settings. + - When C(spec_strategy_type) is I(Custom), provide a mapping of 'key:value' settings. aliases: - strategy_custom_params type: dict @@ -136,7 +142,7 @@ options: type: dict spec_strategy_recreate_params: description: - - When C(spec_strategy_type) is I(recreate), provide a mapping of 'key:value' + - When C(spec_strategy_type) is I(Recreate), provide a mapping of 'key:value' settings. aliases: - strategy_recreate_params @@ -157,7 +163,7 @@ options: type: dict spec_strategy_rolling_params: description: - - When C(spec_strategy_type) is I(rolling), provide a mapping of 'key:value' settings. + - When C(spec_strategy_type) is I(Rolling), provide a mapping of 'key:value' settings. aliases: - strategy_rolling_params type: dict @@ -165,9 +171,9 @@ options: description: - Type is the name of a deployment strategy. choices: - - rolling - - custom - - recreate + - Rolling + - Custom + - Recreate aliases: - strategy_type spec_template_metadata_annotations: @@ -394,16 +400,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1_deployment_config_list.py b/library/k8s_v1_deployment_config_list.py index b4bf0c2b..c2d72d67 100644 --- a/library/k8s_v1_deployment_config_list.py +++ b/library/k8s_v1_deployment_config_list.py @@ -27,6 +27,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -63,16 +69,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1_deployment_config_rollback.py b/library/k8s_v1_deployment_config_rollback.py index b573b68a..8ef201ee 100644 --- a/library/k8s_v1_deployment_config_rollback.py +++ b/library/k8s_v1_deployment_config_rollback.py @@ -26,6 +26,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. diff --git a/library/k8s_v1_egress_network_policy.py b/library/k8s_v1_egress_network_policy.py index 64dd978e..8fc27e1e 100644 --- a/library/k8s_v1_egress_network_policy.py +++ b/library/k8s_v1_egress_network_policy.py @@ -32,6 +32,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -87,16 +93,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1_egress_network_policy_list.py b/library/k8s_v1_egress_network_policy_list.py index 2b577606..66d00d8f 100644 --- a/library/k8s_v1_egress_network_policy_list.py +++ b/library/k8s_v1_egress_network_policy_list.py @@ -27,6 +27,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -63,16 +69,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1_endpoints.py b/library/k8s_v1_endpoints.py index 9347e7c3..98d1cfd5 100644 --- a/library/k8s_v1_endpoints.py +++ b/library/k8s_v1_endpoints.py @@ -32,6 +32,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -81,16 +87,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced subsets: description: - The set of all endpoints is the union of all subsets. Addresses are placed into diff --git a/library/k8s_v1_endpoints_list.py b/library/k8s_v1_endpoints_list.py index 02020c3e..0df6fc49 100644 --- a/library/k8s_v1_endpoints_list.py +++ b/library/k8s_v1_endpoints_list.py @@ -27,6 +27,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -63,16 +69,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1_event.py b/library/k8s_v1_event.py index 98121f55..e64860c0 100644 --- a/library/k8s_v1_event.py +++ b/library/k8s_v1_event.py @@ -36,6 +36,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -143,16 +149,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced type: description: - Type of this event (Normal, Warning), new types could be added in the future diff --git a/library/k8s_v1_event_list.py b/library/k8s_v1_event_list.py index 3e8a47d6..fdf0da12 100644 --- a/library/k8s_v1_event_list.py +++ b/library/k8s_v1_event_list.py @@ -27,6 +27,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -63,16 +69,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1_group.py b/library/k8s_v1_group.py index 78ff3642..aaa20520 100644 --- a/library/k8s_v1_group.py +++ b/library/k8s_v1_group.py @@ -32,6 +32,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -81,16 +87,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1_group_list.py b/library/k8s_v1_group_list.py index ddfa87a1..5e304dde 100644 --- a/library/k8s_v1_group_list.py +++ b/library/k8s_v1_group_list.py @@ -27,6 +27,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -63,16 +69,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1_horizontal_pod_autoscaler.py b/library/k8s_v1_horizontal_pod_autoscaler.py index 2c135c2e..290b4b31 100644 --- a/library/k8s_v1_horizontal_pod_autoscaler.py +++ b/library/k8s_v1_horizontal_pod_autoscaler.py @@ -32,6 +32,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -117,16 +123,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1_horizontal_pod_autoscaler_list.py b/library/k8s_v1_horizontal_pod_autoscaler_list.py index 2d908cdf..e8980872 100644 --- a/library/k8s_v1_horizontal_pod_autoscaler_list.py +++ b/library/k8s_v1_horizontal_pod_autoscaler_list.py @@ -27,6 +27,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -63,16 +69,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1_host_subnet.py b/library/k8s_v1_host_subnet.py index 31b5cf4e..8194c3cf 100644 --- a/library/k8s_v1_host_subnet.py +++ b/library/k8s_v1_host_subnet.py @@ -32,6 +32,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Host is the name of the node. (This is redundant with the object's name, and @@ -86,16 +92,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced subnet: description: - Subnet is the CIDR range of the overlay network assigned to the node for its diff --git a/library/k8s_v1_host_subnet_list.py b/library/k8s_v1_host_subnet_list.py index a2cc0b40..2057659b 100644 --- a/library/k8s_v1_host_subnet_list.py +++ b/library/k8s_v1_host_subnet_list.py @@ -27,6 +27,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -63,16 +69,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1_identity.py b/library/k8s_v1_identity.py index e9fd8141..83db6099 100644 --- a/library/k8s_v1_identity.py +++ b/library/k8s_v1_identity.py @@ -36,6 +36,12 @@ options: description: - Extra holds extra information about this identity type: dict + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -91,16 +97,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced user_api_version: description: - API version of the referent. diff --git a/library/k8s_v1_identity_list.py b/library/k8s_v1_identity_list.py index dcaeea31..ba4b691e 100644 --- a/library/k8s_v1_identity_list.py +++ b/library/k8s_v1_identity_list.py @@ -27,6 +27,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -63,16 +69,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1_image.py b/library/k8s_v1_image.py index c0aad79b..bf46f00a 100644 --- a/library/k8s_v1_image.py +++ b/library/k8s_v1_image.py @@ -65,6 +65,12 @@ options: - DockerImageSignatures provides the signatures as opaque blobs. This is a part of manifest schema v1. type: list + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -118,16 +124,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1_image_list.py b/library/k8s_v1_image_list.py index a8b1d57d..cacf3c17 100644 --- a/library/k8s_v1_image_list.py +++ b/library/k8s_v1_image_list.py @@ -27,6 +27,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -63,16 +69,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1_image_signature.py b/library/k8s_v1_image_signature.py index 46f86eb4..ab40c94c 100644 --- a/library/k8s_v1_image_signature.py +++ b/library/k8s_v1_image_signature.py @@ -40,6 +40,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -124,16 +130,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced type: description: - 'Required: Describes a type of stored blob.' diff --git a/library/k8s_v1_image_stream.py b/library/k8s_v1_image_stream.py index f1f9bef1..af066fb8 100644 --- a/library/k8s_v1_image_stream.py +++ b/library/k8s_v1_image_stream.py @@ -32,6 +32,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -93,16 +99,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1_image_stream_image.py b/library/k8s_v1_image_stream_image.py index 75be4de4..1d93b0f5 100644 --- a/library/k8s_v1_image_stream_image.py +++ b/library/k8s_v1_image_stream_image.py @@ -32,6 +32,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. diff --git a/library/k8s_v1_image_stream_import.py b/library/k8s_v1_image_stream_import.py index ab79e138..5b25bb80 100644 --- a/library/k8s_v1_image_stream_import.py +++ b/library/k8s_v1_image_stream_import.py @@ -32,6 +32,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. diff --git a/library/k8s_v1_image_stream_list.py b/library/k8s_v1_image_stream_list.py index b9b75e7b..0268c930 100644 --- a/library/k8s_v1_image_stream_list.py +++ b/library/k8s_v1_image_stream_list.py @@ -27,6 +27,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -63,16 +69,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1_image_stream_mapping.py b/library/k8s_v1_image_stream_mapping.py index 4cfbabde..e34d8c4e 100644 --- a/library/k8s_v1_image_stream_mapping.py +++ b/library/k8s_v1_image_stream_mapping.py @@ -32,6 +32,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. diff --git a/library/k8s_v1_image_stream_tag.py b/library/k8s_v1_image_stream_tag.py index 6a274fe5..f1dac0f6 100644 --- a/library/k8s_v1_image_stream_tag.py +++ b/library/k8s_v1_image_stream_tag.py @@ -36,6 +36,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool generation: description: - Generation is the current generation of the tagged image - if tag is provided @@ -181,16 +187,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced tag__from_api_version: description: - API version of the referent. diff --git a/library/k8s_v1_image_stream_tag_list.py b/library/k8s_v1_image_stream_tag_list.py index b46bcfe5..63edef57 100644 --- a/library/k8s_v1_image_stream_tag_list.py +++ b/library/k8s_v1_image_stream_tag_list.py @@ -27,6 +27,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -63,16 +69,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1_job.py b/library/k8s_v1_job.py index 110d0678..a5dd309e 100644 --- a/library/k8s_v1_job.py +++ b/library/k8s_v1_job.py @@ -32,6 +32,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -329,16 +335,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1_job_list.py b/library/k8s_v1_job_list.py index af86821c..8543ac34 100644 --- a/library/k8s_v1_job_list.py +++ b/library/k8s_v1_job_list.py @@ -27,6 +27,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -63,16 +69,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1_limit_range.py b/library/k8s_v1_limit_range.py index d3816d1a..e656e2a7 100644 --- a/library/k8s_v1_limit_range.py +++ b/library/k8s_v1_limit_range.py @@ -32,6 +32,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -87,16 +93,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1_limit_range_list.py b/library/k8s_v1_limit_range_list.py index 87d389c4..1348c240 100644 --- a/library/k8s_v1_limit_range_list.py +++ b/library/k8s_v1_limit_range_list.py @@ -27,6 +27,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -63,16 +69,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1_namespace.py b/library/k8s_v1_namespace.py index c21d63cd..8b86fbeb 100644 --- a/library/k8s_v1_namespace.py +++ b/library/k8s_v1_namespace.py @@ -32,6 +32,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -88,16 +94,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1_namespace_list.py b/library/k8s_v1_namespace_list.py index f423db86..1ea86480 100644 --- a/library/k8s_v1_namespace_list.py +++ b/library/k8s_v1_namespace_list.py @@ -27,6 +27,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -63,16 +69,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1_net_namespace.py b/library/k8s_v1_net_namespace.py index b9d2da66..396f1a2f 100644 --- a/library/k8s_v1_net_namespace.py +++ b/library/k8s_v1_net_namespace.py @@ -32,6 +32,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -90,16 +96,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1_net_namespace_list.py b/library/k8s_v1_net_namespace_list.py index 8a953baa..a55aedcd 100644 --- a/library/k8s_v1_net_namespace_list.py +++ b/library/k8s_v1_net_namespace_list.py @@ -27,6 +27,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -63,16 +69,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1_node.py b/library/k8s_v1_node.py index 1e947e9f..ee1b658a 100644 --- a/library/k8s_v1_node.py +++ b/library/k8s_v1_node.py @@ -32,6 +32,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -104,16 +110,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1_node_list.py b/library/k8s_v1_node_list.py index c5934234..60b3c791 100644 --- a/library/k8s_v1_node_list.py +++ b/library/k8s_v1_node_list.py @@ -27,6 +27,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -63,16 +69,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1_o_auth_access_token.py b/library/k8s_v1_o_auth_access_token.py index 15923520..0f2f94c4 100644 --- a/library/k8s_v1_o_auth_access_token.py +++ b/library/k8s_v1_o_auth_access_token.py @@ -42,6 +42,12 @@ options: description: - ExpiresIn is the seconds from CreationTime before this token expires. type: int + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -101,16 +107,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced user_name: description: - UserName is the user name associated with this token diff --git a/library/k8s_v1_o_auth_access_token_list.py b/library/k8s_v1_o_auth_access_token_list.py index 2f938f61..09080a50 100644 --- a/library/k8s_v1_o_auth_access_token_list.py +++ b/library/k8s_v1_o_auth_access_token_list.py @@ -27,6 +27,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -63,16 +69,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1_o_auth_authorize_token.py b/library/k8s_v1_o_auth_authorize_token.py index c9809508..2b04b96c 100644 --- a/library/k8s_v1_o_auth_authorize_token.py +++ b/library/k8s_v1_o_auth_authorize_token.py @@ -47,6 +47,12 @@ options: description: - ExpiresIn is the seconds from CreationTime before this token expires. type: int + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. diff --git a/library/k8s_v1_o_auth_authorize_token_list.py b/library/k8s_v1_o_auth_authorize_token_list.py index 44d9e0cc..9b539c5d 100644 --- a/library/k8s_v1_o_auth_authorize_token_list.py +++ b/library/k8s_v1_o_auth_authorize_token_list.py @@ -27,6 +27,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -63,16 +69,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1_o_auth_client.py b/library/k8s_v1_o_auth_client.py index f0ea734e..f92180d6 100644 --- a/library/k8s_v1_o_auth_client.py +++ b/library/k8s_v1_o_auth_client.py @@ -37,6 +37,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool grant_method: description: - 'GrantMethod determines how to handle grants for this client. If no method is @@ -112,16 +118,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1_o_auth_client_authorization.py b/library/k8s_v1_o_auth_client_authorization.py index 467cc192..770fcd6a 100644 --- a/library/k8s_v1_o_auth_client_authorization.py +++ b/library/k8s_v1_o_auth_client_authorization.py @@ -35,6 +35,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -88,16 +94,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced user_name: description: - UserName is the user name that authorized this client diff --git a/library/k8s_v1_o_auth_client_authorization_list.py b/library/k8s_v1_o_auth_client_authorization_list.py index c779b6f9..d7e2dda6 100644 --- a/library/k8s_v1_o_auth_client_authorization_list.py +++ b/library/k8s_v1_o_auth_client_authorization_list.py @@ -27,6 +27,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -63,16 +69,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1_o_auth_client_list.py b/library/k8s_v1_o_auth_client_list.py index f8ef10ff..b2d063ec 100644 --- a/library/k8s_v1_o_auth_client_list.py +++ b/library/k8s_v1_o_auth_client_list.py @@ -27,6 +27,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -63,16 +69,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1_persistent_volume.py b/library/k8s_v1_persistent_volume.py index fd49bfba..95417429 100644 --- a/library/k8s_v1_persistent_volume.py +++ b/library/k8s_v1_persistent_volume.py @@ -32,6 +32,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -530,16 +536,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1_persistent_volume_claim.py b/library/k8s_v1_persistent_volume_claim.py index feed1c1a..9eaa4b93 100644 --- a/library/k8s_v1_persistent_volume_claim.py +++ b/library/k8s_v1_persistent_volume_claim.py @@ -32,6 +32,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -122,16 +128,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1_persistent_volume_claim_list.py b/library/k8s_v1_persistent_volume_claim_list.py index aab52e81..4f25c0ec 100644 --- a/library/k8s_v1_persistent_volume_claim_list.py +++ b/library/k8s_v1_persistent_volume_claim_list.py @@ -27,6 +27,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -63,16 +69,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1_persistent_volume_list.py b/library/k8s_v1_persistent_volume_list.py index 5eb62a6a..02c6fe39 100644 --- a/library/k8s_v1_persistent_volume_list.py +++ b/library/k8s_v1_persistent_volume_list.py @@ -27,6 +27,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -63,16 +69,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1_pod.py b/library/k8s_v1_pod.py index 0c62d218..7d1812a7 100644 --- a/library/k8s_v1_pod.py +++ b/library/k8s_v1_pod.py @@ -32,6 +32,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -252,16 +258,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1_pod_list.py b/library/k8s_v1_pod_list.py index f067fb2e..b4a08c6b 100644 --- a/library/k8s_v1_pod_list.py +++ b/library/k8s_v1_pod_list.py @@ -27,6 +27,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -63,16 +69,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1_pod_security_policy_review.py b/library/k8s_v1_pod_security_policy_review.py index 621541e2..14b2c07e 100644 --- a/library/k8s_v1_pod_security_policy_review.py +++ b/library/k8s_v1_pod_security_policy_review.py @@ -26,6 +26,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. diff --git a/library/k8s_v1_pod_security_policy_self_subject_review.py b/library/k8s_v1_pod_security_policy_self_subject_review.py index f41ca66c..b094df75 100644 --- a/library/k8s_v1_pod_security_policy_self_subject_review.py +++ b/library/k8s_v1_pod_security_policy_self_subject_review.py @@ -26,6 +26,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. diff --git a/library/k8s_v1_pod_security_policy_subject_review.py b/library/k8s_v1_pod_security_policy_subject_review.py index 585bbbb6..7f3b585d 100644 --- a/library/k8s_v1_pod_security_policy_subject_review.py +++ b/library/k8s_v1_pod_security_policy_subject_review.py @@ -26,6 +26,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. diff --git a/library/k8s_v1_pod_template.py b/library/k8s_v1_pod_template.py index f630d04e..61795eb5 100644 --- a/library/k8s_v1_pod_template.py +++ b/library/k8s_v1_pod_template.py @@ -32,6 +32,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -81,16 +87,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced template_metadata_annotations: description: - Annotations is an unstructured key value map stored with a resource that may diff --git a/library/k8s_v1_pod_template_list.py b/library/k8s_v1_pod_template_list.py index 3e5eadd9..376bb5f4 100644 --- a/library/k8s_v1_pod_template_list.py +++ b/library/k8s_v1_pod_template_list.py @@ -27,6 +27,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -63,16 +69,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1_policy.py b/library/k8s_v1_policy.py index b4d46a99..92491912 100644 --- a/library/k8s_v1_policy.py +++ b/library/k8s_v1_policy.py @@ -32,6 +32,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -85,16 +91,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1_policy_binding.py b/library/k8s_v1_policy_binding.py index fbea592c..64fafd1e 100644 --- a/library/k8s_v1_policy_binding.py +++ b/library/k8s_v1_policy_binding.py @@ -32,6 +32,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -127,16 +133,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1_policy_binding_list.py b/library/k8s_v1_policy_binding_list.py index e56b2495..bd019db5 100644 --- a/library/k8s_v1_policy_binding_list.py +++ b/library/k8s_v1_policy_binding_list.py @@ -27,6 +27,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -63,16 +69,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1_policy_list.py b/library/k8s_v1_policy_list.py index 6acf3783..e73935c2 100644 --- a/library/k8s_v1_policy_list.py +++ b/library/k8s_v1_policy_list.py @@ -27,6 +27,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -63,16 +69,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1_project.py b/library/k8s_v1_project.py index 651d3dc4..c1de7c6f 100644 --- a/library/k8s_v1_project.py +++ b/library/k8s_v1_project.py @@ -38,6 +38,12 @@ options: display_name: description: - Provides a descriptive name for the project. + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -94,16 +100,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1_project_list.py b/library/k8s_v1_project_list.py index ca5bcd24..09eb0231 100644 --- a/library/k8s_v1_project_list.py +++ b/library/k8s_v1_project_list.py @@ -27,6 +27,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -63,16 +69,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1_replication_controller.py b/library/k8s_v1_replication_controller.py index 7467fe86..148f511d 100644 --- a/library/k8s_v1_replication_controller.py +++ b/library/k8s_v1_replication_controller.py @@ -32,6 +32,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -299,16 +305,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1_replication_controller_list.py b/library/k8s_v1_replication_controller_list.py index 5226b9e6..0c929ede 100644 --- a/library/k8s_v1_replication_controller_list.py +++ b/library/k8s_v1_replication_controller_list.py @@ -27,6 +27,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -63,16 +69,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1_resource_quota.py b/library/k8s_v1_resource_quota.py index 5051eebe..dd822673 100644 --- a/library/k8s_v1_resource_quota.py +++ b/library/k8s_v1_resource_quota.py @@ -32,6 +32,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -94,16 +100,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1_resource_quota_list.py b/library/k8s_v1_resource_quota_list.py index bf73a8b2..1bb105f2 100644 --- a/library/k8s_v1_resource_quota_list.py +++ b/library/k8s_v1_resource_quota_list.py @@ -27,6 +27,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -63,16 +69,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1_role.py b/library/k8s_v1_role.py index 92b3b266..466b35c5 100644 --- a/library/k8s_v1_role.py +++ b/library/k8s_v1_role.py @@ -32,6 +32,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -85,16 +91,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1_role_binding.py b/library/k8s_v1_role_binding.py index 80914c76..cc77fdf3 100644 --- a/library/k8s_v1_role_binding.py +++ b/library/k8s_v1_role_binding.py @@ -32,6 +32,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool group_names: description: - GroupNames holds all the groups directly bound to the role. This field should @@ -128,16 +134,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced subjects: description: - Subjects hold object references to authorize with this rule. This field is ignored diff --git a/library/k8s_v1_role_binding_list.py b/library/k8s_v1_role_binding_list.py index a7d9a34e..f34ed6c5 100644 --- a/library/k8s_v1_role_binding_list.py +++ b/library/k8s_v1_role_binding_list.py @@ -27,6 +27,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -63,16 +69,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1_role_binding_restriction.py b/library/k8s_v1_role_binding_restriction.py index f5ac5951..d3f5939b 100644 --- a/library/k8s_v1_role_binding_restriction.py +++ b/library/k8s_v1_role_binding_restriction.py @@ -32,6 +32,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -125,16 +131,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1_role_binding_restriction_list.py b/library/k8s_v1_role_binding_restriction_list.py index 49456710..33e579da 100644 --- a/library/k8s_v1_role_binding_restriction_list.py +++ b/library/k8s_v1_role_binding_restriction_list.py @@ -27,6 +27,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -63,16 +69,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1_role_list.py b/library/k8s_v1_role_list.py index 19ff3736..d99233f9 100644 --- a/library/k8s_v1_role_list.py +++ b/library/k8s_v1_role_list.py @@ -27,6 +27,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -63,16 +69,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1_route.py b/library/k8s_v1_route.py index 96143ad8..7cadef40 100644 --- a/library/k8s_v1_route.py +++ b/library/k8s_v1_route.py @@ -32,6 +32,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -169,16 +175,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1_route_list.py b/library/k8s_v1_route_list.py index 0c5ed1b8..2f2de016 100644 --- a/library/k8s_v1_route_list.py +++ b/library/k8s_v1_route_list.py @@ -27,6 +27,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -63,16 +69,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1_scale.py b/library/k8s_v1_scale.py index c93c0892..d4fbd7b2 100644 --- a/library/k8s_v1_scale.py +++ b/library/k8s_v1_scale.py @@ -32,6 +32,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. diff --git a/library/k8s_v1_secret.py b/library/k8s_v1_secret.py index c4b93855..a43a1fa4 100644 --- a/library/k8s_v1_secret.py +++ b/library/k8s_v1_secret.py @@ -39,6 +39,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -88,16 +94,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced string_data: description: - stringData allows specifying non-binary secret data in string form. It is provided diff --git a/library/k8s_v1_secret_list.py b/library/k8s_v1_secret_list.py index 566b5bc3..6226010e 100644 --- a/library/k8s_v1_secret_list.py +++ b/library/k8s_v1_secret_list.py @@ -27,6 +27,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -63,16 +69,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1_security_context_constraints.py b/library/k8s_v1_security_context_constraints.py index 76d0730d..0c7e4f9f 100644 --- a/library/k8s_v1_security_context_constraints.py +++ b/library/k8s_v1_security_context_constraints.py @@ -71,6 +71,12 @@ options: to the container unless the pod spec specifically drops the capability. You may not list a capabiility in both DefaultAddCapabilities and RequiredDropCapabilities. type: list + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool fs_group_ranges: description: - Ranges are the allowed ranges of fs groups. If you would like to force a single @@ -213,16 +219,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced supplemental_groups_ranges: description: - Ranges are the allowed ranges of supplemental groups. If you would like to force diff --git a/library/k8s_v1_security_context_constraints_list.py b/library/k8s_v1_security_context_constraints_list.py index 811f1a4a..2a493589 100644 --- a/library/k8s_v1_security_context_constraints_list.py +++ b/library/k8s_v1_security_context_constraints_list.py @@ -27,6 +27,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -63,16 +69,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1_self_subject_rules_review.py b/library/k8s_v1_self_subject_rules_review.py index d12203c3..02b34bde 100644 --- a/library/k8s_v1_self_subject_rules_review.py +++ b/library/k8s_v1_self_subject_rules_review.py @@ -26,6 +26,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. diff --git a/library/k8s_v1_service.py b/library/k8s_v1_service.py index bed9e7b2..62de11e8 100644 --- a/library/k8s_v1_service.py +++ b/library/k8s_v1_service.py @@ -32,6 +32,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -172,16 +178,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1_service_account.py b/library/k8s_v1_service_account.py index 458f6232..94157675 100644 --- a/library/k8s_v1_service_account.py +++ b/library/k8s_v1_service_account.py @@ -32,6 +32,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -93,16 +99,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1_service_account_list.py b/library/k8s_v1_service_account_list.py index 5844139f..ef6030c9 100644 --- a/library/k8s_v1_service_account_list.py +++ b/library/k8s_v1_service_account_list.py @@ -27,6 +27,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -63,16 +69,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1_service_list.py b/library/k8s_v1_service_list.py index a3750463..6f22a713 100644 --- a/library/k8s_v1_service_list.py +++ b/library/k8s_v1_service_list.py @@ -27,6 +27,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -63,16 +69,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1_subject_rules_review.py b/library/k8s_v1_subject_rules_review.py index 6f18c4ea..6d116c31 100644 --- a/library/k8s_v1_subject_rules_review.py +++ b/library/k8s_v1_subject_rules_review.py @@ -26,6 +26,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. diff --git a/library/k8s_v1_template.py b/library/k8s_v1_template.py index 70674dbb..da2b0013 100644 --- a/library/k8s_v1_template.py +++ b/library/k8s_v1_template.py @@ -32,6 +32,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -101,16 +107,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1_template_list.py b/library/k8s_v1_template_list.py index 60876d40..8644737c 100644 --- a/library/k8s_v1_template_list.py +++ b/library/k8s_v1_template_list.py @@ -27,6 +27,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -63,16 +69,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1_user.py b/library/k8s_v1_user.py index 121a98d9..8748bf3b 100644 --- a/library/k8s_v1_user.py +++ b/library/k8s_v1_user.py @@ -32,6 +32,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool full_name: description: - FullName is the full name of user @@ -94,16 +100,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1_user_identity_mapping.py b/library/k8s_v1_user_identity_mapping.py index 7c60bac1..a0580007 100644 --- a/library/k8s_v1_user_identity_mapping.py +++ b/library/k8s_v1_user_identity_mapping.py @@ -32,6 +32,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -122,16 +128,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced user_api_version: description: - API version of the referent. diff --git a/library/k8s_v1_user_list.py b/library/k8s_v1_user_list.py index 927b6393..045ba991 100644 --- a/library/k8s_v1_user_list.py +++ b/library/k8s_v1_user_list.py @@ -27,6 +27,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -63,16 +69,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1alpha1_certificate_signing_request.py b/library/k8s_v1alpha1_certificate_signing_request.py index 830232b3..c8126858 100644 --- a/library/k8s_v1alpha1_certificate_signing_request.py +++ b/library/k8s_v1alpha1_certificate_signing_request.py @@ -32,6 +32,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -99,16 +105,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1alpha1_certificate_signing_request_list.py b/library/k8s_v1alpha1_certificate_signing_request_list.py index 5be0c74a..33cd64a0 100644 --- a/library/k8s_v1alpha1_certificate_signing_request_list.py +++ b/library/k8s_v1alpha1_certificate_signing_request_list.py @@ -27,6 +27,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -63,16 +69,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1beta1_daemon_set.py b/library/k8s_v1beta1_daemon_set.py index 6d41e2ab..67c4d0cc 100644 --- a/library/k8s_v1beta1_daemon_set.py +++ b/library/k8s_v1beta1_daemon_set.py @@ -32,6 +32,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -291,16 +297,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1beta1_daemon_set_list.py b/library/k8s_v1beta1_daemon_set_list.py index 94fa11da..e554bece 100644 --- a/library/k8s_v1beta1_daemon_set_list.py +++ b/library/k8s_v1beta1_daemon_set_list.py @@ -27,6 +27,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -63,16 +69,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1beta1_deployment.py b/library/k8s_v1beta1_deployment.py index cc19c1e5..319eb1f3 100644 --- a/library/k8s_v1beta1_deployment.py +++ b/library/k8s_v1beta1_deployment.py @@ -32,6 +32,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -368,16 +374,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1beta1_deployment_list.py b/library/k8s_v1beta1_deployment_list.py index 48d469c0..0dae894e 100644 --- a/library/k8s_v1beta1_deployment_list.py +++ b/library/k8s_v1beta1_deployment_list.py @@ -27,6 +27,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -63,16 +69,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1beta1_eviction.py b/library/k8s_v1beta1_eviction.py index 924a4d31..365f336a 100644 --- a/library/k8s_v1beta1_eviction.py +++ b/library/k8s_v1beta1_eviction.py @@ -67,6 +67,12 @@ options: - Specifies the target UID. aliases: - uid + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. diff --git a/library/k8s_v1beta1_horizontal_pod_autoscaler.py b/library/k8s_v1beta1_horizontal_pod_autoscaler.py index c62db26e..1819f8af 100644 --- a/library/k8s_v1beta1_horizontal_pod_autoscaler.py +++ b/library/k8s_v1beta1_horizontal_pod_autoscaler.py @@ -32,6 +32,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -122,16 +128,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1beta1_horizontal_pod_autoscaler_list.py b/library/k8s_v1beta1_horizontal_pod_autoscaler_list.py index deb753c6..06e98847 100644 --- a/library/k8s_v1beta1_horizontal_pod_autoscaler_list.py +++ b/library/k8s_v1beta1_horizontal_pod_autoscaler_list.py @@ -27,6 +27,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -63,16 +69,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1beta1_ingress.py b/library/k8s_v1beta1_ingress.py index 50599836..7f03a39f 100644 --- a/library/k8s_v1beta1_ingress.py +++ b/library/k8s_v1beta1_ingress.py @@ -32,6 +32,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -107,16 +113,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1beta1_ingress_list.py b/library/k8s_v1beta1_ingress_list.py index a026a5ff..ae2b4491 100644 --- a/library/k8s_v1beta1_ingress_list.py +++ b/library/k8s_v1beta1_ingress_list.py @@ -27,6 +27,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -63,16 +69,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1beta1_job.py b/library/k8s_v1beta1_job.py index 0f911adb..a38f9dff 100644 --- a/library/k8s_v1beta1_job.py +++ b/library/k8s_v1beta1_job.py @@ -32,6 +32,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -326,16 +332,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1beta1_job_list.py b/library/k8s_v1beta1_job_list.py index 3c39998d..846547dd 100644 --- a/library/k8s_v1beta1_job_list.py +++ b/library/k8s_v1beta1_job_list.py @@ -27,6 +27,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -63,16 +69,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1beta1_network_policy.py b/library/k8s_v1beta1_network_policy.py index e0a78402..1f607ea3 100644 --- a/library/k8s_v1beta1_network_policy.py +++ b/library/k8s_v1beta1_network_policy.py @@ -32,6 +32,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -110,16 +116,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1beta1_network_policy_list.py b/library/k8s_v1beta1_network_policy_list.py index bb94af13..e70672b6 100644 --- a/library/k8s_v1beta1_network_policy_list.py +++ b/library/k8s_v1beta1_network_policy_list.py @@ -27,6 +27,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -63,16 +69,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1beta1_pod_disruption_budget.py b/library/k8s_v1beta1_pod_disruption_budget.py index a22100ea..7fb663c8 100644 --- a/library/k8s_v1beta1_pod_disruption_budget.py +++ b/library/k8s_v1beta1_pod_disruption_budget.py @@ -32,6 +32,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -105,16 +111,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1beta1_pod_disruption_budget_list.py b/library/k8s_v1beta1_pod_disruption_budget_list.py index 638afea6..38c4fb99 100644 --- a/library/k8s_v1beta1_pod_disruption_budget_list.py +++ b/library/k8s_v1beta1_pod_disruption_budget_list.py @@ -27,6 +27,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -63,16 +69,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1beta1_pod_security_policy.py b/library/k8s_v1beta1_pod_security_policy.py index 455350b0..569ed5ae 100644 --- a/library/k8s_v1beta1_pod_security_policy.py +++ b/library/k8s_v1beta1_pod_security_policy.py @@ -32,6 +32,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -215,16 +221,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1beta1_pod_security_policy_list.py b/library/k8s_v1beta1_pod_security_policy_list.py index a98764f9..e3d608c1 100644 --- a/library/k8s_v1beta1_pod_security_policy_list.py +++ b/library/k8s_v1beta1_pod_security_policy_list.py @@ -27,6 +27,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -63,16 +69,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1beta1_replica_set.py b/library/k8s_v1beta1_replica_set.py index 0920c6d5..5c9b3588 100644 --- a/library/k8s_v1beta1_replica_set.py +++ b/library/k8s_v1beta1_replica_set.py @@ -32,6 +32,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -306,16 +312,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1beta1_replica_set_list.py b/library/k8s_v1beta1_replica_set_list.py index 62cd387d..a0faefe4 100644 --- a/library/k8s_v1beta1_replica_set_list.py +++ b/library/k8s_v1beta1_replica_set_list.py @@ -27,6 +27,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -63,16 +69,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1beta1_scale.py b/library/k8s_v1beta1_scale.py index 70a24377..34140445 100644 --- a/library/k8s_v1beta1_scale.py +++ b/library/k8s_v1beta1_scale.py @@ -32,6 +32,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. diff --git a/library/k8s_v1beta1_stateful_set.py b/library/k8s_v1beta1_stateful_set.py index 7ba11858..3fed6b7b 100644 --- a/library/k8s_v1beta1_stateful_set.py +++ b/library/k8s_v1beta1_stateful_set.py @@ -32,6 +32,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -319,16 +325,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1beta1_stateful_set_list.py b/library/k8s_v1beta1_stateful_set_list.py index 659dc558..e2962319 100644 --- a/library/k8s_v1beta1_stateful_set_list.py +++ b/library/k8s_v1beta1_stateful_set_list.py @@ -27,6 +27,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -63,16 +69,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1beta1_storage_class.py b/library/k8s_v1beta1_storage_class.py index f3a8955e..a9403a91 100644 --- a/library/k8s_v1beta1_storage_class.py +++ b/library/k8s_v1beta1_storage_class.py @@ -32,6 +32,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -89,16 +95,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1beta1_storage_class_list.py b/library/k8s_v1beta1_storage_class_list.py index d7e89552..98ba7b82 100644 --- a/library/k8s_v1beta1_storage_class_list.py +++ b/library/k8s_v1beta1_storage_class_list.py @@ -27,6 +27,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -63,16 +69,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1beta1_third_party_resource.py b/library/k8s_v1beta1_third_party_resource.py index 379db6e9..3cc9d350 100644 --- a/library/k8s_v1beta1_third_party_resource.py +++ b/library/k8s_v1beta1_third_party_resource.py @@ -35,6 +35,12 @@ options: description: description: - Description is the description of this object. + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -84,16 +90,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1beta1_third_party_resource_list.py b/library/k8s_v1beta1_third_party_resource_list.py index 49b9091f..3f37b019 100644 --- a/library/k8s_v1beta1_third_party_resource_list.py +++ b/library/k8s_v1beta1_third_party_resource_list.py @@ -27,6 +27,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -63,16 +69,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v1beta1_token_review.py b/library/k8s_v1beta1_token_review.py index c8fe02da..f896b839 100644 --- a/library/k8s_v1beta1_token_review.py +++ b/library/k8s_v1beta1_token_review.py @@ -32,6 +32,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. diff --git a/library/k8s_v2alpha1_cron_job.py b/library/k8s_v2alpha1_cron_job.py index 3a807e86..ba894a1b 100644 --- a/library/k8s_v2alpha1_cron_job.py +++ b/library/k8s_v2alpha1_cron_job.py @@ -32,6 +32,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -392,16 +398,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v2alpha1_cron_job_list.py b/library/k8s_v2alpha1_cron_job_list.py index 4429b05e..49c8b6ff 100644 --- a/library/k8s_v2alpha1_cron_job_list.py +++ b/library/k8s_v2alpha1_cron_job_list.py @@ -27,6 +27,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -63,16 +69,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v2alpha1_job.py b/library/k8s_v2alpha1_job.py index 188bed55..92c14d49 100644 --- a/library/k8s_v2alpha1_job.py +++ b/library/k8s_v2alpha1_job.py @@ -32,6 +32,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -329,16 +335,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API. diff --git a/library/k8s_v2alpha1_job_list.py b/library/k8s_v2alpha1_job_list.py index 64c15a1e..468ed90d 100644 --- a/library/k8s_v2alpha1_job_list.py +++ b/library/k8s_v2alpha1_job_list.py @@ -27,6 +27,12 @@ options: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool + force: + description: + - If set to C(True), and I(state) is C(present), an existing object will updated, + and lists will be replaced, rather than merged. + default: false + type: bool host: description: - Provide a URL for acessing the Kubernetes API. @@ -63,16 +69,18 @@ options: type: path state: description: - - Determines if the object should be created, patched, deleted or replaced. When - set to C(present), the object will be created, if it does not exist, or patched, - if requested parameters differ from existing object attributes. If set to C(absent), - an existing object will be deleted, and if set to C(replaced), an existing object - will be completely replaced with a new object created from the supplied parameters. + - Determines if an object should be created, patched, or deleted. When set to + C(present), the object will be created, if it does not exist, or patched, if + parameter values differ from the existing object's attributes, and deleted, + if set to C(absent). A patch operation results in merging lists and updating + dictionaries, with lists being merged into a unique set of values. If a list + contains a dictionary with a I(name) or I(type) attribute, a strategic merge + is performed, where individual elements with a matching I(name_) or I(type) + are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent - - replaced username: description: - Provide a username for connecting to the API.