remove unused and unsupported helm_args_common

This commit is contained in:
Yuriy Novostavskiy
2024-11-29 15:05:57 +00:00
parent 8c2d17e4be
commit 68ba05deb8

View File

@@ -123,6 +123,7 @@ failed:
returned: always returned: always
sample: false sample: false
changed: changed:
description: Indicate if the state of the registry was changed
type: bool type: bool
returned: always returned: always
""" """
@@ -135,14 +136,9 @@ from ansible.module_utils.common.process import get_bin_path
from ansible_collections.kubernetes.core.plugins.module_utils.helm import ( from ansible_collections.kubernetes.core.plugins.module_utils.helm import (
AnsibleHelmModule, AnsibleHelmModule,
) )
from ansible_collections.kubernetes.core.plugins.module_utils.helm_args_common import (
HELM_AUTH_ARG_SPEC,
HELM_AUTH_MUTUALLY_EXCLUSIVE,
)
def argument_spec(): def argument_spec():
arg_spec = copy.deepcopy(HELM_AUTH_ARG_SPEC)
arg_spec.update( arg_spec.update(
dict( dict(
host=dict(type="str", aliases=["registry_url"], required=True), host=dict(type="str", aliases=["registry_url"], required=True),
@@ -202,7 +198,7 @@ def main():
module = AnsibleHelmModule( module = AnsibleHelmModule(
argument_spec=argument_spec(), argument_spec=argument_spec(),
required_together=[["username", "password"]], required_together=[["username", "password"]],
mutually_exclusive=HELM_AUTH_MUTUALLY_EXCLUSIVE, mutually_exclusive=None,
supports_check_mode=True, supports_check_mode=True,
) )