From a5c96da594a4f9f6036c091ed558697f3333b978 Mon Sep 17 00:00:00 2001 From: Chris Houseknecht Date: Thu, 23 Mar 2017 04:17:37 -0400 Subject: [PATCH] Regen'd modules --- .../k8s_v1_applied_cluster_resource_quota.py | 1 - library/k8s_v1_binding.py | 1 - library/k8s_v1_build.py | 11 +- library/k8s_v1_build_config.py | 11 +- library/k8s_v1_build_config_list.py | 10 + library/k8s_v1_build_list.py | 10 + library/k8s_v1_build_request.py | 1 - library/k8s_v1_cluster_network.py | 11 +- library/k8s_v1_cluster_network_list.py | 10 + library/k8s_v1_cluster_policy.py | 11 +- library/k8s_v1_cluster_policy_binding.py | 11 +- library/k8s_v1_cluster_policy_binding_list.py | 10 + library/k8s_v1_cluster_policy_list.py | 10 + library/k8s_v1_cluster_resource_quota.py | 11 +- library/k8s_v1_cluster_resource_quota_list.py | 10 + library/k8s_v1_cluster_role.py | 11 +- library/k8s_v1_cluster_role_binding.py | 11 +- library/k8s_v1_cluster_role_binding_list.py | 10 + library/k8s_v1_cluster_role_list.py | 10 + library/k8s_v1_component_status.py | 1 - library/k8s_v1_config_map.py | 11 +- library/k8s_v1_config_map_list.py | 10 + library/k8s_v1_deployment_config.py | 168 +++++----- library/k8s_v1_deployment_config_list.py | 10 + library/k8s_v1_egress_network_policy.py | 11 +- library/k8s_v1_egress_network_policy_list.py | 10 + library/k8s_v1_endpoints.py | 11 +- library/k8s_v1_endpoints_list.py | 10 + library/k8s_v1_event.py | 11 +- library/k8s_v1_event_list.py | 10 + library/k8s_v1_group.py | 11 +- library/k8s_v1_group_list.py | 10 + library/k8s_v1_horizontal_pod_autoscaler.py | 11 +- .../k8s_v1_horizontal_pod_autoscaler_list.py | 10 + library/k8s_v1_host_subnet.py | 11 +- library/k8s_v1_host_subnet_list.py | 10 + library/k8s_v1_identity.py | 11 +- library/k8s_v1_identity_list.py | 10 + library/k8s_v1_image.py | 11 +- library/k8s_v1_image_list.py | 10 + library/k8s_v1_image_signature.py | 11 +- library/k8s_v1_image_stream.py | 11 +- library/k8s_v1_image_stream_image.py | 2 - library/k8s_v1_image_stream_import.py | 1 - library/k8s_v1_image_stream_list.py | 10 + library/k8s_v1_image_stream_mapping.py | 2 - library/k8s_v1_image_stream_tag.py | 12 +- library/k8s_v1_image_stream_tag_list.py | 10 + library/k8s_v1_job.py | 156 +++++----- library/k8s_v1_job_list.py | 10 + library/k8s_v1_limit_range.py | 11 +- library/k8s_v1_limit_range_list.py | 10 + library/k8s_v1_namespace.py | 11 +- library/k8s_v1_namespace_list.py | 10 + library/k8s_v1_net_namespace.py | 11 +- library/k8s_v1_net_namespace_list.py | 10 + library/k8s_v1_node.py | 11 +- library/k8s_v1_node_list.py | 10 + library/k8s_v1_o_auth_access_token.py | 11 +- library/k8s_v1_o_auth_access_token_list.py | 10 + library/k8s_v1_o_auth_authorize_token.py | 11 +- library/k8s_v1_o_auth_authorize_token_list.py | 10 + library/k8s_v1_o_auth_client.py | 11 +- library/k8s_v1_o_auth_client_authorization.py | 11 +- ...k8s_v1_o_auth_client_authorization_list.py | 10 + library/k8s_v1_o_auth_client_list.py | 10 + library/k8s_v1_persistent_volume.py | 11 +- library/k8s_v1_persistent_volume_claim.py | 11 +- .../k8s_v1_persistent_volume_claim_list.py | 10 + library/k8s_v1_persistent_volume_list.py | 10 + library/k8s_v1_pod.py | 11 +- library/k8s_v1_pod_list.py | 10 + library/k8s_v1_pod_security_policy_review.py | 145 +++++---- ...pod_security_policy_self_subject_review.py | 145 +++++---- ...s_v1_pod_security_policy_subject_review.py | 145 +++++---- library/k8s_v1_pod_template.py | 12 +- library/k8s_v1_pod_template_list.py | 10 + library/k8s_v1_policy.py | 11 +- library/k8s_v1_policy_binding.py | 11 +- library/k8s_v1_policy_binding_list.py | 10 + library/k8s_v1_policy_list.py | 10 + library/k8s_v1_project.py | 11 +- library/k8s_v1_project_list.py | 10 + library/k8s_v1_replication_controller.py | 156 +++++----- library/k8s_v1_replication_controller_list.py | 10 + library/k8s_v1_resource_quota.py | 11 +- library/k8s_v1_resource_quota_list.py | 10 + library/k8s_v1_role.py | 11 +- library/k8s_v1_role_binding.py | 11 +- library/k8s_v1_role_binding_list.py | 10 + library/k8s_v1_role_binding_restriction.py | 11 +- .../k8s_v1_role_binding_restriction_list.py | 10 + library/k8s_v1_role_list.py | 10 + library/k8s_v1_route.py | 11 +- library/k8s_v1_route_list.py | 10 + library/k8s_v1_scale.py | 1 - library/k8s_v1_secret.py | 11 +- library/k8s_v1_secret_list.py | 10 + .../k8s_v1_security_context_constraints.py | 11 +- ...8s_v1_security_context_constraints_list.py | 10 + library/k8s_v1_service.py | 11 +- library/k8s_v1_service_account.py | 11 +- library/k8s_v1_service_account_list.py | 10 + library/k8s_v1_service_list.py | 10 + library/k8s_v1_template.py | 11 +- library/k8s_v1_template_list.py | 10 + library/k8s_v1_user.py | 11 +- library/k8s_v1_user_identity_mapping.py | 11 +- library/k8s_v1_user_list.py | 10 + ...8s_v1alpha1_certificate_signing_request.py | 11 +- ...alpha1_certificate_signing_request_list.py | 10 + library/k8s_v1beta1_daemon_set.py | 156 +++++----- library/k8s_v1beta1_daemon_set_list.py | 10 + library/k8s_v1beta1_deployment.py | 156 +++++----- library/k8s_v1beta1_deployment_list.py | 10 + library/k8s_v1beta1_eviction.py | 1 - .../k8s_v1beta1_horizontal_pod_autoscaler.py | 11 +- ..._v1beta1_horizontal_pod_autoscaler_list.py | 10 + library/k8s_v1beta1_ingress.py | 11 +- library/k8s_v1beta1_ingress_list.py | 10 + library/k8s_v1beta1_job.py | 156 +++++----- library/k8s_v1beta1_job_list.py | 10 + library/k8s_v1beta1_network_policy.py | 11 +- library/k8s_v1beta1_network_policy_list.py | 10 + library/k8s_v1beta1_pod_disruption_budget.py | 11 +- .../k8s_v1beta1_pod_disruption_budget_list.py | 10 + library/k8s_v1beta1_pod_security_policy.py | 11 +- .../k8s_v1beta1_pod_security_policy_list.py | 10 + library/k8s_v1beta1_replica_set.py | 156 +++++----- library/k8s_v1beta1_replica_set_list.py | 10 + library/k8s_v1beta1_scale.py | 1 - library/k8s_v1beta1_stateful_set.py | 156 +++++----- library/k8s_v1beta1_stateful_set_list.py | 10 + library/k8s_v1beta1_storage_class.py | 11 +- library/k8s_v1beta1_storage_class_list.py | 10 + library/k8s_v1beta1_third_party_resource.py | 11 +- .../k8s_v1beta1_third_party_resource_list.py | 10 + library/k8s_v1beta1_token_review.py | 1 - library/k8s_v2alpha1_cron_job.py | 290 ++++++++++-------- library/k8s_v2alpha1_cron_job_list.py | 10 + library/k8s_v2alpha1_job.py | 156 +++++----- library/k8s_v2alpha1_job_list.py | 10 + 142 files changed, 2308 insertions(+), 1083 deletions(-) diff --git a/library/k8s_v1_applied_cluster_resource_quota.py b/library/k8s_v1_applied_cluster_resource_quota.py index 1cbc62a2..5855e1e8 100644 --- a/library/k8s_v1_applied_cluster_resource_quota.py +++ b/library/k8s_v1_applied_cluster_resource_quota.py @@ -56,7 +56,6 @@ options: although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - required: true namespace: description: - Namespace defines the space within each name must be unique. An empty namespace diff --git a/library/k8s_v1_binding.py b/library/k8s_v1_binding.py index dcd737cb..0984f1df 100644 --- a/library/k8s_v1_binding.py +++ b/library/k8s_v1_binding.py @@ -56,7 +56,6 @@ options: although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - required: true namespace: description: - Namespace defines the space within each name must be unique. An empty namespace diff --git a/library/k8s_v1_build.py b/library/k8s_v1_build.py index b6dc554b..becb2f4b 100644 --- a/library/k8s_v1_build.py +++ b/library/k8s_v1_build.py @@ -56,7 +56,6 @@ options: although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - required: true namespace: description: - Namespace defines the space within each name must be unique. An empty namespace @@ -66,6 +65,11 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict spec_completion_deadline_seconds: description: - completionDeadlineSeconds is an optional duration in seconds, counted from the @@ -598,6 +602,11 @@ options: aliases: - triggered_by type: list + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1_build_config.py b/library/k8s_v1_build_config.py index d1128e08..43511b23 100644 --- a/library/k8s_v1_build_config.py +++ b/library/k8s_v1_build_config.py @@ -56,7 +56,6 @@ options: although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - required: true namespace: description: - Namespace defines the space within each name must be unique. An empty namespace @@ -66,6 +65,11 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict spec_completion_deadline_seconds: description: - completionDeadlineSeconds is an optional duration in seconds, counted from the @@ -606,6 +610,11 @@ options: aliases: - triggers type: list + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1_build_config_list.py b/library/k8s_v1_build_config_list.py index 3f7f569b..fb4c603a 100644 --- a/library/k8s_v1_build_config_list.py +++ b/library/k8s_v1_build_config_list.py @@ -47,6 +47,16 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1_build_list.py b/library/k8s_v1_build_list.py index a440a91a..cc7c754b 100644 --- a/library/k8s_v1_build_list.py +++ b/library/k8s_v1_build_list.py @@ -47,6 +47,16 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1_build_request.py b/library/k8s_v1_build_request.py index df7b274e..680c0fb9 100644 --- a/library/k8s_v1_build_request.py +++ b/library/k8s_v1_build_request.py @@ -118,7 +118,6 @@ options: although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - required: true namespace: description: - Namespace defines the space within each name must be unique. An empty namespace diff --git a/library/k8s_v1_cluster_network.py b/library/k8s_v1_cluster_network.py index 963da81c..66b72586 100644 --- a/library/k8s_v1_cluster_network.py +++ b/library/k8s_v1_cluster_network.py @@ -62,7 +62,6 @@ options: although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - required: true namespace: description: - Namespace defines the space within each name must be unique. An empty namespace @@ -78,9 +77,19 @@ options: plugin_name: description: - PluginName is the name of the network plugin being used + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict service_network: description: - ServiceNetwork is the CIDR range that Service IP addresses are allocated from + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1_cluster_network_list.py b/library/k8s_v1_cluster_network_list.py index 46cdd000..fdf969e9 100644 --- a/library/k8s_v1_cluster_network_list.py +++ b/library/k8s_v1_cluster_network_list.py @@ -47,6 +47,16 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1_cluster_policy.py b/library/k8s_v1_cluster_policy.py index 229b08a9..ee188222 100644 --- a/library/k8s_v1_cluster_policy.py +++ b/library/k8s_v1_cluster_policy.py @@ -56,7 +56,6 @@ options: although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - required: true namespace: description: - Namespace defines the space within each name must be unique. An empty namespace @@ -66,10 +65,20 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict roles: description: - Roles holds all the ClusterRoles held by this ClusterPolicy, mapped by ClusterRole.Name type: list + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1_cluster_policy_binding.py b/library/k8s_v1_cluster_policy_binding.py index 5b4553bf..43be3409 100644 --- a/library/k8s_v1_cluster_policy_binding.py +++ b/library/k8s_v1_cluster_policy_binding.py @@ -56,7 +56,6 @@ options: although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - required: true namespace: description: - Namespace defines the space within each name must be unique. An empty namespace @@ -107,11 +106,21 @@ options: - UID of the referent. aliases: - uid + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict role_bindings: description: - RoleBindings holds all the ClusterRoleBindings held by this ClusterPolicyBinding, mapped by ClusterRoleBinding.Name type: list + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1_cluster_policy_binding_list.py b/library/k8s_v1_cluster_policy_binding_list.py index 444663e9..8cac1482 100644 --- a/library/k8s_v1_cluster_policy_binding_list.py +++ b/library/k8s_v1_cluster_policy_binding_list.py @@ -47,6 +47,16 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1_cluster_policy_list.py b/library/k8s_v1_cluster_policy_list.py index 2e35c1f7..99bbdecd 100644 --- a/library/k8s_v1_cluster_policy_list.py +++ b/library/k8s_v1_cluster_policy_list.py @@ -47,6 +47,16 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1_cluster_resource_quota.py b/library/k8s_v1_cluster_resource_quota.py index 2822cf78..d5674f04 100644 --- a/library/k8s_v1_cluster_resource_quota.py +++ b/library/k8s_v1_cluster_resource_quota.py @@ -56,7 +56,6 @@ options: although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - required: true namespace: description: - Namespace defines the space within each name must be unique. An empty namespace @@ -66,6 +65,11 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict spec_quota_hard: description: - Hard is the set of desired hard limits for each named resource. @@ -101,6 +105,11 @@ options: aliases: - selector_labels_match_labels type: dict + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1_cluster_resource_quota_list.py b/library/k8s_v1_cluster_resource_quota_list.py index 4fa22201..ef50e17c 100644 --- a/library/k8s_v1_cluster_resource_quota_list.py +++ b/library/k8s_v1_cluster_resource_quota_list.py @@ -47,6 +47,16 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1_cluster_role.py b/library/k8s_v1_cluster_role.py index 530a1e0b..40d0f3e8 100644 --- a/library/k8s_v1_cluster_role.py +++ b/library/k8s_v1_cluster_role.py @@ -56,7 +56,6 @@ options: although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - required: true namespace: description: - Namespace defines the space within each name must be unique. An empty namespace @@ -66,10 +65,20 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict rules: description: - Rules holds all the PolicyRules for this ClusterRole type: list + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1_cluster_role_binding.py b/library/k8s_v1_cluster_role_binding.py index ddff5f90..22af90ff 100644 --- a/library/k8s_v1_cluster_role_binding.py +++ b/library/k8s_v1_cluster_role_binding.py @@ -62,7 +62,6 @@ options: although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - required: true namespace: description: - Namespace defines the space within each name must be unique. An empty namespace @@ -72,6 +71,11 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict role_ref_api_version: description: - API version of the referent. @@ -113,6 +117,11 @@ options: - UID of the referent. aliases: - uid + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1_cluster_role_binding_list.py b/library/k8s_v1_cluster_role_binding_list.py index c1969bcf..5c53b904 100644 --- a/library/k8s_v1_cluster_role_binding_list.py +++ b/library/k8s_v1_cluster_role_binding_list.py @@ -47,6 +47,16 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1_cluster_role_list.py b/library/k8s_v1_cluster_role_list.py index fa591690..37ac107c 100644 --- a/library/k8s_v1_cluster_role_list.py +++ b/library/k8s_v1_cluster_role_list.py @@ -47,6 +47,16 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1_component_status.py b/library/k8s_v1_component_status.py index be45d6d5..1b5af641 100644 --- a/library/k8s_v1_component_status.py +++ b/library/k8s_v1_component_status.py @@ -60,7 +60,6 @@ options: although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - required: true namespace: description: - Namespace defines the space within each name must be unique. An empty namespace diff --git a/library/k8s_v1_config_map.py b/library/k8s_v1_config_map.py index f1efd8ea..8a0388bf 100644 --- a/library/k8s_v1_config_map.py +++ b/library/k8s_v1_config_map.py @@ -61,7 +61,6 @@ options: although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - required: true namespace: description: - Namespace defines the space within each name must be unique. An empty namespace @@ -71,6 +70,16 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1_config_map_list.py b/library/k8s_v1_config_map_list.py index 3bf87b33..6d0d32a1 100644 --- a/library/k8s_v1_config_map_list.py +++ b/library/k8s_v1_config_map_list.py @@ -47,6 +47,16 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1_deployment_config.py b/library/k8s_v1_deployment_config.py index 8c7e0744..af36c187 100644 --- a/library/k8s_v1_deployment_config.py +++ b/library/k8s_v1_deployment_config.py @@ -56,7 +56,6 @@ options: although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - required: true namespace: description: - Namespace defines the space within each name must be unique. An empty namespace @@ -66,6 +65,11 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict spec_min_ready_seconds: description: - MinReadySeconds is the minimum number of seconds for which a newly created pod @@ -119,7 +123,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 @@ -132,7 +136,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 @@ -153,7 +157,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 @@ -161,67 +165,11 @@ options: description: - Type is the name of a deployment strategy. choices: - - Rolling - - Custom - - Recreate + - rolling + - custom + - recreate aliases: - strategy_type - spec_template_active_deadline_seconds: - description: - - Optional duration in seconds the pod may be active on the node relative to StartTime - before the system will actively try to mark it failed and kill associated containers. - Value must be a positive integer. - aliases: - - active_deadline_seconds - type: int - spec_template_containers: - description: - - List of containers belonging to the pod. Containers cannot currently be added - or removed. There must be at least one container in a Pod. Cannot be updated. - aliases: - - containers - type: list - spec_template_dns_policy: - description: - - Set DNS policy for containers within the pod. One of 'ClusterFirst' or 'Default'. - Defaults to "ClusterFirst". - aliases: - - dns_policy - spec_template_host_ipc: - description: - - "Use the host's ipc namespace. Optional: Default to false." - aliases: - - host_ipc - type: bool - spec_template_host_network: - description: - - Host networking requested for this pod. Use the host's network namespace. If - this option is set, the ports that will be used must be specified. Default to - false. - aliases: - - host_network - type: bool - spec_template_host_pid: - description: - - "Use the host's pid namespace. Optional: Default to false." - aliases: - - host_pid - type: bool - spec_template_hostname: - description: - - Specifies the hostname of the Pod If not specified, the pod's hostname will - be set to a system-defined value. - aliases: - - hostname - spec_template_image_pull_secrets: - description: - - ImagePullSecrets is an optional list of references to secrets in the same namespace - to use for pulling any of the images used by this PodSpec. If specified, these - secrets will be passed to individual puller implementations for them to use. - For example, in the case of docker, only DockerConfig type secrets are honored. - aliases: - - image_pull_secrets - type: list spec_template_metadata_annotations: description: - Annotations is an unstructured key value map stored with a resource that may @@ -239,21 +187,76 @@ options: although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - required: true spec_template_metadata_namespace: description: - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. - spec_template_node_name: + spec_template_spec_active_deadline_seconds: + description: + - Optional duration in seconds the pod may be active on the node relative to StartTime + before the system will actively try to mark it failed and kill associated containers. + Value must be a positive integer. + aliases: + - active_deadline_seconds + type: int + spec_template_spec_containers: + description: + - List of containers belonging to the pod. Containers cannot currently be added + or removed. There must be at least one container in a Pod. Cannot be updated. + aliases: + - containers + type: list + spec_template_spec_dns_policy: + description: + - Set DNS policy for containers within the pod. One of 'ClusterFirst' or 'Default'. + Defaults to "ClusterFirst". + aliases: + - dns_policy + spec_template_spec_host_ipc: + description: + - "Use the host's ipc namespace. Optional: Default to false." + aliases: + - host_ipc + type: bool + spec_template_spec_host_network: + description: + - Host networking requested for this pod. Use the host's network namespace. If + this option is set, the ports that will be used must be specified. Default to + false. + aliases: + - host_network + type: bool + spec_template_spec_host_pid: + description: + - "Use the host's pid namespace. Optional: Default to false." + aliases: + - host_pid + type: bool + spec_template_spec_hostname: + description: + - Specifies the hostname of the Pod If not specified, the pod's hostname will + be set to a system-defined value. + aliases: + - hostname + spec_template_spec_image_pull_secrets: + description: + - ImagePullSecrets is an optional list of references to secrets in the same namespace + to use for pulling any of the images used by this PodSpec. If specified, these + secrets will be passed to individual puller implementations for them to use. + For example, in the case of docker, only DockerConfig type secrets are honored. + aliases: + - image_pull_secrets + type: list + spec_template_spec_node_name: description: - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. aliases: - node_name - spec_template_node_selector: + spec_template_spec_node_selector: description: - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that @@ -261,13 +264,13 @@ options: aliases: - node_selector type: dict - spec_template_restart_policy: + spec_template_spec_restart_policy: description: - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. aliases: - restart_policy - spec_template_security_context_fs_group: + spec_template_spec_security_context_fs_group: description: - "A special supplemental group that applies to all containers in a pod. Some\ \ volume types allow the Kubelet to change the ownership of that volume to be\ @@ -278,7 +281,7 @@ options: aliases: - security_context_fs_group type: int - spec_template_security_context_run_as_non_root: + spec_template_spec_security_context_run_as_non_root: description: - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) @@ -288,7 +291,7 @@ options: aliases: - security_context_run_as_non_root type: bool - spec_template_security_context_run_as_user: + spec_template_spec_security_context_run_as_user: description: - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set @@ -297,27 +300,27 @@ options: aliases: - security_context_run_as_user type: int - spec_template_security_context_se_linux_options_level: + spec_template_spec_security_context_se_linux_options_level: description: - Level is SELinux level label that applies to the container. aliases: - security_context_se_linux_options_level - spec_template_security_context_se_linux_options_role: + spec_template_spec_security_context_se_linux_options_role: description: - Role is a SELinux role label that applies to the container. aliases: - security_context_se_linux_options_role - spec_template_security_context_se_linux_options_type: + spec_template_spec_security_context_se_linux_options_type: description: - Type is a SELinux type label that applies to the container. aliases: - security_context_se_linux_options_type - spec_template_security_context_se_linux_options_user: + spec_template_spec_security_context_se_linux_options_user: description: - User is a SELinux user label that applies to the container. aliases: - security_context_se_linux_options_user - spec_template_security_context_supplemental_groups: + spec_template_spec_security_context_supplemental_groups: description: - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any @@ -325,25 +328,25 @@ options: aliases: - security_context_supplemental_groups type: list - spec_template_service_account: + spec_template_spec_service_account: description: - 'DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead.' aliases: - service_account - spec_template_service_account_name: + spec_template_spec_service_account_name: description: - ServiceAccountName is the name of the ServiceAccount to use to run this pod. aliases: - service_account_name - spec_template_subdomain: + spec_template_spec_subdomain: description: - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. aliases: - subdomain - spec_template_termination_grace_period_seconds: + spec_template_spec_termination_grace_period_seconds: description: - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates @@ -355,7 +358,7 @@ options: aliases: - termination_grace_period_seconds type: int - spec_template_volumes: + spec_template_spec_volumes: description: - List of volumes that can be mounted by containers belonging to the pod. aliases: @@ -380,6 +383,11 @@ options: aliases: - triggers type: list + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1_deployment_config_list.py b/library/k8s_v1_deployment_config_list.py index 429f3fd0..b4bf0c2b 100644 --- a/library/k8s_v1_deployment_config_list.py +++ b/library/k8s_v1_deployment_config_list.py @@ -47,6 +47,16 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1_egress_network_policy.py b/library/k8s_v1_egress_network_policy.py index fbb6f236..64dd978e 100644 --- a/library/k8s_v1_egress_network_policy.py +++ b/library/k8s_v1_egress_network_policy.py @@ -56,7 +56,6 @@ options: although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - required: true namespace: description: - Namespace defines the space within each name must be unique. An empty namespace @@ -66,12 +65,22 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict spec_egress: description: - egress contains the list of egress policy rules aliases: - egress type: list + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1_egress_network_policy_list.py b/library/k8s_v1_egress_network_policy_list.py index eb5d201c..2b577606 100644 --- a/library/k8s_v1_egress_network_policy_list.py +++ b/library/k8s_v1_egress_network_policy_list.py @@ -47,6 +47,16 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1_endpoints.py b/library/k8s_v1_endpoints.py index 3c3e537c..9347e7c3 100644 --- a/library/k8s_v1_endpoints.py +++ b/library/k8s_v1_endpoints.py @@ -56,7 +56,6 @@ options: although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - required: true namespace: description: - Namespace defines the space within each name must be unique. An empty namespace @@ -66,6 +65,16 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1_endpoints_list.py b/library/k8s_v1_endpoints_list.py index cfd1cbe0..02020c3e 100644 --- a/library/k8s_v1_endpoints_list.py +++ b/library/k8s_v1_endpoints_list.py @@ -47,6 +47,16 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1_event.py b/library/k8s_v1_event.py index 2bfa609c..98121f55 100644 --- a/library/k8s_v1_event.py +++ b/library/k8s_v1_event.py @@ -104,7 +104,6 @@ options: although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - required: true namespace: description: - Namespace defines the space within each name must be unique. An empty namespace @@ -118,6 +117,11 @@ options: description: - This should be a short, machine understandable string that gives the reason for the transition into the object's current status. + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict source_component: description: - Component from which the event is generated. @@ -128,6 +132,11 @@ options: - Node name on which the event is generated. aliases: - host + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1_event_list.py b/library/k8s_v1_event_list.py index ef66f9d3..3e8a47d6 100644 --- a/library/k8s_v1_event_list.py +++ b/library/k8s_v1_event_list.py @@ -47,6 +47,16 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1_group.py b/library/k8s_v1_group.py index 36c6a31b..78ff3642 100644 --- a/library/k8s_v1_group.py +++ b/library/k8s_v1_group.py @@ -56,7 +56,6 @@ options: although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - required: true namespace: description: - Namespace defines the space within each name must be unique. An empty namespace @@ -66,6 +65,16 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1_group_list.py b/library/k8s_v1_group_list.py index b9b21a9f..ddfa87a1 100644 --- a/library/k8s_v1_group_list.py +++ b/library/k8s_v1_group_list.py @@ -47,6 +47,16 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1_horizontal_pod_autoscaler.py b/library/k8s_v1_horizontal_pod_autoscaler.py index 9e1b50ff..2c135c2e 100644 --- a/library/k8s_v1_horizontal_pod_autoscaler.py +++ b/library/k8s_v1_horizontal_pod_autoscaler.py @@ -56,7 +56,6 @@ options: although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - required: true namespace: description: - Namespace defines the space within each name must be unique. An empty namespace @@ -66,6 +65,11 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict spec_max_replicas: description: - upper limit for the number of pods that can be set by the autoscaler; cannot @@ -102,6 +106,11 @@ options: aliases: - target_cpu_utilization_percentage type: int + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1_horizontal_pod_autoscaler_list.py b/library/k8s_v1_horizontal_pod_autoscaler_list.py index f0432c68..2d908cdf 100644 --- a/library/k8s_v1_horizontal_pod_autoscaler_list.py +++ b/library/k8s_v1_horizontal_pod_autoscaler_list.py @@ -47,6 +47,16 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1_host_subnet.py b/library/k8s_v1_host_subnet.py index 2f8de836..31b5cf4e 100644 --- a/library/k8s_v1_host_subnet.py +++ b/library/k8s_v1_host_subnet.py @@ -61,7 +61,6 @@ options: although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - required: true namespace: description: - Namespace defines the space within each name must be unique. An empty namespace @@ -71,6 +70,16 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1_host_subnet_list.py b/library/k8s_v1_host_subnet_list.py index 023393bf..a2cc0b40 100644 --- a/library/k8s_v1_host_subnet_list.py +++ b/library/k8s_v1_host_subnet_list.py @@ -47,6 +47,16 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1_identity.py b/library/k8s_v1_identity.py index 4410a491..e9fd8141 100644 --- a/library/k8s_v1_identity.py +++ b/library/k8s_v1_identity.py @@ -60,7 +60,6 @@ options: although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - required: true namespace: description: - Namespace defines the space within each name must be unique. An empty namespace @@ -76,6 +75,16 @@ options: provider_user_name: description: - ProviderUserName uniquely represents this identity in the scope of the provider + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1_identity_list.py b/library/k8s_v1_identity_list.py index 356262c2..dcaeea31 100644 --- a/library/k8s_v1_identity_list.py +++ b/library/k8s_v1_identity_list.py @@ -47,6 +47,16 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1_image.py b/library/k8s_v1_image.py index 57559ebd..c0aad79b 100644 --- a/library/k8s_v1_image.py +++ b/library/k8s_v1_image.py @@ -89,7 +89,6 @@ options: although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - required: true namespace: description: - Namespace defines the space within each name must be unique. An empty namespace @@ -99,10 +98,20 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict signatures: description: - Signatures holds all signatures of the image. type: list + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1_image_list.py b/library/k8s_v1_image_list.py index bd73aa38..a8b1d57d 100644 --- a/library/k8s_v1_image_list.py +++ b/library/k8s_v1_image_list.py @@ -47,6 +47,16 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1_image_signature.py b/library/k8s_v1_image_signature.py index 9b8b715d..46f86eb4 100644 --- a/library/k8s_v1_image_signature.py +++ b/library/k8s_v1_image_signature.py @@ -95,7 +95,6 @@ options: although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - required: true namespace: description: - Namespace defines the space within each name must be unique. An empty namespace @@ -105,10 +104,20 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict signed_claims: description: - Contains claims from the signature. type: dict + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1_image_stream.py b/library/k8s_v1_image_stream.py index f630a9eb..f1f9bef1 100644 --- a/library/k8s_v1_image_stream.py +++ b/library/k8s_v1_image_stream.py @@ -56,7 +56,6 @@ options: although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - required: true namespace: description: - Namespace defines the space within each name must be unique. An empty namespace @@ -66,6 +65,11 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict spec_docker_image_repository: description: - DockerImageRepository is optional, if specified this stream is backed by a Docker @@ -78,6 +82,11 @@ options: aliases: - tags type: list + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1_image_stream_image.py b/library/k8s_v1_image_stream_image.py index 25a9813b..75be4de4 100644 --- a/library/k8s_v1_image_stream_image.py +++ b/library/k8s_v1_image_stream_image.py @@ -113,7 +113,6 @@ options: although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - required: true image_metadata_namespace: description: - Namespace defines the space within each name must be unique. An empty namespace @@ -147,7 +146,6 @@ options: although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - required: true namespace: description: - Namespace defines the space within each name must be unique. An empty namespace diff --git a/library/k8s_v1_image_stream_import.py b/library/k8s_v1_image_stream_import.py index 39e33e55..ab79e138 100644 --- a/library/k8s_v1_image_stream_import.py +++ b/library/k8s_v1_image_stream_import.py @@ -56,7 +56,6 @@ options: although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - required: true namespace: description: - Namespace defines the space within each name must be unique. An empty namespace diff --git a/library/k8s_v1_image_stream_list.py b/library/k8s_v1_image_stream_list.py index 5de53f0a..b9b75e7b 100644 --- a/library/k8s_v1_image_stream_list.py +++ b/library/k8s_v1_image_stream_list.py @@ -47,6 +47,16 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1_image_stream_mapping.py b/library/k8s_v1_image_stream_mapping.py index 31629dcd..4cfbabde 100644 --- a/library/k8s_v1_image_stream_mapping.py +++ b/library/k8s_v1_image_stream_mapping.py @@ -113,7 +113,6 @@ options: although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - required: true image_metadata_namespace: description: - Namespace defines the space within each name must be unique. An empty namespace @@ -147,7 +146,6 @@ options: although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - required: true namespace: description: - Namespace defines the space within each name must be unique. An empty namespace diff --git a/library/k8s_v1_image_stream_tag.py b/library/k8s_v1_image_stream_tag.py index 46b39bc3..6a274fe5 100644 --- a/library/k8s_v1_image_stream_tag.py +++ b/library/k8s_v1_image_stream_tag.py @@ -123,7 +123,6 @@ options: although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - required: true image_metadata_namespace: description: - Namespace defines the space within each name must be unique. An empty namespace @@ -157,7 +156,6 @@ options: although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - required: true namespace: description: - Namespace defines the space within each name must be unique. An empty namespace @@ -167,6 +165,16 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1_image_stream_tag_list.py b/library/k8s_v1_image_stream_tag_list.py index 6f8c8cbc..b46bcfe5 100644 --- a/library/k8s_v1_image_stream_tag_list.py +++ b/library/k8s_v1_image_stream_tag_list.py @@ -47,6 +47,16 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1_job.py b/library/k8s_v1_job.py index 673715c9..110d0678 100644 --- a/library/k8s_v1_job.py +++ b/library/k8s_v1_job.py @@ -56,7 +56,6 @@ options: although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - required: true namespace: description: - Namespace defines the space within each name must be unique. An empty namespace @@ -66,6 +65,11 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict spec_active_deadline_seconds: description: - Optional duration in seconds relative to the startTime that the job may be active @@ -120,62 +124,6 @@ options: aliases: - selector_match_labels type: dict - spec_template_active_deadline_seconds: - description: - - Optional duration in seconds the pod may be active on the node relative to StartTime - before the system will actively try to mark it failed and kill associated containers. - Value must be a positive integer. - aliases: - - active_deadline_seconds - type: int - spec_template_containers: - description: - - List of containers belonging to the pod. Containers cannot currently be added - or removed. There must be at least one container in a Pod. Cannot be updated. - aliases: - - containers - type: list - spec_template_dns_policy: - description: - - Set DNS policy for containers within the pod. One of 'ClusterFirst' or 'Default'. - Defaults to "ClusterFirst". - aliases: - - dns_policy - spec_template_host_ipc: - description: - - "Use the host's ipc namespace. Optional: Default to false." - aliases: - - host_ipc - type: bool - spec_template_host_network: - description: - - Host networking requested for this pod. Use the host's network namespace. If - this option is set, the ports that will be used must be specified. Default to - false. - aliases: - - host_network - type: bool - spec_template_host_pid: - description: - - "Use the host's pid namespace. Optional: Default to false." - aliases: - - host_pid - type: bool - spec_template_hostname: - description: - - Specifies the hostname of the Pod If not specified, the pod's hostname will - be set to a system-defined value. - aliases: - - hostname - spec_template_image_pull_secrets: - description: - - ImagePullSecrets is an optional list of references to secrets in the same namespace - to use for pulling any of the images used by this PodSpec. If specified, these - secrets will be passed to individual puller implementations for them to use. - For example, in the case of docker, only DockerConfig type secrets are honored. - aliases: - - image_pull_secrets - type: list spec_template_metadata_annotations: description: - Annotations is an unstructured key value map stored with a resource that may @@ -193,21 +141,76 @@ options: although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - required: true spec_template_metadata_namespace: description: - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. - spec_template_node_name: + spec_template_spec_active_deadline_seconds: + description: + - Optional duration in seconds the pod may be active on the node relative to StartTime + before the system will actively try to mark it failed and kill associated containers. + Value must be a positive integer. + aliases: + - active_deadline_seconds + type: int + spec_template_spec_containers: + description: + - List of containers belonging to the pod. Containers cannot currently be added + or removed. There must be at least one container in a Pod. Cannot be updated. + aliases: + - containers + type: list + spec_template_spec_dns_policy: + description: + - Set DNS policy for containers within the pod. One of 'ClusterFirst' or 'Default'. + Defaults to "ClusterFirst". + aliases: + - dns_policy + spec_template_spec_host_ipc: + description: + - "Use the host's ipc namespace. Optional: Default to false." + aliases: + - host_ipc + type: bool + spec_template_spec_host_network: + description: + - Host networking requested for this pod. Use the host's network namespace. If + this option is set, the ports that will be used must be specified. Default to + false. + aliases: + - host_network + type: bool + spec_template_spec_host_pid: + description: + - "Use the host's pid namespace. Optional: Default to false." + aliases: + - host_pid + type: bool + spec_template_spec_hostname: + description: + - Specifies the hostname of the Pod If not specified, the pod's hostname will + be set to a system-defined value. + aliases: + - hostname + spec_template_spec_image_pull_secrets: + description: + - ImagePullSecrets is an optional list of references to secrets in the same namespace + to use for pulling any of the images used by this PodSpec. If specified, these + secrets will be passed to individual puller implementations for them to use. + For example, in the case of docker, only DockerConfig type secrets are honored. + aliases: + - image_pull_secrets + type: list + spec_template_spec_node_name: description: - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. aliases: - node_name - spec_template_node_selector: + spec_template_spec_node_selector: description: - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that @@ -215,13 +218,13 @@ options: aliases: - node_selector type: dict - spec_template_restart_policy: + spec_template_spec_restart_policy: description: - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. aliases: - restart_policy - spec_template_security_context_fs_group: + spec_template_spec_security_context_fs_group: description: - "A special supplemental group that applies to all containers in a pod. Some\ \ volume types allow the Kubelet to change the ownership of that volume to be\ @@ -232,7 +235,7 @@ options: aliases: - security_context_fs_group type: int - spec_template_security_context_run_as_non_root: + spec_template_spec_security_context_run_as_non_root: description: - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) @@ -242,7 +245,7 @@ options: aliases: - security_context_run_as_non_root type: bool - spec_template_security_context_run_as_user: + spec_template_spec_security_context_run_as_user: description: - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set @@ -251,27 +254,27 @@ options: aliases: - security_context_run_as_user type: int - spec_template_security_context_se_linux_options_level: + spec_template_spec_security_context_se_linux_options_level: description: - Level is SELinux level label that applies to the container. aliases: - security_context_se_linux_options_level - spec_template_security_context_se_linux_options_role: + spec_template_spec_security_context_se_linux_options_role: description: - Role is a SELinux role label that applies to the container. aliases: - security_context_se_linux_options_role - spec_template_security_context_se_linux_options_type: + spec_template_spec_security_context_se_linux_options_type: description: - Type is a SELinux type label that applies to the container. aliases: - security_context_se_linux_options_type - spec_template_security_context_se_linux_options_user: + spec_template_spec_security_context_se_linux_options_user: description: - User is a SELinux user label that applies to the container. aliases: - security_context_se_linux_options_user - spec_template_security_context_supplemental_groups: + spec_template_spec_security_context_supplemental_groups: description: - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any @@ -279,25 +282,25 @@ options: aliases: - security_context_supplemental_groups type: list - spec_template_service_account: + spec_template_spec_service_account: description: - 'DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead.' aliases: - service_account - spec_template_service_account_name: + spec_template_spec_service_account_name: description: - ServiceAccountName is the name of the ServiceAccount to use to run this pod. aliases: - service_account_name - spec_template_subdomain: + spec_template_spec_subdomain: description: - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. aliases: - subdomain - spec_template_termination_grace_period_seconds: + spec_template_spec_termination_grace_period_seconds: description: - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates @@ -309,12 +312,17 @@ options: aliases: - termination_grace_period_seconds type: int - spec_template_volumes: + spec_template_spec_volumes: description: - List of volumes that can be mounted by containers belonging to the pod. aliases: - volumes type: list + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1_job_list.py b/library/k8s_v1_job_list.py index fdf2b122..af86821c 100644 --- a/library/k8s_v1_job_list.py +++ b/library/k8s_v1_job_list.py @@ -47,6 +47,16 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1_limit_range.py b/library/k8s_v1_limit_range.py index f2ebabcb..d3816d1a 100644 --- a/library/k8s_v1_limit_range.py +++ b/library/k8s_v1_limit_range.py @@ -56,7 +56,6 @@ options: although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - required: true namespace: description: - Namespace defines the space within each name must be unique. An empty namespace @@ -66,12 +65,22 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict spec_limits: description: - Limits is the list of LimitRangeItem objects that are enforced. aliases: - limits type: list + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1_limit_range_list.py b/library/k8s_v1_limit_range_list.py index 399b4e47..87d389c4 100644 --- a/library/k8s_v1_limit_range_list.py +++ b/library/k8s_v1_limit_range_list.py @@ -47,6 +47,16 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1_namespace.py b/library/k8s_v1_namespace.py index 0bba39a0..c21d63cd 100644 --- a/library/k8s_v1_namespace.py +++ b/library/k8s_v1_namespace.py @@ -56,7 +56,6 @@ options: although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - required: true namespace: description: - Namespace defines the space within each name must be unique. An empty namespace @@ -66,6 +65,11 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict spec_finalizers: description: - Finalizers is an opaque list of values that must be empty to permanently remove @@ -73,6 +77,11 @@ options: aliases: - finalizers type: list + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1_namespace_list.py b/library/k8s_v1_namespace_list.py index 2dd2b935..f423db86 100644 --- a/library/k8s_v1_namespace_list.py +++ b/library/k8s_v1_namespace_list.py @@ -47,6 +47,16 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1_net_namespace.py b/library/k8s_v1_net_namespace.py index fdc350dc..b9d2da66 100644 --- a/library/k8s_v1_net_namespace.py +++ b/library/k8s_v1_net_namespace.py @@ -56,7 +56,6 @@ options: although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - required: true namespace: description: - Namespace defines the space within each name must be unique. An empty namespace @@ -75,6 +74,16 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1_net_namespace_list.py b/library/k8s_v1_net_namespace_list.py index 68941094..8a953baa 100644 --- a/library/k8s_v1_net_namespace_list.py +++ b/library/k8s_v1_net_namespace_list.py @@ -47,6 +47,16 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1_node.py b/library/k8s_v1_node.py index 02cb6059..1e947e9f 100644 --- a/library/k8s_v1_node.py +++ b/library/k8s_v1_node.py @@ -56,7 +56,6 @@ options: although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - required: true namespace: description: - Namespace defines the space within each name must be unique. An empty namespace @@ -66,6 +65,11 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict spec_external_id: description: - External ID of the node assigned by some machine database (e.g. a cloud provider). @@ -89,6 +93,11 @@ options: aliases: - unschedulable type: bool + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1_node_list.py b/library/k8s_v1_node_list.py index 09fb3b69..c5934234 100644 --- a/library/k8s_v1_node_list.py +++ b/library/k8s_v1_node_list.py @@ -47,6 +47,16 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1_o_auth_access_token.py b/library/k8s_v1_o_auth_access_token.py index 71e72558..15923520 100644 --- a/library/k8s_v1_o_auth_access_token.py +++ b/library/k8s_v1_o_auth_access_token.py @@ -66,7 +66,6 @@ options: although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - required: true namespace: description: - Namespace defines the space within each name must be unique. An empty namespace @@ -82,10 +81,20 @@ options: refresh_token: description: - RefreshToken is the value by which this token can be renewed. Can be blank. + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict scopes: description: - Scopes is an array of the requested scopes. type: list + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1_o_auth_access_token_list.py b/library/k8s_v1_o_auth_access_token_list.py index 7b5820d2..2f938f61 100644 --- a/library/k8s_v1_o_auth_access_token_list.py +++ b/library/k8s_v1_o_auth_access_token_list.py @@ -47,6 +47,16 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1_o_auth_authorize_token.py b/library/k8s_v1_o_auth_authorize_token.py index e1965263..c9809508 100644 --- a/library/k8s_v1_o_auth_authorize_token.py +++ b/library/k8s_v1_o_auth_authorize_token.py @@ -71,7 +71,6 @@ options: although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - required: true namespace: description: - Namespace defines the space within each name must be unique. An empty namespace @@ -84,10 +83,20 @@ options: redirect_uri: description: - RedirectURI is the redirection associated with the token. + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict scopes: description: - Scopes is an array of the requested scopes. type: list + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1_o_auth_authorize_token_list.py b/library/k8s_v1_o_auth_authorize_token_list.py index a3dedc4a..44d9e0cc 100644 --- a/library/k8s_v1_o_auth_authorize_token_list.py +++ b/library/k8s_v1_o_auth_authorize_token_list.py @@ -47,6 +47,16 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1_o_auth_client.py b/library/k8s_v1_o_auth_client.py index 0a983009..f0ea734e 100644 --- a/library/k8s_v1_o_auth_client.py +++ b/library/k8s_v1_o_auth_client.py @@ -69,7 +69,6 @@ options: although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - required: true namespace: description: - Namespace defines the space within each name must be unique. An empty namespace @@ -83,6 +82,11 @@ options: description: - RedirectURIs is the valid redirection URIs associated with a client type: list + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict respond_with_challenges: description: - RespondWithChallenges indicates whether the client wants authentication needed @@ -97,6 +101,11 @@ options: secret: description: - Secret is the unique secret associated with a client + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1_o_auth_client_authorization.py b/library/k8s_v1_o_auth_client_authorization.py index a66ecf29..467cc192 100644 --- a/library/k8s_v1_o_auth_client_authorization.py +++ b/library/k8s_v1_o_auth_client_authorization.py @@ -59,7 +59,6 @@ options: although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - required: true namespace: description: - Namespace defines the space within each name must be unique. An empty namespace @@ -69,10 +68,20 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict scopes: description: - Scopes is an array of the granted scopes. type: list + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1_o_auth_client_authorization_list.py b/library/k8s_v1_o_auth_client_authorization_list.py index bf507236..c779b6f9 100644 --- a/library/k8s_v1_o_auth_client_authorization_list.py +++ b/library/k8s_v1_o_auth_client_authorization_list.py @@ -47,6 +47,16 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1_o_auth_client_list.py b/library/k8s_v1_o_auth_client_list.py index be18dd8f..f8ef10ff 100644 --- a/library/k8s_v1_o_auth_client_list.py +++ b/library/k8s_v1_o_auth_client_list.py @@ -47,6 +47,16 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1_persistent_volume.py b/library/k8s_v1_persistent_volume.py index a57ce7af..fd49bfba 100644 --- a/library/k8s_v1_persistent_volume.py +++ b/library/k8s_v1_persistent_volume.py @@ -56,7 +56,6 @@ options: although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - required: true namespace: description: - Namespace defines the space within each name must be unique. An empty namespace @@ -66,6 +65,11 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict spec_access_modes: description: - AccessModes contains all ways the volume can be mounted. @@ -515,6 +519,11 @@ options: - Path that identifies vSphere volume vmdk aliases: - vsphere_volume_volume_path + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1_persistent_volume_claim.py b/library/k8s_v1_persistent_volume_claim.py index f3cb7605..feed1c1a 100644 --- a/library/k8s_v1_persistent_volume_claim.py +++ b/library/k8s_v1_persistent_volume_claim.py @@ -56,7 +56,6 @@ options: although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - required: true namespace: description: - Namespace defines the space within each name must be unique. An empty namespace @@ -66,6 +65,11 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict spec_access_modes: description: - AccessModes contains the desired access modes the volume should have. @@ -107,6 +111,11 @@ options: - VolumeName is the binding reference to the PersistentVolume backing this claim. aliases: - volume_name + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1_persistent_volume_claim_list.py b/library/k8s_v1_persistent_volume_claim_list.py index 20092e65..aab52e81 100644 --- a/library/k8s_v1_persistent_volume_claim_list.py +++ b/library/k8s_v1_persistent_volume_claim_list.py @@ -47,6 +47,16 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1_persistent_volume_list.py b/library/k8s_v1_persistent_volume_list.py index 8bea1a38..5eb62a6a 100644 --- a/library/k8s_v1_persistent_volume_list.py +++ b/library/k8s_v1_persistent_volume_list.py @@ -47,6 +47,16 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1_pod.py b/library/k8s_v1_pod.py index d62db0e7..0c62d218 100644 --- a/library/k8s_v1_pod.py +++ b/library/k8s_v1_pod.py @@ -56,7 +56,6 @@ options: although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - required: true namespace: description: - Namespace defines the space within each name must be unique. An empty namespace @@ -66,6 +65,11 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict spec_active_deadline_seconds: description: - Optional duration in seconds the pod may be active on the node relative to StartTime @@ -237,6 +241,11 @@ options: aliases: - volumes type: list + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1_pod_list.py b/library/k8s_v1_pod_list.py index 3bad099f..f067fb2e 100644 --- a/library/k8s_v1_pod_list.py +++ b/library/k8s_v1_pod_list.py @@ -47,6 +47,16 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1_pod_security_policy_review.py b/library/k8s_v1_pod_security_policy_review.py index ec3de153..621541e2 100644 --- a/library/k8s_v1_pod_security_policy_review.py +++ b/library/k8s_v1_pod_security_policy_review.py @@ -51,62 +51,6 @@ options: aliases: - service_account_names type: list - spec_template_active_deadline_seconds: - description: - - Optional duration in seconds the pod may be active on the node relative to StartTime - before the system will actively try to mark it failed and kill associated containers. - Value must be a positive integer. - aliases: - - active_deadline_seconds - type: int - spec_template_containers: - description: - - List of containers belonging to the pod. Containers cannot currently be added - or removed. There must be at least one container in a Pod. Cannot be updated. - aliases: - - containers - type: list - spec_template_dns_policy: - description: - - Set DNS policy for containers within the pod. One of 'ClusterFirst' or 'Default'. - Defaults to "ClusterFirst". - aliases: - - dns_policy - spec_template_host_ipc: - description: - - "Use the host's ipc namespace. Optional: Default to false." - aliases: - - host_ipc - type: bool - spec_template_host_network: - description: - - Host networking requested for this pod. Use the host's network namespace. If - this option is set, the ports that will be used must be specified. Default to - false. - aliases: - - host_network - type: bool - spec_template_host_pid: - description: - - "Use the host's pid namespace. Optional: Default to false." - aliases: - - host_pid - type: bool - spec_template_hostname: - description: - - Specifies the hostname of the Pod If not specified, the pod's hostname will - be set to a system-defined value. - aliases: - - hostname - spec_template_image_pull_secrets: - description: - - ImagePullSecrets is an optional list of references to secrets in the same namespace - to use for pulling any of the images used by this PodSpec. If specified, these - secrets will be passed to individual puller implementations for them to use. - For example, in the case of docker, only DockerConfig type secrets are honored. - aliases: - - image_pull_secrets - type: list spec_template_metadata_annotations: description: - Annotations is an unstructured key value map stored with a resource that may @@ -124,21 +68,76 @@ options: although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - required: true spec_template_metadata_namespace: description: - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. - spec_template_node_name: + spec_template_spec_active_deadline_seconds: + description: + - Optional duration in seconds the pod may be active on the node relative to StartTime + before the system will actively try to mark it failed and kill associated containers. + Value must be a positive integer. + aliases: + - active_deadline_seconds + type: int + spec_template_spec_containers: + description: + - List of containers belonging to the pod. Containers cannot currently be added + or removed. There must be at least one container in a Pod. Cannot be updated. + aliases: + - containers + type: list + spec_template_spec_dns_policy: + description: + - Set DNS policy for containers within the pod. One of 'ClusterFirst' or 'Default'. + Defaults to "ClusterFirst". + aliases: + - dns_policy + spec_template_spec_host_ipc: + description: + - "Use the host's ipc namespace. Optional: Default to false." + aliases: + - host_ipc + type: bool + spec_template_spec_host_network: + description: + - Host networking requested for this pod. Use the host's network namespace. If + this option is set, the ports that will be used must be specified. Default to + false. + aliases: + - host_network + type: bool + spec_template_spec_host_pid: + description: + - "Use the host's pid namespace. Optional: Default to false." + aliases: + - host_pid + type: bool + spec_template_spec_hostname: + description: + - Specifies the hostname of the Pod If not specified, the pod's hostname will + be set to a system-defined value. + aliases: + - hostname + spec_template_spec_image_pull_secrets: + description: + - ImagePullSecrets is an optional list of references to secrets in the same namespace + to use for pulling any of the images used by this PodSpec. If specified, these + secrets will be passed to individual puller implementations for them to use. + For example, in the case of docker, only DockerConfig type secrets are honored. + aliases: + - image_pull_secrets + type: list + spec_template_spec_node_name: description: - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. aliases: - node_name - spec_template_node_selector: + spec_template_spec_node_selector: description: - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that @@ -146,13 +145,13 @@ options: aliases: - node_selector type: dict - spec_template_restart_policy: + spec_template_spec_restart_policy: description: - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. aliases: - restart_policy - spec_template_security_context_fs_group: + spec_template_spec_security_context_fs_group: description: - "A special supplemental group that applies to all containers in a pod. Some\ \ volume types allow the Kubelet to change the ownership of that volume to be\ @@ -163,7 +162,7 @@ options: aliases: - security_context_fs_group type: int - spec_template_security_context_run_as_non_root: + spec_template_spec_security_context_run_as_non_root: description: - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) @@ -173,7 +172,7 @@ options: aliases: - security_context_run_as_non_root type: bool - spec_template_security_context_run_as_user: + spec_template_spec_security_context_run_as_user: description: - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set @@ -182,27 +181,27 @@ options: aliases: - security_context_run_as_user type: int - spec_template_security_context_se_linux_options_level: + spec_template_spec_security_context_se_linux_options_level: description: - Level is SELinux level label that applies to the container. aliases: - security_context_se_linux_options_level - spec_template_security_context_se_linux_options_role: + spec_template_spec_security_context_se_linux_options_role: description: - Role is a SELinux role label that applies to the container. aliases: - security_context_se_linux_options_role - spec_template_security_context_se_linux_options_type: + spec_template_spec_security_context_se_linux_options_type: description: - Type is a SELinux type label that applies to the container. aliases: - security_context_se_linux_options_type - spec_template_security_context_se_linux_options_user: + spec_template_spec_security_context_se_linux_options_user: description: - User is a SELinux user label that applies to the container. aliases: - security_context_se_linux_options_user - spec_template_security_context_supplemental_groups: + spec_template_spec_security_context_supplemental_groups: description: - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any @@ -210,25 +209,25 @@ options: aliases: - security_context_supplemental_groups type: list - spec_template_service_account: + spec_template_spec_service_account: description: - 'DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead.' aliases: - service_account - spec_template_service_account_name: + spec_template_spec_service_account_name: description: - ServiceAccountName is the name of the ServiceAccount to use to run this pod. aliases: - service_account_name - spec_template_subdomain: + spec_template_spec_subdomain: description: - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. aliases: - subdomain - spec_template_termination_grace_period_seconds: + spec_template_spec_termination_grace_period_seconds: description: - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates @@ -240,7 +239,7 @@ options: aliases: - termination_grace_period_seconds type: int - spec_template_volumes: + spec_template_spec_volumes: description: - List of volumes that can be mounted by containers belonging to the pod. aliases: 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 a1254bff..f41ca66c 100644 --- a/library/k8s_v1_pod_security_policy_self_subject_review.py +++ b/library/k8s_v1_pod_security_policy_self_subject_review.py @@ -42,62 +42,6 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). - spec_template_active_deadline_seconds: - description: - - Optional duration in seconds the pod may be active on the node relative to StartTime - before the system will actively try to mark it failed and kill associated containers. - Value must be a positive integer. - aliases: - - active_deadline_seconds - type: int - spec_template_containers: - description: - - List of containers belonging to the pod. Containers cannot currently be added - or removed. There must be at least one container in a Pod. Cannot be updated. - aliases: - - containers - type: list - spec_template_dns_policy: - description: - - Set DNS policy for containers within the pod. One of 'ClusterFirst' or 'Default'. - Defaults to "ClusterFirst". - aliases: - - dns_policy - spec_template_host_ipc: - description: - - "Use the host's ipc namespace. Optional: Default to false." - aliases: - - host_ipc - type: bool - spec_template_host_network: - description: - - Host networking requested for this pod. Use the host's network namespace. If - this option is set, the ports that will be used must be specified. Default to - false. - aliases: - - host_network - type: bool - spec_template_host_pid: - description: - - "Use the host's pid namespace. Optional: Default to false." - aliases: - - host_pid - type: bool - spec_template_hostname: - description: - - Specifies the hostname of the Pod If not specified, the pod's hostname will - be set to a system-defined value. - aliases: - - hostname - spec_template_image_pull_secrets: - description: - - ImagePullSecrets is an optional list of references to secrets in the same namespace - to use for pulling any of the images used by this PodSpec. If specified, these - secrets will be passed to individual puller implementations for them to use. - For example, in the case of docker, only DockerConfig type secrets are honored. - aliases: - - image_pull_secrets - type: list spec_template_metadata_annotations: description: - Annotations is an unstructured key value map stored with a resource that may @@ -115,21 +59,76 @@ options: although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - required: true spec_template_metadata_namespace: description: - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. - spec_template_node_name: + spec_template_spec_active_deadline_seconds: + description: + - Optional duration in seconds the pod may be active on the node relative to StartTime + before the system will actively try to mark it failed and kill associated containers. + Value must be a positive integer. + aliases: + - active_deadline_seconds + type: int + spec_template_spec_containers: + description: + - List of containers belonging to the pod. Containers cannot currently be added + or removed. There must be at least one container in a Pod. Cannot be updated. + aliases: + - containers + type: list + spec_template_spec_dns_policy: + description: + - Set DNS policy for containers within the pod. One of 'ClusterFirst' or 'Default'. + Defaults to "ClusterFirst". + aliases: + - dns_policy + spec_template_spec_host_ipc: + description: + - "Use the host's ipc namespace. Optional: Default to false." + aliases: + - host_ipc + type: bool + spec_template_spec_host_network: + description: + - Host networking requested for this pod. Use the host's network namespace. If + this option is set, the ports that will be used must be specified. Default to + false. + aliases: + - host_network + type: bool + spec_template_spec_host_pid: + description: + - "Use the host's pid namespace. Optional: Default to false." + aliases: + - host_pid + type: bool + spec_template_spec_hostname: + description: + - Specifies the hostname of the Pod If not specified, the pod's hostname will + be set to a system-defined value. + aliases: + - hostname + spec_template_spec_image_pull_secrets: + description: + - ImagePullSecrets is an optional list of references to secrets in the same namespace + to use for pulling any of the images used by this PodSpec. If specified, these + secrets will be passed to individual puller implementations for them to use. + For example, in the case of docker, only DockerConfig type secrets are honored. + aliases: + - image_pull_secrets + type: list + spec_template_spec_node_name: description: - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. aliases: - node_name - spec_template_node_selector: + spec_template_spec_node_selector: description: - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that @@ -137,13 +136,13 @@ options: aliases: - node_selector type: dict - spec_template_restart_policy: + spec_template_spec_restart_policy: description: - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. aliases: - restart_policy - spec_template_security_context_fs_group: + spec_template_spec_security_context_fs_group: description: - "A special supplemental group that applies to all containers in a pod. Some\ \ volume types allow the Kubelet to change the ownership of that volume to be\ @@ -154,7 +153,7 @@ options: aliases: - security_context_fs_group type: int - spec_template_security_context_run_as_non_root: + spec_template_spec_security_context_run_as_non_root: description: - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) @@ -164,7 +163,7 @@ options: aliases: - security_context_run_as_non_root type: bool - spec_template_security_context_run_as_user: + spec_template_spec_security_context_run_as_user: description: - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set @@ -173,27 +172,27 @@ options: aliases: - security_context_run_as_user type: int - spec_template_security_context_se_linux_options_level: + spec_template_spec_security_context_se_linux_options_level: description: - Level is SELinux level label that applies to the container. aliases: - security_context_se_linux_options_level - spec_template_security_context_se_linux_options_role: + spec_template_spec_security_context_se_linux_options_role: description: - Role is a SELinux role label that applies to the container. aliases: - security_context_se_linux_options_role - spec_template_security_context_se_linux_options_type: + spec_template_spec_security_context_se_linux_options_type: description: - Type is a SELinux type label that applies to the container. aliases: - security_context_se_linux_options_type - spec_template_security_context_se_linux_options_user: + spec_template_spec_security_context_se_linux_options_user: description: - User is a SELinux user label that applies to the container. aliases: - security_context_se_linux_options_user - spec_template_security_context_supplemental_groups: + spec_template_spec_security_context_supplemental_groups: description: - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any @@ -201,25 +200,25 @@ options: aliases: - security_context_supplemental_groups type: list - spec_template_service_account: + spec_template_spec_service_account: description: - 'DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead.' aliases: - service_account - spec_template_service_account_name: + spec_template_spec_service_account_name: description: - ServiceAccountName is the name of the ServiceAccount to use to run this pod. aliases: - service_account_name - spec_template_subdomain: + spec_template_spec_subdomain: description: - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. aliases: - subdomain - spec_template_termination_grace_period_seconds: + spec_template_spec_termination_grace_period_seconds: description: - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates @@ -231,7 +230,7 @@ options: aliases: - termination_grace_period_seconds type: int - spec_template_volumes: + spec_template_spec_volumes: description: - List of volumes that can be mounted by containers belonging to the pod. aliases: diff --git a/library/k8s_v1_pod_security_policy_subject_review.py b/library/k8s_v1_pod_security_policy_subject_review.py index 20517cc0..585bbbb6 100644 --- a/library/k8s_v1_pod_security_policy_subject_review.py +++ b/library/k8s_v1_pod_security_policy_subject_review.py @@ -48,62 +48,6 @@ options: aliases: - groups type: list - spec_template_active_deadline_seconds: - description: - - Optional duration in seconds the pod may be active on the node relative to StartTime - before the system will actively try to mark it failed and kill associated containers. - Value must be a positive integer. - aliases: - - active_deadline_seconds - type: int - spec_template_containers: - description: - - List of containers belonging to the pod. Containers cannot currently be added - or removed. There must be at least one container in a Pod. Cannot be updated. - aliases: - - containers - type: list - spec_template_dns_policy: - description: - - Set DNS policy for containers within the pod. One of 'ClusterFirst' or 'Default'. - Defaults to "ClusterFirst". - aliases: - - dns_policy - spec_template_host_ipc: - description: - - "Use the host's ipc namespace. Optional: Default to false." - aliases: - - host_ipc - type: bool - spec_template_host_network: - description: - - Host networking requested for this pod. Use the host's network namespace. If - this option is set, the ports that will be used must be specified. Default to - false. - aliases: - - host_network - type: bool - spec_template_host_pid: - description: - - "Use the host's pid namespace. Optional: Default to false." - aliases: - - host_pid - type: bool - spec_template_hostname: - description: - - Specifies the hostname of the Pod If not specified, the pod's hostname will - be set to a system-defined value. - aliases: - - hostname - spec_template_image_pull_secrets: - description: - - ImagePullSecrets is an optional list of references to secrets in the same namespace - to use for pulling any of the images used by this PodSpec. If specified, these - secrets will be passed to individual puller implementations for them to use. - For example, in the case of docker, only DockerConfig type secrets are honored. - aliases: - - image_pull_secrets - type: list spec_template_metadata_annotations: description: - Annotations is an unstructured key value map stored with a resource that may @@ -121,21 +65,76 @@ options: although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - required: true spec_template_metadata_namespace: description: - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. - spec_template_node_name: + spec_template_spec_active_deadline_seconds: + description: + - Optional duration in seconds the pod may be active on the node relative to StartTime + before the system will actively try to mark it failed and kill associated containers. + Value must be a positive integer. + aliases: + - active_deadline_seconds + type: int + spec_template_spec_containers: + description: + - List of containers belonging to the pod. Containers cannot currently be added + or removed. There must be at least one container in a Pod. Cannot be updated. + aliases: + - containers + type: list + spec_template_spec_dns_policy: + description: + - Set DNS policy for containers within the pod. One of 'ClusterFirst' or 'Default'. + Defaults to "ClusterFirst". + aliases: + - dns_policy + spec_template_spec_host_ipc: + description: + - "Use the host's ipc namespace. Optional: Default to false." + aliases: + - host_ipc + type: bool + spec_template_spec_host_network: + description: + - Host networking requested for this pod. Use the host's network namespace. If + this option is set, the ports that will be used must be specified. Default to + false. + aliases: + - host_network + type: bool + spec_template_spec_host_pid: + description: + - "Use the host's pid namespace. Optional: Default to false." + aliases: + - host_pid + type: bool + spec_template_spec_hostname: + description: + - Specifies the hostname of the Pod If not specified, the pod's hostname will + be set to a system-defined value. + aliases: + - hostname + spec_template_spec_image_pull_secrets: + description: + - ImagePullSecrets is an optional list of references to secrets in the same namespace + to use for pulling any of the images used by this PodSpec. If specified, these + secrets will be passed to individual puller implementations for them to use. + For example, in the case of docker, only DockerConfig type secrets are honored. + aliases: + - image_pull_secrets + type: list + spec_template_spec_node_name: description: - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. aliases: - node_name - spec_template_node_selector: + spec_template_spec_node_selector: description: - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that @@ -143,13 +142,13 @@ options: aliases: - node_selector type: dict - spec_template_restart_policy: + spec_template_spec_restart_policy: description: - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. aliases: - restart_policy - spec_template_security_context_fs_group: + spec_template_spec_security_context_fs_group: description: - "A special supplemental group that applies to all containers in a pod. Some\ \ volume types allow the Kubelet to change the ownership of that volume to be\ @@ -160,7 +159,7 @@ options: aliases: - security_context_fs_group type: int - spec_template_security_context_run_as_non_root: + spec_template_spec_security_context_run_as_non_root: description: - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) @@ -170,7 +169,7 @@ options: aliases: - security_context_run_as_non_root type: bool - spec_template_security_context_run_as_user: + spec_template_spec_security_context_run_as_user: description: - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set @@ -179,27 +178,27 @@ options: aliases: - security_context_run_as_user type: int - spec_template_security_context_se_linux_options_level: + spec_template_spec_security_context_se_linux_options_level: description: - Level is SELinux level label that applies to the container. aliases: - security_context_se_linux_options_level - spec_template_security_context_se_linux_options_role: + spec_template_spec_security_context_se_linux_options_role: description: - Role is a SELinux role label that applies to the container. aliases: - security_context_se_linux_options_role - spec_template_security_context_se_linux_options_type: + spec_template_spec_security_context_se_linux_options_type: description: - Type is a SELinux type label that applies to the container. aliases: - security_context_se_linux_options_type - spec_template_security_context_se_linux_options_user: + spec_template_spec_security_context_se_linux_options_user: description: - User is a SELinux user label that applies to the container. aliases: - security_context_se_linux_options_user - spec_template_security_context_supplemental_groups: + spec_template_spec_security_context_supplemental_groups: description: - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any @@ -207,25 +206,25 @@ options: aliases: - security_context_supplemental_groups type: list - spec_template_service_account: + spec_template_spec_service_account: description: - 'DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead.' aliases: - service_account - spec_template_service_account_name: + spec_template_spec_service_account_name: description: - ServiceAccountName is the name of the ServiceAccount to use to run this pod. aliases: - service_account_name - spec_template_subdomain: + spec_template_spec_subdomain: description: - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. aliases: - subdomain - spec_template_termination_grace_period_seconds: + spec_template_spec_termination_grace_period_seconds: description: - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates @@ -237,7 +236,7 @@ options: aliases: - termination_grace_period_seconds type: int - spec_template_volumes: + spec_template_spec_volumes: description: - List of volumes that can be mounted by containers belonging to the pod. aliases: diff --git a/library/k8s_v1_pod_template.py b/library/k8s_v1_pod_template.py index 296ab3a7..f630d04e 100644 --- a/library/k8s_v1_pod_template.py +++ b/library/k8s_v1_pod_template.py @@ -56,7 +56,6 @@ options: although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - required: true namespace: description: - Namespace defines the space within each name must be unique. An empty namespace @@ -66,6 +65,16 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. @@ -99,7 +108,6 @@ options: although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - required: true template_metadata_namespace: description: - Namespace defines the space within each name must be unique. An empty namespace diff --git a/library/k8s_v1_pod_template_list.py b/library/k8s_v1_pod_template_list.py index 6cb17fda..3e5eadd9 100644 --- a/library/k8s_v1_pod_template_list.py +++ b/library/k8s_v1_pod_template_list.py @@ -47,6 +47,16 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1_policy.py b/library/k8s_v1_policy.py index a403dd42..b4d46a99 100644 --- a/library/k8s_v1_policy.py +++ b/library/k8s_v1_policy.py @@ -56,7 +56,6 @@ options: although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - required: true namespace: description: - Namespace defines the space within each name must be unique. An empty namespace @@ -66,10 +65,20 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict roles: description: - Roles holds all the Roles held by this Policy, mapped by Role.Name type: list + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1_policy_binding.py b/library/k8s_v1_policy_binding.py index 1bc6c345..fbea592c 100644 --- a/library/k8s_v1_policy_binding.py +++ b/library/k8s_v1_policy_binding.py @@ -56,7 +56,6 @@ options: although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - required: true namespace: description: - Namespace defines the space within each name must be unique. An empty namespace @@ -107,11 +106,21 @@ options: - UID of the referent. aliases: - uid + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict role_bindings: description: - RoleBindings holds all the RoleBindings held by this PolicyBinding, mapped by RoleBinding.Name type: list + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1_policy_binding_list.py b/library/k8s_v1_policy_binding_list.py index 47cb5078..e56b2495 100644 --- a/library/k8s_v1_policy_binding_list.py +++ b/library/k8s_v1_policy_binding_list.py @@ -47,6 +47,16 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1_policy_list.py b/library/k8s_v1_policy_list.py index 1d1bea5d..6acf3783 100644 --- a/library/k8s_v1_policy_list.py +++ b/library/k8s_v1_policy_list.py @@ -47,6 +47,16 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1_project.py b/library/k8s_v1_project.py index db9be926..651d3dc4 100644 --- a/library/k8s_v1_project.py +++ b/library/k8s_v1_project.py @@ -62,7 +62,6 @@ options: although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - required: true namespace: description: - Namespace defines the space within each name must be unique. An empty namespace @@ -72,6 +71,11 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict spec_finalizers: description: - Finalizers is an opaque list of values that must be empty to permanently remove @@ -79,6 +83,11 @@ options: aliases: - finalizers type: list + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1_project_list.py b/library/k8s_v1_project_list.py index 7fa18796..ca5bcd24 100644 --- a/library/k8s_v1_project_list.py +++ b/library/k8s_v1_project_list.py @@ -47,6 +47,16 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1_replication_controller.py b/library/k8s_v1_replication_controller.py index e231d999..7467fe86 100644 --- a/library/k8s_v1_replication_controller.py +++ b/library/k8s_v1_replication_controller.py @@ -56,7 +56,6 @@ options: although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - required: true namespace: description: - Namespace defines the space within each name must be unique. An empty namespace @@ -66,6 +65,11 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict spec_min_ready_seconds: description: - Minimum number of seconds for which a newly created pod should be ready without @@ -90,62 +94,6 @@ options: aliases: - selector type: dict - spec_template_active_deadline_seconds: - description: - - Optional duration in seconds the pod may be active on the node relative to StartTime - before the system will actively try to mark it failed and kill associated containers. - Value must be a positive integer. - aliases: - - active_deadline_seconds - type: int - spec_template_containers: - description: - - List of containers belonging to the pod. Containers cannot currently be added - or removed. There must be at least one container in a Pod. Cannot be updated. - aliases: - - containers - type: list - spec_template_dns_policy: - description: - - Set DNS policy for containers within the pod. One of 'ClusterFirst' or 'Default'. - Defaults to "ClusterFirst". - aliases: - - dns_policy - spec_template_host_ipc: - description: - - "Use the host's ipc namespace. Optional: Default to false." - aliases: - - host_ipc - type: bool - spec_template_host_network: - description: - - Host networking requested for this pod. Use the host's network namespace. If - this option is set, the ports that will be used must be specified. Default to - false. - aliases: - - host_network - type: bool - spec_template_host_pid: - description: - - "Use the host's pid namespace. Optional: Default to false." - aliases: - - host_pid - type: bool - spec_template_hostname: - description: - - Specifies the hostname of the Pod If not specified, the pod's hostname will - be set to a system-defined value. - aliases: - - hostname - spec_template_image_pull_secrets: - description: - - ImagePullSecrets is an optional list of references to secrets in the same namespace - to use for pulling any of the images used by this PodSpec. If specified, these - secrets will be passed to individual puller implementations for them to use. - For example, in the case of docker, only DockerConfig type secrets are honored. - aliases: - - image_pull_secrets - type: list spec_template_metadata_annotations: description: - Annotations is an unstructured key value map stored with a resource that may @@ -163,21 +111,76 @@ options: although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - required: true spec_template_metadata_namespace: description: - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. - spec_template_node_name: + spec_template_spec_active_deadline_seconds: + description: + - Optional duration in seconds the pod may be active on the node relative to StartTime + before the system will actively try to mark it failed and kill associated containers. + Value must be a positive integer. + aliases: + - active_deadline_seconds + type: int + spec_template_spec_containers: + description: + - List of containers belonging to the pod. Containers cannot currently be added + or removed. There must be at least one container in a Pod. Cannot be updated. + aliases: + - containers + type: list + spec_template_spec_dns_policy: + description: + - Set DNS policy for containers within the pod. One of 'ClusterFirst' or 'Default'. + Defaults to "ClusterFirst". + aliases: + - dns_policy + spec_template_spec_host_ipc: + description: + - "Use the host's ipc namespace. Optional: Default to false." + aliases: + - host_ipc + type: bool + spec_template_spec_host_network: + description: + - Host networking requested for this pod. Use the host's network namespace. If + this option is set, the ports that will be used must be specified. Default to + false. + aliases: + - host_network + type: bool + spec_template_spec_host_pid: + description: + - "Use the host's pid namespace. Optional: Default to false." + aliases: + - host_pid + type: bool + spec_template_spec_hostname: + description: + - Specifies the hostname of the Pod If not specified, the pod's hostname will + be set to a system-defined value. + aliases: + - hostname + spec_template_spec_image_pull_secrets: + description: + - ImagePullSecrets is an optional list of references to secrets in the same namespace + to use for pulling any of the images used by this PodSpec. If specified, these + secrets will be passed to individual puller implementations for them to use. + For example, in the case of docker, only DockerConfig type secrets are honored. + aliases: + - image_pull_secrets + type: list + spec_template_spec_node_name: description: - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. aliases: - node_name - spec_template_node_selector: + spec_template_spec_node_selector: description: - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that @@ -185,13 +188,13 @@ options: aliases: - node_selector type: dict - spec_template_restart_policy: + spec_template_spec_restart_policy: description: - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. aliases: - restart_policy - spec_template_security_context_fs_group: + spec_template_spec_security_context_fs_group: description: - "A special supplemental group that applies to all containers in a pod. Some\ \ volume types allow the Kubelet to change the ownership of that volume to be\ @@ -202,7 +205,7 @@ options: aliases: - security_context_fs_group type: int - spec_template_security_context_run_as_non_root: + spec_template_spec_security_context_run_as_non_root: description: - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) @@ -212,7 +215,7 @@ options: aliases: - security_context_run_as_non_root type: bool - spec_template_security_context_run_as_user: + spec_template_spec_security_context_run_as_user: description: - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set @@ -221,27 +224,27 @@ options: aliases: - security_context_run_as_user type: int - spec_template_security_context_se_linux_options_level: + spec_template_spec_security_context_se_linux_options_level: description: - Level is SELinux level label that applies to the container. aliases: - security_context_se_linux_options_level - spec_template_security_context_se_linux_options_role: + spec_template_spec_security_context_se_linux_options_role: description: - Role is a SELinux role label that applies to the container. aliases: - security_context_se_linux_options_role - spec_template_security_context_se_linux_options_type: + spec_template_spec_security_context_se_linux_options_type: description: - Type is a SELinux type label that applies to the container. aliases: - security_context_se_linux_options_type - spec_template_security_context_se_linux_options_user: + spec_template_spec_security_context_se_linux_options_user: description: - User is a SELinux user label that applies to the container. aliases: - security_context_se_linux_options_user - spec_template_security_context_supplemental_groups: + spec_template_spec_security_context_supplemental_groups: description: - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any @@ -249,25 +252,25 @@ options: aliases: - security_context_supplemental_groups type: list - spec_template_service_account: + spec_template_spec_service_account: description: - 'DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead.' aliases: - service_account - spec_template_service_account_name: + spec_template_spec_service_account_name: description: - ServiceAccountName is the name of the ServiceAccount to use to run this pod. aliases: - service_account_name - spec_template_subdomain: + spec_template_spec_subdomain: description: - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. aliases: - subdomain - spec_template_termination_grace_period_seconds: + spec_template_spec_termination_grace_period_seconds: description: - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates @@ -279,12 +282,17 @@ options: aliases: - termination_grace_period_seconds type: int - spec_template_volumes: + spec_template_spec_volumes: description: - List of volumes that can be mounted by containers belonging to the pod. aliases: - volumes type: list + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1_replication_controller_list.py b/library/k8s_v1_replication_controller_list.py index ad6cfb2c..5226b9e6 100644 --- a/library/k8s_v1_replication_controller_list.py +++ b/library/k8s_v1_replication_controller_list.py @@ -47,6 +47,16 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1_resource_quota.py b/library/k8s_v1_resource_quota.py index af89dc60..5051eebe 100644 --- a/library/k8s_v1_resource_quota.py +++ b/library/k8s_v1_resource_quota.py @@ -56,7 +56,6 @@ options: although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - required: true namespace: description: - Namespace defines the space within each name must be unique. An empty namespace @@ -66,6 +65,11 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict spec_hard: description: - Hard is the set of desired hard limits for each named resource. @@ -79,6 +83,11 @@ options: aliases: - scopes type: list + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1_resource_quota_list.py b/library/k8s_v1_resource_quota_list.py index 8a180bf9..bf73a8b2 100644 --- a/library/k8s_v1_resource_quota_list.py +++ b/library/k8s_v1_resource_quota_list.py @@ -47,6 +47,16 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1_role.py b/library/k8s_v1_role.py index 612cec86..92b3b266 100644 --- a/library/k8s_v1_role.py +++ b/library/k8s_v1_role.py @@ -56,7 +56,6 @@ options: although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - required: true namespace: description: - Namespace defines the space within each name must be unique. An empty namespace @@ -66,10 +65,20 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict rules: description: - Rules holds all the PolicyRules for this Role type: list + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1_role_binding.py b/library/k8s_v1_role_binding.py index 0185d616..80914c76 100644 --- a/library/k8s_v1_role_binding.py +++ b/library/k8s_v1_role_binding.py @@ -62,7 +62,6 @@ options: although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - required: true namespace: description: - Namespace defines the space within each name must be unique. An empty namespace @@ -72,6 +71,11 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict role_ref_api_version: description: - API version of the referent. @@ -113,6 +117,11 @@ options: - UID of the referent. aliases: - uid + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1_role_binding_list.py b/library/k8s_v1_role_binding_list.py index 24eff2b5..a7d9a34e 100644 --- a/library/k8s_v1_role_binding_list.py +++ b/library/k8s_v1_role_binding_list.py @@ -47,6 +47,16 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1_role_binding_restriction.py b/library/k8s_v1_role_binding_restriction.py index 6714d91f..f5ac5951 100644 --- a/library/k8s_v1_role_binding_restriction.py +++ b/library/k8s_v1_role_binding_restriction.py @@ -56,7 +56,6 @@ options: although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - required: true namespace: description: - Namespace defines the space within each name must be unique. An empty namespace @@ -66,6 +65,11 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict spec_grouprestriction_groups: description: - Groups is a list of groups used to match against an individual user's groups. @@ -110,6 +114,11 @@ options: aliases: - userrestriction_users type: list + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1_role_binding_restriction_list.py b/library/k8s_v1_role_binding_restriction_list.py index 062efc09..49456710 100644 --- a/library/k8s_v1_role_binding_restriction_list.py +++ b/library/k8s_v1_role_binding_restriction_list.py @@ -47,6 +47,16 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1_role_list.py b/library/k8s_v1_role_list.py index 96fc4d30..19ff3736 100644 --- a/library/k8s_v1_role_list.py +++ b/library/k8s_v1_role_list.py @@ -47,6 +47,16 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1_route.py b/library/k8s_v1_route.py index 0d11deb5..96143ad8 100644 --- a/library/k8s_v1_route.py +++ b/library/k8s_v1_route.py @@ -56,7 +56,6 @@ options: although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - required: true namespace: description: - Namespace defines the space within each name must be unique. An empty namespace @@ -66,6 +65,11 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict spec_alternate_backends: description: - alternateBackends is an extension of the 'to' field. If more than one service @@ -154,6 +158,11 @@ options: allowed. aliases: - wildcard_policy + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1_route_list.py b/library/k8s_v1_route_list.py index 4dcb77f5..0c5ed1b8 100644 --- a/library/k8s_v1_route_list.py +++ b/library/k8s_v1_route_list.py @@ -47,6 +47,16 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1_scale.py b/library/k8s_v1_scale.py index da363c8c..c93c0892 100644 --- a/library/k8s_v1_scale.py +++ b/library/k8s_v1_scale.py @@ -56,7 +56,6 @@ options: although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - required: true namespace: description: - Namespace defines the space within each name must be unique. An empty namespace diff --git a/library/k8s_v1_secret.py b/library/k8s_v1_secret.py index c32f9b3c..c4b93855 100644 --- a/library/k8s_v1_secret.py +++ b/library/k8s_v1_secret.py @@ -63,7 +63,6 @@ options: although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - required: true namespace: description: - Namespace defines the space within each name must be unique. An empty namespace @@ -73,6 +72,16 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1_secret_list.py b/library/k8s_v1_secret_list.py index 5427dc36..566b5bc3 100644 --- a/library/k8s_v1_secret_list.py +++ b/library/k8s_v1_secret_list.py @@ -47,6 +47,16 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1_security_context_constraints.py b/library/k8s_v1_security_context_constraints.py index 3e912893..76d0730d 100644 --- a/library/k8s_v1_security_context_constraints.py +++ b/library/k8s_v1_security_context_constraints.py @@ -111,7 +111,6 @@ options: although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - required: true namespace: description: - Namespace defines the space within each name must be unique. An empty namespace @@ -141,6 +140,11 @@ options: - RequiredDropCapabilities are the capabilities that will be dropped from the container. These are required to be dropped and cannot be added. type: list + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict run_as_user_type: description: - Type is the strategy that will dictate what RunAsUser is used in the SecurityContext. @@ -198,6 +202,11 @@ options: profiles. When used to generate a value for a pod the first non-wildcard profile will be used as the default. type: list + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1_security_context_constraints_list.py b/library/k8s_v1_security_context_constraints_list.py index 0d9d3a8e..811f1a4a 100644 --- a/library/k8s_v1_security_context_constraints_list.py +++ b/library/k8s_v1_security_context_constraints_list.py @@ -47,6 +47,16 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1_service.py b/library/k8s_v1_service.py index 1346340c..bed9e7b2 100644 --- a/library/k8s_v1_service.py +++ b/library/k8s_v1_service.py @@ -56,7 +56,6 @@ options: although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - required: true namespace: description: - Namespace defines the space within each name must be unique. An empty namespace @@ -66,6 +65,11 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict spec_cluster_ip: description: - clusterIP is the IP address of the service and is usually assigned randomly @@ -157,6 +161,11 @@ options: current cloud) which routes to the clusterIP. aliases: - type + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1_service_account.py b/library/k8s_v1_service_account.py index b0c2b3fd..458f6232 100644 --- a/library/k8s_v1_service_account.py +++ b/library/k8s_v1_service_account.py @@ -63,7 +63,6 @@ options: although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - required: true namespace: description: - Namespace defines the space within each name must be unique. An empty namespace @@ -73,11 +72,21 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict secrets: description: - Secrets is the list of secrets allowed to be used by pods running using this ServiceAccount. type: list + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1_service_account_list.py b/library/k8s_v1_service_account_list.py index 36c3e4e6..5844139f 100644 --- a/library/k8s_v1_service_account_list.py +++ b/library/k8s_v1_service_account_list.py @@ -47,6 +47,16 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1_service_list.py b/library/k8s_v1_service_list.py index cf0e7a12..a3750463 100644 --- a/library/k8s_v1_service_list.py +++ b/library/k8s_v1_service_list.py @@ -47,6 +47,16 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1_template.py b/library/k8s_v1_template.py index 7e6a79e2..70674dbb 100644 --- a/library/k8s_v1_template.py +++ b/library/k8s_v1_template.py @@ -63,7 +63,6 @@ options: although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - required: true namespace: description: - Namespace defines the space within each name must be unique. An empty namespace @@ -86,6 +85,16 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1_template_list.py b/library/k8s_v1_template_list.py index 15e04393..60876d40 100644 --- a/library/k8s_v1_template_list.py +++ b/library/k8s_v1_template_list.py @@ -47,6 +47,16 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1_user.py b/library/k8s_v1_user.py index 0ab251ca..121a98d9 100644 --- a/library/k8s_v1_user.py +++ b/library/k8s_v1_user.py @@ -69,7 +69,6 @@ options: although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - required: true namespace: description: - Namespace defines the space within each name must be unique. An empty namespace @@ -79,6 +78,16 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1_user_identity_mapping.py b/library/k8s_v1_user_identity_mapping.py index 86af135e..7c60bac1 100644 --- a/library/k8s_v1_user_identity_mapping.py +++ b/library/k8s_v1_user_identity_mapping.py @@ -97,7 +97,6 @@ options: although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - required: true namespace: description: - Namespace defines the space within each name must be unique. An empty namespace @@ -107,6 +106,16 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1_user_list.py b/library/k8s_v1_user_list.py index c0c074d8..927b6393 100644 --- a/library/k8s_v1_user_list.py +++ b/library/k8s_v1_user_list.py @@ -47,6 +47,16 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1alpha1_certificate_signing_request.py b/library/k8s_v1alpha1_certificate_signing_request.py index 348e28bf..830232b3 100644 --- a/library/k8s_v1alpha1_certificate_signing_request.py +++ b/library/k8s_v1alpha1_certificate_signing_request.py @@ -56,7 +56,6 @@ options: although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - required: true namespace: description: - Namespace defines the space within each name must be unique. An empty namespace @@ -66,6 +65,11 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict spec_groups: aliases: - groups @@ -84,6 +88,11 @@ options: for details aliases: - username + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1alpha1_certificate_signing_request_list.py b/library/k8s_v1alpha1_certificate_signing_request_list.py index 6cdcbd64..5be0c74a 100644 --- a/library/k8s_v1alpha1_certificate_signing_request_list.py +++ b/library/k8s_v1alpha1_certificate_signing_request_list.py @@ -47,6 +47,16 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1beta1_daemon_set.py b/library/k8s_v1beta1_daemon_set.py index 562311fc..6d41e2ab 100644 --- a/library/k8s_v1beta1_daemon_set.py +++ b/library/k8s_v1beta1_daemon_set.py @@ -56,7 +56,6 @@ options: although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - required: true namespace: description: - Namespace defines the space within each name must be unique. An empty namespace @@ -66,6 +65,11 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict spec_selector_match_expressions: description: - matchExpressions is a list of label selector requirements. The requirements @@ -82,62 +86,6 @@ options: aliases: - selector_match_labels type: dict - spec_template_active_deadline_seconds: - description: - - Optional duration in seconds the pod may be active on the node relative to StartTime - before the system will actively try to mark it failed and kill associated containers. - Value must be a positive integer. - aliases: - - active_deadline_seconds - type: int - spec_template_containers: - description: - - List of containers belonging to the pod. Containers cannot currently be added - or removed. There must be at least one container in a Pod. Cannot be updated. - aliases: - - containers - type: list - spec_template_dns_policy: - description: - - Set DNS policy for containers within the pod. One of 'ClusterFirst' or 'Default'. - Defaults to "ClusterFirst". - aliases: - - dns_policy - spec_template_host_ipc: - description: - - "Use the host's ipc namespace. Optional: Default to false." - aliases: - - host_ipc - type: bool - spec_template_host_network: - description: - - Host networking requested for this pod. Use the host's network namespace. If - this option is set, the ports that will be used must be specified. Default to - false. - aliases: - - host_network - type: bool - spec_template_host_pid: - description: - - "Use the host's pid namespace. Optional: Default to false." - aliases: - - host_pid - type: bool - spec_template_hostname: - description: - - Specifies the hostname of the Pod If not specified, the pod's hostname will - be set to a system-defined value. - aliases: - - hostname - spec_template_image_pull_secrets: - description: - - ImagePullSecrets is an optional list of references to secrets in the same namespace - to use for pulling any of the images used by this PodSpec. If specified, these - secrets will be passed to individual puller implementations for them to use. - For example, in the case of docker, only DockerConfig type secrets are honored. - aliases: - - image_pull_secrets - type: list spec_template_metadata_annotations: description: - Annotations is an unstructured key value map stored with a resource that may @@ -155,21 +103,76 @@ options: although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - required: true spec_template_metadata_namespace: description: - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. - spec_template_node_name: + spec_template_spec_active_deadline_seconds: + description: + - Optional duration in seconds the pod may be active on the node relative to StartTime + before the system will actively try to mark it failed and kill associated containers. + Value must be a positive integer. + aliases: + - active_deadline_seconds + type: int + spec_template_spec_containers: + description: + - List of containers belonging to the pod. Containers cannot currently be added + or removed. There must be at least one container in a Pod. Cannot be updated. + aliases: + - containers + type: list + spec_template_spec_dns_policy: + description: + - Set DNS policy for containers within the pod. One of 'ClusterFirst' or 'Default'. + Defaults to "ClusterFirst". + aliases: + - dns_policy + spec_template_spec_host_ipc: + description: + - "Use the host's ipc namespace. Optional: Default to false." + aliases: + - host_ipc + type: bool + spec_template_spec_host_network: + description: + - Host networking requested for this pod. Use the host's network namespace. If + this option is set, the ports that will be used must be specified. Default to + false. + aliases: + - host_network + type: bool + spec_template_spec_host_pid: + description: + - "Use the host's pid namespace. Optional: Default to false." + aliases: + - host_pid + type: bool + spec_template_spec_hostname: + description: + - Specifies the hostname of the Pod If not specified, the pod's hostname will + be set to a system-defined value. + aliases: + - hostname + spec_template_spec_image_pull_secrets: + description: + - ImagePullSecrets is an optional list of references to secrets in the same namespace + to use for pulling any of the images used by this PodSpec. If specified, these + secrets will be passed to individual puller implementations for them to use. + For example, in the case of docker, only DockerConfig type secrets are honored. + aliases: + - image_pull_secrets + type: list + spec_template_spec_node_name: description: - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. aliases: - node_name - spec_template_node_selector: + spec_template_spec_node_selector: description: - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that @@ -177,13 +180,13 @@ options: aliases: - node_selector type: dict - spec_template_restart_policy: + spec_template_spec_restart_policy: description: - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. aliases: - restart_policy - spec_template_security_context_fs_group: + spec_template_spec_security_context_fs_group: description: - "A special supplemental group that applies to all containers in a pod. Some\ \ volume types allow the Kubelet to change the ownership of that volume to be\ @@ -194,7 +197,7 @@ options: aliases: - security_context_fs_group type: int - spec_template_security_context_run_as_non_root: + spec_template_spec_security_context_run_as_non_root: description: - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) @@ -204,7 +207,7 @@ options: aliases: - security_context_run_as_non_root type: bool - spec_template_security_context_run_as_user: + spec_template_spec_security_context_run_as_user: description: - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set @@ -213,27 +216,27 @@ options: aliases: - security_context_run_as_user type: int - spec_template_security_context_se_linux_options_level: + spec_template_spec_security_context_se_linux_options_level: description: - Level is SELinux level label that applies to the container. aliases: - security_context_se_linux_options_level - spec_template_security_context_se_linux_options_role: + spec_template_spec_security_context_se_linux_options_role: description: - Role is a SELinux role label that applies to the container. aliases: - security_context_se_linux_options_role - spec_template_security_context_se_linux_options_type: + spec_template_spec_security_context_se_linux_options_type: description: - Type is a SELinux type label that applies to the container. aliases: - security_context_se_linux_options_type - spec_template_security_context_se_linux_options_user: + spec_template_spec_security_context_se_linux_options_user: description: - User is a SELinux user label that applies to the container. aliases: - security_context_se_linux_options_user - spec_template_security_context_supplemental_groups: + spec_template_spec_security_context_supplemental_groups: description: - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any @@ -241,25 +244,25 @@ options: aliases: - security_context_supplemental_groups type: list - spec_template_service_account: + spec_template_spec_service_account: description: - 'DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead.' aliases: - service_account - spec_template_service_account_name: + spec_template_spec_service_account_name: description: - ServiceAccountName is the name of the ServiceAccount to use to run this pod. aliases: - service_account_name - spec_template_subdomain: + spec_template_spec_subdomain: description: - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. aliases: - subdomain - spec_template_termination_grace_period_seconds: + spec_template_spec_termination_grace_period_seconds: description: - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates @@ -271,12 +274,17 @@ options: aliases: - termination_grace_period_seconds type: int - spec_template_volumes: + spec_template_spec_volumes: description: - List of volumes that can be mounted by containers belonging to the pod. aliases: - volumes type: list + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1beta1_daemon_set_list.py b/library/k8s_v1beta1_daemon_set_list.py index d9a756d1..94fa11da 100644 --- a/library/k8s_v1beta1_daemon_set_list.py +++ b/library/k8s_v1beta1_daemon_set_list.py @@ -47,6 +47,16 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1beta1_deployment.py b/library/k8s_v1beta1_deployment.py index a6cdbd10..cc19c1e5 100644 --- a/library/k8s_v1beta1_deployment.py +++ b/library/k8s_v1beta1_deployment.py @@ -56,7 +56,6 @@ options: although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - required: true namespace: description: - Namespace defines the space within each name must be unique. An empty namespace @@ -66,6 +65,11 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict spec_min_ready_seconds: description: - Minimum number of seconds for which a newly created pod should be ready without @@ -159,62 +163,6 @@ options: - Type of deployment. Can be "Recreate" or "RollingUpdate". Default is RollingUpdate. aliases: - strategy_type - spec_template_active_deadline_seconds: - description: - - Optional duration in seconds the pod may be active on the node relative to StartTime - before the system will actively try to mark it failed and kill associated containers. - Value must be a positive integer. - aliases: - - active_deadline_seconds - type: int - spec_template_containers: - description: - - List of containers belonging to the pod. Containers cannot currently be added - or removed. There must be at least one container in a Pod. Cannot be updated. - aliases: - - containers - type: list - spec_template_dns_policy: - description: - - Set DNS policy for containers within the pod. One of 'ClusterFirst' or 'Default'. - Defaults to "ClusterFirst". - aliases: - - dns_policy - spec_template_host_ipc: - description: - - "Use the host's ipc namespace. Optional: Default to false." - aliases: - - host_ipc - type: bool - spec_template_host_network: - description: - - Host networking requested for this pod. Use the host's network namespace. If - this option is set, the ports that will be used must be specified. Default to - false. - aliases: - - host_network - type: bool - spec_template_host_pid: - description: - - "Use the host's pid namespace. Optional: Default to false." - aliases: - - host_pid - type: bool - spec_template_hostname: - description: - - Specifies the hostname of the Pod If not specified, the pod's hostname will - be set to a system-defined value. - aliases: - - hostname - spec_template_image_pull_secrets: - description: - - ImagePullSecrets is an optional list of references to secrets in the same namespace - to use for pulling any of the images used by this PodSpec. If specified, these - secrets will be passed to individual puller implementations for them to use. - For example, in the case of docker, only DockerConfig type secrets are honored. - aliases: - - image_pull_secrets - type: list spec_template_metadata_annotations: description: - Annotations is an unstructured key value map stored with a resource that may @@ -232,21 +180,76 @@ options: although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - required: true spec_template_metadata_namespace: description: - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. - spec_template_node_name: + spec_template_spec_active_deadline_seconds: + description: + - Optional duration in seconds the pod may be active on the node relative to StartTime + before the system will actively try to mark it failed and kill associated containers. + Value must be a positive integer. + aliases: + - active_deadline_seconds + type: int + spec_template_spec_containers: + description: + - List of containers belonging to the pod. Containers cannot currently be added + or removed. There must be at least one container in a Pod. Cannot be updated. + aliases: + - containers + type: list + spec_template_spec_dns_policy: + description: + - Set DNS policy for containers within the pod. One of 'ClusterFirst' or 'Default'. + Defaults to "ClusterFirst". + aliases: + - dns_policy + spec_template_spec_host_ipc: + description: + - "Use the host's ipc namespace. Optional: Default to false." + aliases: + - host_ipc + type: bool + spec_template_spec_host_network: + description: + - Host networking requested for this pod. Use the host's network namespace. If + this option is set, the ports that will be used must be specified. Default to + false. + aliases: + - host_network + type: bool + spec_template_spec_host_pid: + description: + - "Use the host's pid namespace. Optional: Default to false." + aliases: + - host_pid + type: bool + spec_template_spec_hostname: + description: + - Specifies the hostname of the Pod If not specified, the pod's hostname will + be set to a system-defined value. + aliases: + - hostname + spec_template_spec_image_pull_secrets: + description: + - ImagePullSecrets is an optional list of references to secrets in the same namespace + to use for pulling any of the images used by this PodSpec. If specified, these + secrets will be passed to individual puller implementations for them to use. + For example, in the case of docker, only DockerConfig type secrets are honored. + aliases: + - image_pull_secrets + type: list + spec_template_spec_node_name: description: - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. aliases: - node_name - spec_template_node_selector: + spec_template_spec_node_selector: description: - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that @@ -254,13 +257,13 @@ options: aliases: - node_selector type: dict - spec_template_restart_policy: + spec_template_spec_restart_policy: description: - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. aliases: - restart_policy - spec_template_security_context_fs_group: + spec_template_spec_security_context_fs_group: description: - "A special supplemental group that applies to all containers in a pod. Some\ \ volume types allow the Kubelet to change the ownership of that volume to be\ @@ -271,7 +274,7 @@ options: aliases: - security_context_fs_group type: int - spec_template_security_context_run_as_non_root: + spec_template_spec_security_context_run_as_non_root: description: - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) @@ -281,7 +284,7 @@ options: aliases: - security_context_run_as_non_root type: bool - spec_template_security_context_run_as_user: + spec_template_spec_security_context_run_as_user: description: - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set @@ -290,27 +293,27 @@ options: aliases: - security_context_run_as_user type: int - spec_template_security_context_se_linux_options_level: + spec_template_spec_security_context_se_linux_options_level: description: - Level is SELinux level label that applies to the container. aliases: - security_context_se_linux_options_level - spec_template_security_context_se_linux_options_role: + spec_template_spec_security_context_se_linux_options_role: description: - Role is a SELinux role label that applies to the container. aliases: - security_context_se_linux_options_role - spec_template_security_context_se_linux_options_type: + spec_template_spec_security_context_se_linux_options_type: description: - Type is a SELinux type label that applies to the container. aliases: - security_context_se_linux_options_type - spec_template_security_context_se_linux_options_user: + spec_template_spec_security_context_se_linux_options_user: description: - User is a SELinux user label that applies to the container. aliases: - security_context_se_linux_options_user - spec_template_security_context_supplemental_groups: + spec_template_spec_security_context_supplemental_groups: description: - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any @@ -318,25 +321,25 @@ options: aliases: - security_context_supplemental_groups type: list - spec_template_service_account: + spec_template_spec_service_account: description: - 'DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead.' aliases: - service_account - spec_template_service_account_name: + spec_template_spec_service_account_name: description: - ServiceAccountName is the name of the ServiceAccount to use to run this pod. aliases: - service_account_name - spec_template_subdomain: + spec_template_spec_subdomain: description: - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. aliases: - subdomain - spec_template_termination_grace_period_seconds: + spec_template_spec_termination_grace_period_seconds: description: - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates @@ -348,12 +351,17 @@ options: aliases: - termination_grace_period_seconds type: int - spec_template_volumes: + spec_template_spec_volumes: description: - List of volumes that can be mounted by containers belonging to the pod. aliases: - volumes type: list + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1beta1_deployment_list.py b/library/k8s_v1beta1_deployment_list.py index 2781eab0..48d469c0 100644 --- a/library/k8s_v1beta1_deployment_list.py +++ b/library/k8s_v1beta1_deployment_list.py @@ -47,6 +47,16 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1beta1_eviction.py b/library/k8s_v1beta1_eviction.py index 7019ea2e..924a4d31 100644 --- a/library/k8s_v1beta1_eviction.py +++ b/library/k8s_v1beta1_eviction.py @@ -91,7 +91,6 @@ options: although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - required: true namespace: description: - Namespace defines the space within each name must be unique. An empty namespace diff --git a/library/k8s_v1beta1_horizontal_pod_autoscaler.py b/library/k8s_v1beta1_horizontal_pod_autoscaler.py index e4bb62d9..c62db26e 100644 --- a/library/k8s_v1beta1_horizontal_pod_autoscaler.py +++ b/library/k8s_v1beta1_horizontal_pod_autoscaler.py @@ -56,7 +56,6 @@ options: although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - required: true namespace: description: - Namespace defines the space within each name must be unique. An empty namespace @@ -66,6 +65,11 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict spec_cpu_utilization_target_percentage: description: - fraction of the requested CPU that should be utilized/used, e.g. 70 means that @@ -107,6 +111,11 @@ options: - Subresource name of the referent aliases: - scale_ref_subresource + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1beta1_horizontal_pod_autoscaler_list.py b/library/k8s_v1beta1_horizontal_pod_autoscaler_list.py index 10a1a6ab..deb753c6 100644 --- a/library/k8s_v1beta1_horizontal_pod_autoscaler_list.py +++ b/library/k8s_v1beta1_horizontal_pod_autoscaler_list.py @@ -47,6 +47,16 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1beta1_ingress.py b/library/k8s_v1beta1_ingress.py index 99d285ae..50599836 100644 --- a/library/k8s_v1beta1_ingress.py +++ b/library/k8s_v1beta1_ingress.py @@ -56,7 +56,6 @@ options: although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - required: true namespace: description: - Namespace defines the space within each name must be unique. An empty namespace @@ -66,6 +65,11 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict spec_backend_service_name: description: - Specifies the name of the referenced service. @@ -92,6 +96,11 @@ options: aliases: - tls type: list + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1beta1_ingress_list.py b/library/k8s_v1beta1_ingress_list.py index 1a034e15..a026a5ff 100644 --- a/library/k8s_v1beta1_ingress_list.py +++ b/library/k8s_v1beta1_ingress_list.py @@ -47,6 +47,16 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1beta1_job.py b/library/k8s_v1beta1_job.py index 1e054834..0f911adb 100644 --- a/library/k8s_v1beta1_job.py +++ b/library/k8s_v1beta1_job.py @@ -56,7 +56,6 @@ options: although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - required: true namespace: description: - Namespace defines the space within each name must be unique. An empty namespace @@ -66,6 +65,11 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict spec_active_deadline_seconds: description: - Optional duration in seconds relative to the startTime that the job may be active @@ -117,62 +121,6 @@ options: aliases: - selector_match_labels type: dict - spec_template_active_deadline_seconds: - description: - - Optional duration in seconds the pod may be active on the node relative to StartTime - before the system will actively try to mark it failed and kill associated containers. - Value must be a positive integer. - aliases: - - active_deadline_seconds - type: int - spec_template_containers: - description: - - List of containers belonging to the pod. Containers cannot currently be added - or removed. There must be at least one container in a Pod. Cannot be updated. - aliases: - - containers - type: list - spec_template_dns_policy: - description: - - Set DNS policy for containers within the pod. One of 'ClusterFirst' or 'Default'. - Defaults to "ClusterFirst". - aliases: - - dns_policy - spec_template_host_ipc: - description: - - "Use the host's ipc namespace. Optional: Default to false." - aliases: - - host_ipc - type: bool - spec_template_host_network: - description: - - Host networking requested for this pod. Use the host's network namespace. If - this option is set, the ports that will be used must be specified. Default to - false. - aliases: - - host_network - type: bool - spec_template_host_pid: - description: - - "Use the host's pid namespace. Optional: Default to false." - aliases: - - host_pid - type: bool - spec_template_hostname: - description: - - Specifies the hostname of the Pod If not specified, the pod's hostname will - be set to a system-defined value. - aliases: - - hostname - spec_template_image_pull_secrets: - description: - - ImagePullSecrets is an optional list of references to secrets in the same namespace - to use for pulling any of the images used by this PodSpec. If specified, these - secrets will be passed to individual puller implementations for them to use. - For example, in the case of docker, only DockerConfig type secrets are honored. - aliases: - - image_pull_secrets - type: list spec_template_metadata_annotations: description: - Annotations is an unstructured key value map stored with a resource that may @@ -190,21 +138,76 @@ options: although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - required: true spec_template_metadata_namespace: description: - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. - spec_template_node_name: + spec_template_spec_active_deadline_seconds: + description: + - Optional duration in seconds the pod may be active on the node relative to StartTime + before the system will actively try to mark it failed and kill associated containers. + Value must be a positive integer. + aliases: + - active_deadline_seconds + type: int + spec_template_spec_containers: + description: + - List of containers belonging to the pod. Containers cannot currently be added + or removed. There must be at least one container in a Pod. Cannot be updated. + aliases: + - containers + type: list + spec_template_spec_dns_policy: + description: + - Set DNS policy for containers within the pod. One of 'ClusterFirst' or 'Default'. + Defaults to "ClusterFirst". + aliases: + - dns_policy + spec_template_spec_host_ipc: + description: + - "Use the host's ipc namespace. Optional: Default to false." + aliases: + - host_ipc + type: bool + spec_template_spec_host_network: + description: + - Host networking requested for this pod. Use the host's network namespace. If + this option is set, the ports that will be used must be specified. Default to + false. + aliases: + - host_network + type: bool + spec_template_spec_host_pid: + description: + - "Use the host's pid namespace. Optional: Default to false." + aliases: + - host_pid + type: bool + spec_template_spec_hostname: + description: + - Specifies the hostname of the Pod If not specified, the pod's hostname will + be set to a system-defined value. + aliases: + - hostname + spec_template_spec_image_pull_secrets: + description: + - ImagePullSecrets is an optional list of references to secrets in the same namespace + to use for pulling any of the images used by this PodSpec. If specified, these + secrets will be passed to individual puller implementations for them to use. + For example, in the case of docker, only DockerConfig type secrets are honored. + aliases: + - image_pull_secrets + type: list + spec_template_spec_node_name: description: - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. aliases: - node_name - spec_template_node_selector: + spec_template_spec_node_selector: description: - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that @@ -212,13 +215,13 @@ options: aliases: - node_selector type: dict - spec_template_restart_policy: + spec_template_spec_restart_policy: description: - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. aliases: - restart_policy - spec_template_security_context_fs_group: + spec_template_spec_security_context_fs_group: description: - "A special supplemental group that applies to all containers in a pod. Some\ \ volume types allow the Kubelet to change the ownership of that volume to be\ @@ -229,7 +232,7 @@ options: aliases: - security_context_fs_group type: int - spec_template_security_context_run_as_non_root: + spec_template_spec_security_context_run_as_non_root: description: - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) @@ -239,7 +242,7 @@ options: aliases: - security_context_run_as_non_root type: bool - spec_template_security_context_run_as_user: + spec_template_spec_security_context_run_as_user: description: - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set @@ -248,27 +251,27 @@ options: aliases: - security_context_run_as_user type: int - spec_template_security_context_se_linux_options_level: + spec_template_spec_security_context_se_linux_options_level: description: - Level is SELinux level label that applies to the container. aliases: - security_context_se_linux_options_level - spec_template_security_context_se_linux_options_role: + spec_template_spec_security_context_se_linux_options_role: description: - Role is a SELinux role label that applies to the container. aliases: - security_context_se_linux_options_role - spec_template_security_context_se_linux_options_type: + spec_template_spec_security_context_se_linux_options_type: description: - Type is a SELinux type label that applies to the container. aliases: - security_context_se_linux_options_type - spec_template_security_context_se_linux_options_user: + spec_template_spec_security_context_se_linux_options_user: description: - User is a SELinux user label that applies to the container. aliases: - security_context_se_linux_options_user - spec_template_security_context_supplemental_groups: + spec_template_spec_security_context_supplemental_groups: description: - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any @@ -276,25 +279,25 @@ options: aliases: - security_context_supplemental_groups type: list - spec_template_service_account: + spec_template_spec_service_account: description: - 'DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead.' aliases: - service_account - spec_template_service_account_name: + spec_template_spec_service_account_name: description: - ServiceAccountName is the name of the ServiceAccount to use to run this pod. aliases: - service_account_name - spec_template_subdomain: + spec_template_spec_subdomain: description: - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. aliases: - subdomain - spec_template_termination_grace_period_seconds: + spec_template_spec_termination_grace_period_seconds: description: - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates @@ -306,12 +309,17 @@ options: aliases: - termination_grace_period_seconds type: int - spec_template_volumes: + spec_template_spec_volumes: description: - List of volumes that can be mounted by containers belonging to the pod. aliases: - volumes type: list + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1beta1_job_list.py b/library/k8s_v1beta1_job_list.py index 5cbfbe1d..3c39998d 100644 --- a/library/k8s_v1beta1_job_list.py +++ b/library/k8s_v1beta1_job_list.py @@ -47,6 +47,16 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1beta1_network_policy.py b/library/k8s_v1beta1_network_policy.py index a7c3572b..e0a78402 100644 --- a/library/k8s_v1beta1_network_policy.py +++ b/library/k8s_v1beta1_network_policy.py @@ -56,7 +56,6 @@ options: although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - required: true namespace: description: - Namespace defines the space within each name must be unique. An empty namespace @@ -66,6 +65,11 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict spec_ingress: description: - List of ingress rules to be applied to the selected pods. Traffic is allowed @@ -95,6 +99,11 @@ options: aliases: - pod_selector_match_labels type: dict + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1beta1_network_policy_list.py b/library/k8s_v1beta1_network_policy_list.py index 33c96192..bb94af13 100644 --- a/library/k8s_v1beta1_network_policy_list.py +++ b/library/k8s_v1beta1_network_policy_list.py @@ -47,6 +47,16 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1beta1_pod_disruption_budget.py b/library/k8s_v1beta1_pod_disruption_budget.py index f6c98363..a22100ea 100644 --- a/library/k8s_v1beta1_pod_disruption_budget.py +++ b/library/k8s_v1beta1_pod_disruption_budget.py @@ -56,7 +56,6 @@ options: although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - required: true namespace: description: - Namespace defines the space within each name must be unique. An empty namespace @@ -66,6 +65,11 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict spec_min_available: description: - An eviction is allowed if at least "minAvailable" pods selected by "selector" @@ -90,6 +94,11 @@ options: aliases: - selector_match_labels type: dict + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1beta1_pod_disruption_budget_list.py b/library/k8s_v1beta1_pod_disruption_budget_list.py index 5712a11e..638afea6 100644 --- a/library/k8s_v1beta1_pod_disruption_budget_list.py +++ b/library/k8s_v1beta1_pod_disruption_budget_list.py @@ -47,6 +47,16 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1beta1_pod_security_policy.py b/library/k8s_v1beta1_pod_security_policy.py index e03ebedc..455350b0 100644 --- a/library/k8s_v1beta1_pod_security_policy.py +++ b/library/k8s_v1beta1_pod_security_policy.py @@ -56,7 +56,6 @@ options: although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - required: true namespace: description: - Namespace defines the space within each name must be unique. An empty namespace @@ -66,6 +65,11 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict spec_allowed_capabilities: description: - AllowedCapabilities is a list of capabilities that can be requested to add to @@ -200,6 +204,11 @@ options: aliases: - volumes type: list + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1beta1_pod_security_policy_list.py b/library/k8s_v1beta1_pod_security_policy_list.py index 83ae312b..a98764f9 100644 --- a/library/k8s_v1beta1_pod_security_policy_list.py +++ b/library/k8s_v1beta1_pod_security_policy_list.py @@ -47,6 +47,16 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1beta1_replica_set.py b/library/k8s_v1beta1_replica_set.py index ca8d49f5..0920c6d5 100644 --- a/library/k8s_v1beta1_replica_set.py +++ b/library/k8s_v1beta1_replica_set.py @@ -56,7 +56,6 @@ options: although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - required: true namespace: description: - Namespace defines the space within each name must be unique. An empty namespace @@ -66,6 +65,11 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict spec_min_ready_seconds: description: - Minimum number of seconds for which a newly created pod should be ready without @@ -97,62 +101,6 @@ options: aliases: - selector_match_labels type: dict - spec_template_active_deadline_seconds: - description: - - Optional duration in seconds the pod may be active on the node relative to StartTime - before the system will actively try to mark it failed and kill associated containers. - Value must be a positive integer. - aliases: - - active_deadline_seconds - type: int - spec_template_containers: - description: - - List of containers belonging to the pod. Containers cannot currently be added - or removed. There must be at least one container in a Pod. Cannot be updated. - aliases: - - containers - type: list - spec_template_dns_policy: - description: - - Set DNS policy for containers within the pod. One of 'ClusterFirst' or 'Default'. - Defaults to "ClusterFirst". - aliases: - - dns_policy - spec_template_host_ipc: - description: - - "Use the host's ipc namespace. Optional: Default to false." - aliases: - - host_ipc - type: bool - spec_template_host_network: - description: - - Host networking requested for this pod. Use the host's network namespace. If - this option is set, the ports that will be used must be specified. Default to - false. - aliases: - - host_network - type: bool - spec_template_host_pid: - description: - - "Use the host's pid namespace. Optional: Default to false." - aliases: - - host_pid - type: bool - spec_template_hostname: - description: - - Specifies the hostname of the Pod If not specified, the pod's hostname will - be set to a system-defined value. - aliases: - - hostname - spec_template_image_pull_secrets: - description: - - ImagePullSecrets is an optional list of references to secrets in the same namespace - to use for pulling any of the images used by this PodSpec. If specified, these - secrets will be passed to individual puller implementations for them to use. - For example, in the case of docker, only DockerConfig type secrets are honored. - aliases: - - image_pull_secrets - type: list spec_template_metadata_annotations: description: - Annotations is an unstructured key value map stored with a resource that may @@ -170,21 +118,76 @@ options: although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - required: true spec_template_metadata_namespace: description: - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. - spec_template_node_name: + spec_template_spec_active_deadline_seconds: + description: + - Optional duration in seconds the pod may be active on the node relative to StartTime + before the system will actively try to mark it failed and kill associated containers. + Value must be a positive integer. + aliases: + - active_deadline_seconds + type: int + spec_template_spec_containers: + description: + - List of containers belonging to the pod. Containers cannot currently be added + or removed. There must be at least one container in a Pod. Cannot be updated. + aliases: + - containers + type: list + spec_template_spec_dns_policy: + description: + - Set DNS policy for containers within the pod. One of 'ClusterFirst' or 'Default'. + Defaults to "ClusterFirst". + aliases: + - dns_policy + spec_template_spec_host_ipc: + description: + - "Use the host's ipc namespace. Optional: Default to false." + aliases: + - host_ipc + type: bool + spec_template_spec_host_network: + description: + - Host networking requested for this pod. Use the host's network namespace. If + this option is set, the ports that will be used must be specified. Default to + false. + aliases: + - host_network + type: bool + spec_template_spec_host_pid: + description: + - "Use the host's pid namespace. Optional: Default to false." + aliases: + - host_pid + type: bool + spec_template_spec_hostname: + description: + - Specifies the hostname of the Pod If not specified, the pod's hostname will + be set to a system-defined value. + aliases: + - hostname + spec_template_spec_image_pull_secrets: + description: + - ImagePullSecrets is an optional list of references to secrets in the same namespace + to use for pulling any of the images used by this PodSpec. If specified, these + secrets will be passed to individual puller implementations for them to use. + For example, in the case of docker, only DockerConfig type secrets are honored. + aliases: + - image_pull_secrets + type: list + spec_template_spec_node_name: description: - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. aliases: - node_name - spec_template_node_selector: + spec_template_spec_node_selector: description: - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that @@ -192,13 +195,13 @@ options: aliases: - node_selector type: dict - spec_template_restart_policy: + spec_template_spec_restart_policy: description: - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. aliases: - restart_policy - spec_template_security_context_fs_group: + spec_template_spec_security_context_fs_group: description: - "A special supplemental group that applies to all containers in a pod. Some\ \ volume types allow the Kubelet to change the ownership of that volume to be\ @@ -209,7 +212,7 @@ options: aliases: - security_context_fs_group type: int - spec_template_security_context_run_as_non_root: + spec_template_spec_security_context_run_as_non_root: description: - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) @@ -219,7 +222,7 @@ options: aliases: - security_context_run_as_non_root type: bool - spec_template_security_context_run_as_user: + spec_template_spec_security_context_run_as_user: description: - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set @@ -228,27 +231,27 @@ options: aliases: - security_context_run_as_user type: int - spec_template_security_context_se_linux_options_level: + spec_template_spec_security_context_se_linux_options_level: description: - Level is SELinux level label that applies to the container. aliases: - security_context_se_linux_options_level - spec_template_security_context_se_linux_options_role: + spec_template_spec_security_context_se_linux_options_role: description: - Role is a SELinux role label that applies to the container. aliases: - security_context_se_linux_options_role - spec_template_security_context_se_linux_options_type: + spec_template_spec_security_context_se_linux_options_type: description: - Type is a SELinux type label that applies to the container. aliases: - security_context_se_linux_options_type - spec_template_security_context_se_linux_options_user: + spec_template_spec_security_context_se_linux_options_user: description: - User is a SELinux user label that applies to the container. aliases: - security_context_se_linux_options_user - spec_template_security_context_supplemental_groups: + spec_template_spec_security_context_supplemental_groups: description: - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any @@ -256,25 +259,25 @@ options: aliases: - security_context_supplemental_groups type: list - spec_template_service_account: + spec_template_spec_service_account: description: - 'DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead.' aliases: - service_account - spec_template_service_account_name: + spec_template_spec_service_account_name: description: - ServiceAccountName is the name of the ServiceAccount to use to run this pod. aliases: - service_account_name - spec_template_subdomain: + spec_template_spec_subdomain: description: - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. aliases: - subdomain - spec_template_termination_grace_period_seconds: + spec_template_spec_termination_grace_period_seconds: description: - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates @@ -286,12 +289,17 @@ options: aliases: - termination_grace_period_seconds type: int - spec_template_volumes: + spec_template_spec_volumes: description: - List of volumes that can be mounted by containers belonging to the pod. aliases: - volumes type: list + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1beta1_replica_set_list.py b/library/k8s_v1beta1_replica_set_list.py index e38b2702..62cd387d 100644 --- a/library/k8s_v1beta1_replica_set_list.py +++ b/library/k8s_v1beta1_replica_set_list.py @@ -47,6 +47,16 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1beta1_scale.py b/library/k8s_v1beta1_scale.py index 26d15cab..70a24377 100644 --- a/library/k8s_v1beta1_scale.py +++ b/library/k8s_v1beta1_scale.py @@ -56,7 +56,6 @@ options: although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - required: true namespace: description: - Namespace defines the space within each name must be unique. An empty namespace diff --git a/library/k8s_v1beta1_stateful_set.py b/library/k8s_v1beta1_stateful_set.py index 985b6d53..7ba11858 100644 --- a/library/k8s_v1beta1_stateful_set.py +++ b/library/k8s_v1beta1_stateful_set.py @@ -56,7 +56,6 @@ options: although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - required: true namespace: description: - Namespace defines the space within each name must be unique. An empty namespace @@ -66,6 +65,11 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict spec_replicas: description: - Replicas is the desired number of replicas of the given Template. These are @@ -99,62 +103,6 @@ options: where "pod-specific-string" is managed by the StatefulSet controller.' aliases: - service_name - spec_template_active_deadline_seconds: - description: - - Optional duration in seconds the pod may be active on the node relative to StartTime - before the system will actively try to mark it failed and kill associated containers. - Value must be a positive integer. - aliases: - - active_deadline_seconds - type: int - spec_template_containers: - description: - - List of containers belonging to the pod. Containers cannot currently be added - or removed. There must be at least one container in a Pod. Cannot be updated. - aliases: - - containers - type: list - spec_template_dns_policy: - description: - - Set DNS policy for containers within the pod. One of 'ClusterFirst' or 'Default'. - Defaults to "ClusterFirst". - aliases: - - dns_policy - spec_template_host_ipc: - description: - - "Use the host's ipc namespace. Optional: Default to false." - aliases: - - host_ipc - type: bool - spec_template_host_network: - description: - - Host networking requested for this pod. Use the host's network namespace. If - this option is set, the ports that will be used must be specified. Default to - false. - aliases: - - host_network - type: bool - spec_template_host_pid: - description: - - "Use the host's pid namespace. Optional: Default to false." - aliases: - - host_pid - type: bool - spec_template_hostname: - description: - - Specifies the hostname of the Pod If not specified, the pod's hostname will - be set to a system-defined value. - aliases: - - hostname - spec_template_image_pull_secrets: - description: - - ImagePullSecrets is an optional list of references to secrets in the same namespace - to use for pulling any of the images used by this PodSpec. If specified, these - secrets will be passed to individual puller implementations for them to use. - For example, in the case of docker, only DockerConfig type secrets are honored. - aliases: - - image_pull_secrets - type: list spec_template_metadata_annotations: description: - Annotations is an unstructured key value map stored with a resource that may @@ -172,21 +120,76 @@ options: although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - required: true spec_template_metadata_namespace: description: - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. - spec_template_node_name: + spec_template_spec_active_deadline_seconds: + description: + - Optional duration in seconds the pod may be active on the node relative to StartTime + before the system will actively try to mark it failed and kill associated containers. + Value must be a positive integer. + aliases: + - active_deadline_seconds + type: int + spec_template_spec_containers: + description: + - List of containers belonging to the pod. Containers cannot currently be added + or removed. There must be at least one container in a Pod. Cannot be updated. + aliases: + - containers + type: list + spec_template_spec_dns_policy: + description: + - Set DNS policy for containers within the pod. One of 'ClusterFirst' or 'Default'. + Defaults to "ClusterFirst". + aliases: + - dns_policy + spec_template_spec_host_ipc: + description: + - "Use the host's ipc namespace. Optional: Default to false." + aliases: + - host_ipc + type: bool + spec_template_spec_host_network: + description: + - Host networking requested for this pod. Use the host's network namespace. If + this option is set, the ports that will be used must be specified. Default to + false. + aliases: + - host_network + type: bool + spec_template_spec_host_pid: + description: + - "Use the host's pid namespace. Optional: Default to false." + aliases: + - host_pid + type: bool + spec_template_spec_hostname: + description: + - Specifies the hostname of the Pod If not specified, the pod's hostname will + be set to a system-defined value. + aliases: + - hostname + spec_template_spec_image_pull_secrets: + description: + - ImagePullSecrets is an optional list of references to secrets in the same namespace + to use for pulling any of the images used by this PodSpec. If specified, these + secrets will be passed to individual puller implementations for them to use. + For example, in the case of docker, only DockerConfig type secrets are honored. + aliases: + - image_pull_secrets + type: list + spec_template_spec_node_name: description: - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. aliases: - node_name - spec_template_node_selector: + spec_template_spec_node_selector: description: - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that @@ -194,13 +197,13 @@ options: aliases: - node_selector type: dict - spec_template_restart_policy: + spec_template_spec_restart_policy: description: - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. aliases: - restart_policy - spec_template_security_context_fs_group: + spec_template_spec_security_context_fs_group: description: - "A special supplemental group that applies to all containers in a pod. Some\ \ volume types allow the Kubelet to change the ownership of that volume to be\ @@ -211,7 +214,7 @@ options: aliases: - security_context_fs_group type: int - spec_template_security_context_run_as_non_root: + spec_template_spec_security_context_run_as_non_root: description: - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) @@ -221,7 +224,7 @@ options: aliases: - security_context_run_as_non_root type: bool - spec_template_security_context_run_as_user: + spec_template_spec_security_context_run_as_user: description: - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set @@ -230,27 +233,27 @@ options: aliases: - security_context_run_as_user type: int - spec_template_security_context_se_linux_options_level: + spec_template_spec_security_context_se_linux_options_level: description: - Level is SELinux level label that applies to the container. aliases: - security_context_se_linux_options_level - spec_template_security_context_se_linux_options_role: + spec_template_spec_security_context_se_linux_options_role: description: - Role is a SELinux role label that applies to the container. aliases: - security_context_se_linux_options_role - spec_template_security_context_se_linux_options_type: + spec_template_spec_security_context_se_linux_options_type: description: - Type is a SELinux type label that applies to the container. aliases: - security_context_se_linux_options_type - spec_template_security_context_se_linux_options_user: + spec_template_spec_security_context_se_linux_options_user: description: - User is a SELinux user label that applies to the container. aliases: - security_context_se_linux_options_user - spec_template_security_context_supplemental_groups: + spec_template_spec_security_context_supplemental_groups: description: - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any @@ -258,25 +261,25 @@ options: aliases: - security_context_supplemental_groups type: list - spec_template_service_account: + spec_template_spec_service_account: description: - 'DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead.' aliases: - service_account - spec_template_service_account_name: + spec_template_spec_service_account_name: description: - ServiceAccountName is the name of the ServiceAccount to use to run this pod. aliases: - service_account_name - spec_template_subdomain: + spec_template_spec_subdomain: description: - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. aliases: - subdomain - spec_template_termination_grace_period_seconds: + spec_template_spec_termination_grace_period_seconds: description: - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates @@ -288,7 +291,7 @@ options: aliases: - termination_grace_period_seconds type: int - spec_template_volumes: + spec_template_spec_volumes: description: - List of volumes that can be mounted by containers belonging to the pod. aliases: @@ -305,6 +308,11 @@ options: aliases: - volume_claim_templates type: list + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1beta1_stateful_set_list.py b/library/k8s_v1beta1_stateful_set_list.py index 8e47a3ac..659dc558 100644 --- a/library/k8s_v1beta1_stateful_set_list.py +++ b/library/k8s_v1beta1_stateful_set_list.py @@ -47,6 +47,16 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1beta1_storage_class.py b/library/k8s_v1beta1_storage_class.py index 8462a669..f3a8955e 100644 --- a/library/k8s_v1beta1_storage_class.py +++ b/library/k8s_v1beta1_storage_class.py @@ -56,7 +56,6 @@ options: although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - required: true namespace: description: - Namespace defines the space within each name must be unique. An empty namespace @@ -74,6 +73,16 @@ options: provisioner: description: - Provisioner indicates the type of the provisioner. + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1beta1_storage_class_list.py b/library/k8s_v1beta1_storage_class_list.py index ce8e7b15..d7e89552 100644 --- a/library/k8s_v1beta1_storage_class_list.py +++ b/library/k8s_v1beta1_storage_class_list.py @@ -47,6 +47,16 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1beta1_third_party_resource.py b/library/k8s_v1beta1_third_party_resource.py index 80f9e1f6..379db6e9 100644 --- a/library/k8s_v1beta1_third_party_resource.py +++ b/library/k8s_v1beta1_third_party_resource.py @@ -59,7 +59,6 @@ options: although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - required: true namespace: description: - Namespace defines the space within each name must be unique. An empty namespace @@ -69,6 +68,16 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1beta1_third_party_resource_list.py b/library/k8s_v1beta1_third_party_resource_list.py index c50c2968..49b9091f 100644 --- a/library/k8s_v1beta1_third_party_resource_list.py +++ b/library/k8s_v1beta1_third_party_resource_list.py @@ -47,6 +47,16 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v1beta1_token_review.py b/library/k8s_v1beta1_token_review.py index fa5d2325..c8fe02da 100644 --- a/library/k8s_v1beta1_token_review.py +++ b/library/k8s_v1beta1_token_review.py @@ -56,7 +56,6 @@ options: although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - required: true namespace: description: - Namespace defines the space within each name must be unique. An empty namespace diff --git a/library/k8s_v2alpha1_cron_job.py b/library/k8s_v2alpha1_cron_job.py index 9b227f6f..3a807e86 100644 --- a/library/k8s_v2alpha1_cron_job.py +++ b/library/k8s_v2alpha1_cron_job.py @@ -56,7 +56,6 @@ options: although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - required: true namespace: description: - Namespace defines the space within each name must be unique. An empty namespace @@ -66,89 +65,16 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict spec_concurrency_policy: description: - ConcurrencyPolicy specifies how to treat concurrent executions of a Job. aliases: - concurrency_policy - spec_job_template_active_deadline_seconds: - description: - - Optional duration in seconds the pod may be active on the node relative to StartTime - before the system will actively try to mark it failed and kill associated containers. - Value must be a positive integer. - aliases: - - job__active_deadline_seconds - type: int - spec_job_template_completions: - description: - - Completions specifies the desired number of successfully finished pods the job - should be run with. Setting to nil means that the success of any pod signals - the success of all pods, and allows parallelism to have any positive value. - Setting to 1 means that parallelism is limited to 1 and the success of that - pod signals the success of the job. - aliases: - - job__completions - type: int - spec_job_template_containers: - description: - - List of containers belonging to the pod. Containers cannot currently be added - or removed. There must be at least one container in a Pod. Cannot be updated. - aliases: - - job__containers - type: list - spec_job_template_dns_policy: - description: - - Set DNS policy for containers within the pod. One of 'ClusterFirst' or 'Default'. - Defaults to "ClusterFirst". - aliases: - - job__dns_policy - spec_job_template_host_ipc: - description: - - "Use the host's ipc namespace. Optional: Default to false." - aliases: - - job__host_ipc - type: bool - spec_job_template_host_network: - description: - - Host networking requested for this pod. Use the host's network namespace. If - this option is set, the ports that will be used must be specified. Default to - false. - aliases: - - job__host_network - type: bool - spec_job_template_host_pid: - description: - - "Use the host's pid namespace. Optional: Default to false." - aliases: - - job__host_pid - type: bool - spec_job_template_hostname: - description: - - Specifies the hostname of the Pod If not specified, the pod's hostname will - be set to a system-defined value. - aliases: - - job__hostname - spec_job_template_image_pull_secrets: - description: - - ImagePullSecrets is an optional list of references to secrets in the same namespace - to use for pulling any of the images used by this PodSpec. If specified, these - secrets will be passed to individual puller implementations for them to use. - For example, in the case of docker, only DockerConfig type secrets are honored. - aliases: - - job__image_pull_secrets - type: list - spec_job_template_manual_selector: - description: - - ManualSelector controls generation of pod labels and pod selectors. Leave `manualSelector` - unset unless you are certain what you are doing. When false or unset, the system - pick labels unique to this job and appends those labels to the pod template. - When true, the user is responsible for picking unique labels and specifying - the selector. Failure to pick a unique label may cause this and other jobs to - not function correctly. However, You may see `manualSelector=true` in jobs that - were created with the old `extensions/v1beta1` API. - aliases: - - job__manual_selector - type: bool spec_job_template_metadata_annotations: description: - Annotations is an unstructured key value map stored with a resource that may @@ -170,7 +96,6 @@ options: although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - required: true aliases: - job__metadata_name spec_job_template_metadata_namespace: @@ -181,22 +106,36 @@ options: field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. aliases: - job__metadata_namespace - spec_job_template_node_name: + spec_job_template_spec_active_deadline_seconds: description: - - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, - the scheduler simply schedules this pod onto that node, assuming that it fits - resource requirements. + - Optional duration in seconds relative to the startTime that the job may be active + before the system tries to terminate it; value must be positive integer aliases: - - job__node_name - spec_job_template_node_selector: + - job__active_deadline_seconds + type: int + spec_job_template_spec_completions: description: - - NodeSelector is a selector which must be true for the pod to fit on a node. - Selector which must match a node's labels for the pod to be scheduled on that - node. + - Completions specifies the desired number of successfully finished pods the job + should be run with. Setting to nil means that the success of any pod signals + the success of all pods, and allows parallelism to have any positive value. + Setting to 1 means that parallelism is limited to 1 and the success of that + pod signals the success of the job. aliases: - - job__node_selector - type: dict - spec_job_template_parallelism: + - job__completions + type: int + spec_job_template_spec_manual_selector: + description: + - ManualSelector controls generation of pod labels and pod selectors. Leave `manualSelector` + unset unless you are certain what you are doing. When false or unset, the system + pick labels unique to this job and appends those labels to the pod template. + When true, the user is responsible for picking unique labels and specifying + the selector. Failure to pick a unique label may cause this and other jobs to + not function correctly. However, You may see `manualSelector=true` in jobs that + were created with the old `extensions/v1beta1` API. + aliases: + - job__manual_selector + type: bool + spec_job_template_spec_parallelism: description: - Parallelism specifies the maximum desired number of pods the job should run at any given time. The actual number of pods running in steady state will be @@ -205,13 +144,131 @@ options: aliases: - job__parallelism type: int - spec_job_template_restart_policy: + spec_job_template_spec_selector_match_expressions: + description: + - matchExpressions is a list of label selector requirements. The requirements + are ANDed. + aliases: + - job__selector_match_expressions + type: list + spec_job_template_spec_selector_match_labels: + description: + - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels + map is equivalent to an element of matchExpressions, whose key field is "key", + the operator is "In", and the values array contains only "value". The requirements + are ANDed. + aliases: + - job__selector_match_labels + type: dict + spec_job_template_spec_template_metadata_annotations: + description: + - Annotations is an unstructured key value map stored with a resource that may + be set by external tools to store and retrieve arbitrary metadata. They are + not queryable and should be preserved when modifying objects. + aliases: + - job__metadata_annotations + type: dict + spec_job_template_spec_template_metadata_labels: + description: + - Map of string keys and values that can be used to organize and categorize (scope + and select) objects. May match selectors of replication controllers and services. + aliases: + - job__metadata_labels + type: dict + spec_job_template_spec_template_metadata_name: + description: + - Name must be unique within a namespace. Is required when creating resources, + although some resources may allow a client to request the generation of an appropriate + name automatically. Name is primarily intended for creation idempotence and + configuration definition. Cannot be updated. + aliases: + - job__metadata_name + spec_job_template_spec_template_metadata_namespace: + description: + - Namespace defines the space within each name must be unique. An empty namespace + is equivalent to the "default" namespace, but "default" is the canonical representation. + Not all objects are required to be scoped to a namespace - the value of this + field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. + aliases: + - job__metadata_namespace + spec_job_template_spec_template_spec_active_deadline_seconds: + description: + - Optional duration in seconds the pod may be active on the node relative to StartTime + before the system will actively try to mark it failed and kill associated containers. + Value must be a positive integer. + aliases: + - job__active_deadline_seconds + type: int + spec_job_template_spec_template_spec_containers: + description: + - List of containers belonging to the pod. Containers cannot currently be added + or removed. There must be at least one container in a Pod. Cannot be updated. + aliases: + - job__containers + type: list + spec_job_template_spec_template_spec_dns_policy: + description: + - Set DNS policy for containers within the pod. One of 'ClusterFirst' or 'Default'. + Defaults to "ClusterFirst". + aliases: + - job__dns_policy + spec_job_template_spec_template_spec_host_ipc: + description: + - "Use the host's ipc namespace. Optional: Default to false." + aliases: + - job__host_ipc + type: bool + spec_job_template_spec_template_spec_host_network: + description: + - Host networking requested for this pod. Use the host's network namespace. If + this option is set, the ports that will be used must be specified. Default to + false. + aliases: + - job__host_network + type: bool + spec_job_template_spec_template_spec_host_pid: + description: + - "Use the host's pid namespace. Optional: Default to false." + aliases: + - job__host_pid + type: bool + spec_job_template_spec_template_spec_hostname: + description: + - Specifies the hostname of the Pod If not specified, the pod's hostname will + be set to a system-defined value. + aliases: + - job__hostname + spec_job_template_spec_template_spec_image_pull_secrets: + description: + - ImagePullSecrets is an optional list of references to secrets in the same namespace + to use for pulling any of the images used by this PodSpec. If specified, these + secrets will be passed to individual puller implementations for them to use. + For example, in the case of docker, only DockerConfig type secrets are honored. + aliases: + - job__image_pull_secrets + type: list + spec_job_template_spec_template_spec_node_name: + description: + - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, + the scheduler simply schedules this pod onto that node, assuming that it fits + resource requirements. + aliases: + - job__node_name + spec_job_template_spec_template_spec_node_selector: + description: + - NodeSelector is a selector which must be true for the pod to fit on a node. + Selector which must match a node's labels for the pod to be scheduled on that + node. + aliases: + - job__node_selector + type: dict + spec_job_template_spec_template_spec_restart_policy: description: - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. aliases: - job__restart_policy - spec_job_template_security_context_fs_group: + spec_job_template_spec_template_spec_security_context_fs_group: description: - "A special supplemental group that applies to all containers in a pod. Some\ \ volume types allow the Kubelet to change the ownership of that volume to be\ @@ -222,7 +279,7 @@ options: aliases: - job__securitycontext_fs_group type: int - spec_job_template_security_context_run_as_non_root: + spec_job_template_spec_template_spec_security_context_run_as_non_root: description: - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) @@ -232,7 +289,7 @@ options: aliases: - job__securitycontext_run_as_non_root type: bool - spec_job_template_security_context_run_as_user: + spec_job_template_spec_template_spec_security_context_run_as_user: description: - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set @@ -241,27 +298,27 @@ options: aliases: - job__securitycontext_run_as_user type: int - spec_job_template_security_context_se_linux_options_level: + spec_job_template_spec_template_spec_security_context_se_linux_options_level: description: - Level is SELinux level label that applies to the container. aliases: - job__securitycontext_se_linux_options_level - spec_job_template_security_context_se_linux_options_role: + spec_job_template_spec_template_spec_security_context_se_linux_options_role: description: - Role is a SELinux role label that applies to the container. aliases: - job__securitycontext_se_linux_options_role - spec_job_template_security_context_se_linux_options_type: + spec_job_template_spec_template_spec_security_context_se_linux_options_type: description: - Type is a SELinux type label that applies to the container. aliases: - job__securitycontext_se_linux_options_type - spec_job_template_security_context_se_linux_options_user: + spec_job_template_spec_template_spec_security_context_se_linux_options_user: description: - User is a SELinux user label that applies to the container. aliases: - job__securitycontext_se_linux_options_user - spec_job_template_security_context_supplemental_groups: + spec_job_template_spec_template_spec_security_context_supplemental_groups: description: - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any @@ -269,41 +326,25 @@ options: aliases: - job__securitycontext_supplemental_groups type: list - spec_job_template_selector_match_expressions: - description: - - matchExpressions is a list of label selector requirements. The requirements - are ANDed. - aliases: - - job__selector_match_expressions - type: list - spec_job_template_selector_match_labels: - description: - - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels - map is equivalent to an element of matchExpressions, whose key field is "key", - the operator is "In", and the values array contains only "value". The requirements - are ANDed. - aliases: - - job__selector_match_labels - type: dict - spec_job_template_service_account: + spec_job_template_spec_template_spec_service_account: description: - 'DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead.' aliases: - job__service_account - spec_job_template_service_account_name: + spec_job_template_spec_template_spec_service_account_name: description: - ServiceAccountName is the name of the ServiceAccount to use to run this pod. aliases: - job__service_account_name - spec_job_template_subdomain: + spec_job_template_spec_template_spec_subdomain: description: - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. aliases: - job__subdomain - spec_job_template_termination_grace_period_seconds: + spec_job_template_spec_template_spec_termination_grace_period_seconds: description: - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates @@ -315,7 +356,7 @@ options: aliases: - job__termination_grace_period_seconds type: int - spec_job_template_volumes: + spec_job_template_spec_template_spec_volumes: description: - List of volumes that can be mounted by containers belonging to the pod. aliases: @@ -340,6 +381,11 @@ options: aliases: - suspend type: bool + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v2alpha1_cron_job_list.py b/library/k8s_v2alpha1_cron_job_list.py index a8fd6977..4429b05e 100644 --- a/library/k8s_v2alpha1_cron_job_list.py +++ b/library/k8s_v2alpha1_cron_job_list.py @@ -47,6 +47,16 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v2alpha1_job.py b/library/k8s_v2alpha1_job.py index 0231689b..188bed55 100644 --- a/library/k8s_v2alpha1_job.py +++ b/library/k8s_v2alpha1_job.py @@ -56,7 +56,6 @@ options: although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - required: true namespace: description: - Namespace defines the space within each name must be unique. An empty namespace @@ -66,6 +65,11 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict spec_active_deadline_seconds: description: - Optional duration in seconds relative to the startTime that the job may be active @@ -120,62 +124,6 @@ options: aliases: - selector_match_labels type: dict - spec_template_active_deadline_seconds: - description: - - Optional duration in seconds the pod may be active on the node relative to StartTime - before the system will actively try to mark it failed and kill associated containers. - Value must be a positive integer. - aliases: - - active_deadline_seconds - type: int - spec_template_containers: - description: - - List of containers belonging to the pod. Containers cannot currently be added - or removed. There must be at least one container in a Pod. Cannot be updated. - aliases: - - containers - type: list - spec_template_dns_policy: - description: - - Set DNS policy for containers within the pod. One of 'ClusterFirst' or 'Default'. - Defaults to "ClusterFirst". - aliases: - - dns_policy - spec_template_host_ipc: - description: - - "Use the host's ipc namespace. Optional: Default to false." - aliases: - - host_ipc - type: bool - spec_template_host_network: - description: - - Host networking requested for this pod. Use the host's network namespace. If - this option is set, the ports that will be used must be specified. Default to - false. - aliases: - - host_network - type: bool - spec_template_host_pid: - description: - - "Use the host's pid namespace. Optional: Default to false." - aliases: - - host_pid - type: bool - spec_template_hostname: - description: - - Specifies the hostname of the Pod If not specified, the pod's hostname will - be set to a system-defined value. - aliases: - - hostname - spec_template_image_pull_secrets: - description: - - ImagePullSecrets is an optional list of references to secrets in the same namespace - to use for pulling any of the images used by this PodSpec. If specified, these - secrets will be passed to individual puller implementations for them to use. - For example, in the case of docker, only DockerConfig type secrets are honored. - aliases: - - image_pull_secrets - type: list spec_template_metadata_annotations: description: - Annotations is an unstructured key value map stored with a resource that may @@ -193,21 +141,76 @@ options: although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - required: true spec_template_metadata_namespace: description: - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. - spec_template_node_name: + spec_template_spec_active_deadline_seconds: + description: + - Optional duration in seconds the pod may be active on the node relative to StartTime + before the system will actively try to mark it failed and kill associated containers. + Value must be a positive integer. + aliases: + - active_deadline_seconds + type: int + spec_template_spec_containers: + description: + - List of containers belonging to the pod. Containers cannot currently be added + or removed. There must be at least one container in a Pod. Cannot be updated. + aliases: + - containers + type: list + spec_template_spec_dns_policy: + description: + - Set DNS policy for containers within the pod. One of 'ClusterFirst' or 'Default'. + Defaults to "ClusterFirst". + aliases: + - dns_policy + spec_template_spec_host_ipc: + description: + - "Use the host's ipc namespace. Optional: Default to false." + aliases: + - host_ipc + type: bool + spec_template_spec_host_network: + description: + - Host networking requested for this pod. Use the host's network namespace. If + this option is set, the ports that will be used must be specified. Default to + false. + aliases: + - host_network + type: bool + spec_template_spec_host_pid: + description: + - "Use the host's pid namespace. Optional: Default to false." + aliases: + - host_pid + type: bool + spec_template_spec_hostname: + description: + - Specifies the hostname of the Pod If not specified, the pod's hostname will + be set to a system-defined value. + aliases: + - hostname + spec_template_spec_image_pull_secrets: + description: + - ImagePullSecrets is an optional list of references to secrets in the same namespace + to use for pulling any of the images used by this PodSpec. If specified, these + secrets will be passed to individual puller implementations for them to use. + For example, in the case of docker, only DockerConfig type secrets are honored. + aliases: + - image_pull_secrets + type: list + spec_template_spec_node_name: description: - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. aliases: - node_name - spec_template_node_selector: + spec_template_spec_node_selector: description: - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that @@ -215,13 +218,13 @@ options: aliases: - node_selector type: dict - spec_template_restart_policy: + spec_template_spec_restart_policy: description: - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. aliases: - restart_policy - spec_template_security_context_fs_group: + spec_template_spec_security_context_fs_group: description: - "A special supplemental group that applies to all containers in a pod. Some\ \ volume types allow the Kubelet to change the ownership of that volume to be\ @@ -232,7 +235,7 @@ options: aliases: - security_context_fs_group type: int - spec_template_security_context_run_as_non_root: + spec_template_spec_security_context_run_as_non_root: description: - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) @@ -242,7 +245,7 @@ options: aliases: - security_context_run_as_non_root type: bool - spec_template_security_context_run_as_user: + spec_template_spec_security_context_run_as_user: description: - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set @@ -251,27 +254,27 @@ options: aliases: - security_context_run_as_user type: int - spec_template_security_context_se_linux_options_level: + spec_template_spec_security_context_se_linux_options_level: description: - Level is SELinux level label that applies to the container. aliases: - security_context_se_linux_options_level - spec_template_security_context_se_linux_options_role: + spec_template_spec_security_context_se_linux_options_role: description: - Role is a SELinux role label that applies to the container. aliases: - security_context_se_linux_options_role - spec_template_security_context_se_linux_options_type: + spec_template_spec_security_context_se_linux_options_type: description: - Type is a SELinux type label that applies to the container. aliases: - security_context_se_linux_options_type - spec_template_security_context_se_linux_options_user: + spec_template_spec_security_context_se_linux_options_user: description: - User is a SELinux user label that applies to the container. aliases: - security_context_se_linux_options_user - spec_template_security_context_supplemental_groups: + spec_template_spec_security_context_supplemental_groups: description: - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any @@ -279,25 +282,25 @@ options: aliases: - security_context_supplemental_groups type: list - spec_template_service_account: + spec_template_spec_service_account: description: - 'DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead.' aliases: - service_account - spec_template_service_account_name: + spec_template_spec_service_account_name: description: - ServiceAccountName is the name of the ServiceAccount to use to run this pod. aliases: - service_account_name - spec_template_subdomain: + spec_template_spec_subdomain: description: - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. aliases: - subdomain - spec_template_termination_grace_period_seconds: + spec_template_spec_termination_grace_period_seconds: description: - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates @@ -309,12 +312,17 @@ options: aliases: - termination_grace_period_seconds type: int - spec_template_volumes: + spec_template_spec_volumes: description: - List of volumes that can be mounted by containers belonging to the pod. aliases: - volumes type: list + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. diff --git a/library/k8s_v2alpha1_job_list.py b/library/k8s_v2alpha1_job_list.py index 2380be78..64c15a1e 100644 --- a/library/k8s_v2alpha1_job_list.py +++ b/library/k8s_v2alpha1_job_list.py @@ -47,6 +47,16 @@ options: password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). + resource_definition: + description: + - Provide the YAML definition for the object, bypassing any modules parameters + intended to define object attributes. + type: dict + src: + description: + - Provide a path to a file containing the YAML definition of the object. Mutually + exclusive with I(resource_definition). + type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API.