diff --git a/changelogs/fragments/fix_sanity_errors.yml b/changelogs/fragments/fix_sanity_errors.yml new file mode 100644 index 00000000..0806f136 --- /dev/null +++ b/changelogs/fragments/fix_sanity_errors.yml @@ -0,0 +1,3 @@ +--- +trivial: + - Fix sanity validate-modules and yamllint failures. diff --git a/plugins/modules/helm_info.py b/plugins/modules/helm_info.py index aefd4477..5a7a5616 100644 --- a/plugins/modules/helm_info.py +++ b/plugins/modules/helm_info.py @@ -52,6 +52,7 @@ options: - If set to C(uninstalling), show releases that are currently being uninstalled. type: list elements: str + default: [] version_added: "2.3.0" get_all_values: description: diff --git a/plugins/modules/helm_template.py b/plugins/modules/helm_template.py index ab50f871..2a187257 100644 --- a/plugins/modules/helm_template.py +++ b/plugins/modules/helm_template.py @@ -98,6 +98,7 @@ options: required: false type: list elements: str + default: [] version_added: 2.4.0 values_files: description: diff --git a/plugins/modules/k8s_drain.py b/plugins/modules/k8s_drain.py index 31596d8c..0f353a6d 100644 --- a/plugins/modules/k8s_drain.py +++ b/plugins/modules/k8s_drain.py @@ -46,6 +46,7 @@ options: description: - Specify options to delete pods. - This option has effect only when C(state) is set to I(drain). + default: {} suboptions: terminate_grace_period: description: diff --git a/plugins/modules/k8s_info.py b/plugins/modules/k8s_info.py index 4b29be11..fdd5093a 100644 --- a/plugins/modules/k8s_info.py +++ b/plugins/modules/k8s_info.py @@ -38,10 +38,12 @@ options: description: List of label selectors to use to filter results type: list elements: str + default: [] field_selectors: description: List of field selectors to use to filter results type: list elements: str + default: [] extends_documentation_fragment: - kubernetes.core.k8s_auth_options diff --git a/plugins/modules/k8s_log.py b/plugins/modules/k8s_log.py index e52d5bce..48537e4a 100644 --- a/plugins/modules/k8s_log.py +++ b/plugins/modules/k8s_log.py @@ -47,6 +47,7 @@ options: - Only one of I(name) or I(label_selectors) may be provided. type: list elements: str + default: [] container: description: - Use to specify the container within a pod to grab the log from. diff --git a/plugins/modules/k8s_rollback.py b/plugins/modules/k8s_rollback.py index 8dfab459..8dd68629 100644 --- a/plugins/modules/k8s_rollback.py +++ b/plugins/modules/k8s_rollback.py @@ -24,10 +24,12 @@ options: description: List of label selectors to use to filter results. type: list elements: str + default: [] field_selectors: description: List of field selectors to use to filter results. type: list elements: str + default: [] extends_documentation_fragment: - kubernetes.core.k8s_auth_options - kubernetes.core.k8s_name_options diff --git a/plugins/modules/k8s_scale.py b/plugins/modules/k8s_scale.py index a7cdfe1e..c3e5f842 100644 --- a/plugins/modules/k8s_scale.py +++ b/plugins/modules/k8s_scale.py @@ -36,6 +36,7 @@ options: description: List of label selectors to use to filter results. type: list elements: str + default: [] version_added: 2.0.0 continue_on_error: description: diff --git a/tests/sanity/ignore-2.16.txt b/tests/sanity/ignore-2.16.txt new file mode 100644 index 00000000..95cd652a --- /dev/null +++ b/tests/sanity/ignore-2.16.txt @@ -0,0 +1,35 @@ +plugins/module_utils/client/discovery.py import-3.6!skip +plugins/module_utils/client/discovery.py import-3.7!skip +plugins/module_utils/client/discovery.py import-3.8!skip +plugins/module_utils/client/discovery.py import-3.9!skip +plugins/module_utils/client/discovery.py import-3.10!skip +plugins/module_utils/client/discovery.py import-3.11!skip +plugins/module_utils/client/resource.py import-3.6!skip +plugins/module_utils/client/resource.py import-3.7!skip +plugins/module_utils/client/resource.py import-3.8!skip +plugins/module_utils/client/resource.py import-3.9!skip +plugins/module_utils/client/resource.py import-3.10!skip +plugins/module_utils/client/resource.py import-3.11!skip +plugins/module_utils/k8sdynamicclient.py import-3.6!skip +plugins/module_utils/k8sdynamicclient.py import-3.7!skip +plugins/module_utils/k8sdynamicclient.py import-3.8!skip +plugins/module_utils/k8sdynamicclient.py import-3.9!skip +plugins/module_utils/k8sdynamicclient.py import-3.10!skip +plugins/module_utils/k8sdynamicclient.py import-3.11!skip +plugins/modules/k8s.py validate-modules:parameter-type-not-in-doc +plugins/modules/k8s_scale.py validate-modules:parameter-type-not-in-doc +plugins/modules/k8s_service.py validate-modules:parameter-type-not-in-doc +tests/unit/module_utils/fixtures/definitions.yml yamllint!skip +tests/unit/module_utils/fixtures/deployments.yml yamllint!skip +tests/unit/module_utils/fixtures/pods.yml yamllint!skip +tests/integration/targets/helm/files/appversionless-chart-v2/templates/configmap.yaml yamllint!skip +tests/integration/targets/helm/files/appversionless-chart/templates/configmap.yaml yamllint!skip +tests/integration/targets/helm/files/test-chart-v2/templates/configmap.yaml yamllint!skip +tests/integration/targets/helm/files/test-chart/templates/configmap.yaml yamllint!skip +tests/integration/targets/helm_diff/files/test-chart/templates/configmap.yaml yamllint!skip +tests/integration/targets/k8s_scale/files/deployment.yaml yamllint!skip +tests/sanity/refresh_ignore_files shebang!skip +plugins/modules/k8s.py validate-modules:return-syntax-error +plugins/modules/k8s_scale.py validate-modules:return-syntax-error +plugins/modules/k8s_service.py validate-modules:return-syntax-error +plugins/modules/k8s_taint.py validate-modules:return-syntax-error