mirror of
https://github.com/ansible-collections/kubernetes.core.git
synced 2026-05-08 05:52:37 +00:00
Minor refactor in helm_info and helm_repository (#117)
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
# Copyright: Ansible Project
|
# Copyright: (c) 2020, Ansible Project
|
||||||
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
|
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
|
||||||
from __future__ import absolute_import, division, print_function
|
from __future__ import absolute_import, division, print_function
|
||||||
__metaclass__ = type
|
__metaclass__ = type
|
||||||
@@ -23,7 +23,7 @@ requirements:
|
|||||||
- "yaml (https://pypi.org/project/PyYAML/)"
|
- "yaml (https://pypi.org/project/PyYAML/)"
|
||||||
|
|
||||||
description:
|
description:
|
||||||
- Get information (values, states, ...) from Helm package deployed inside the cluster
|
- Get information (values, states, ...) from Helm package deployed inside the cluster.
|
||||||
|
|
||||||
options:
|
options:
|
||||||
binary_path:
|
binary_path:
|
||||||
@@ -63,7 +63,7 @@ EXAMPLES = r'''
|
|||||||
release_namespace: monitoring
|
release_namespace: monitoring
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = r"""
|
RETURN = r'''
|
||||||
status:
|
status:
|
||||||
type: complex
|
type: complex
|
||||||
description: A dictionary of status output
|
description: A dictionary of status output
|
||||||
@@ -101,7 +101,7 @@ status:
|
|||||||
type: str
|
type: str
|
||||||
returned: always
|
returned: always
|
||||||
description: Dict of Values used to deploy
|
description: Dict of Values used to deploy
|
||||||
"""
|
'''
|
||||||
|
|
||||||
import traceback
|
import traceback
|
||||||
|
|
||||||
@@ -211,8 +211,8 @@ def main():
|
|||||||
|
|
||||||
if release_status is not None:
|
if release_status is not None:
|
||||||
module.exit_json(changed=False, status=release_status)
|
module.exit_json(changed=False, status=release_status)
|
||||||
else:
|
|
||||||
module.exit_json(changed=False)
|
module.exit_json(changed=False)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
# Copyright: Ansible Project
|
# Copyright: (c) 2020, Ansible Project
|
||||||
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
|
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
|
||||||
from __future__ import absolute_import, division, print_function
|
from __future__ import absolute_import, division, print_function
|
||||||
__metaclass__ = type
|
__metaclass__ = type
|
||||||
@@ -23,7 +23,7 @@ requirements:
|
|||||||
- "yaml (https://pypi.org/project/PyYAML/)"
|
- "yaml (https://pypi.org/project/PyYAML/)"
|
||||||
|
|
||||||
description:
|
description:
|
||||||
- Manage Helm repositories
|
- Manage Helm repositories.
|
||||||
|
|
||||||
options:
|
options:
|
||||||
binary_path:
|
binary_path:
|
||||||
|
|||||||
Reference in New Issue
Block a user