-
Notifications
You must be signed in to change notification settings - Fork 314
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[New module] - Add openshiftmanagedcluster_kubeconfig_info module #1238
[New module] - Add openshiftmanagedcluster_kubeconfig_info module #1238
Conversation
2e77737
to
128f6af
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@MaxBab Please keep same with the other module file naming format, rename to "azure_rm_openshiftmanagedclusterkubeconfig_info.py"
plugins/modules/azure_rm_openshiftmanagedcluster_kubeconfig_info.py
Outdated
Show resolved
Hide resolved
plugins/modules/azure_rm_openshiftmanagedcluster_kubeconfig_info.py
Outdated
Show resolved
Hide resolved
plugins/modules/azure_rm_openshiftmanagedcluster_kubeconfig_info.py
Outdated
Show resolved
Hide resolved
plugins/modules/azure_rm_openshiftmanagedcluster_kubeconfig_info.py
Outdated
Show resolved
Hide resolved
plugins/modules/azure_rm_openshiftmanagedcluster_kubeconfig_info.py
Outdated
Show resolved
Hide resolved
plugins/modules/azure_rm_openshiftmanagedcluster_kubeconfig_info.py
Outdated
Show resolved
Hide resolved
plugins/modules/azure_rm_openshiftmanagedcluster_kubeconfig_info.py
Outdated
Show resolved
Hide resolved
plugins/modules/azure_rm_openshiftmanagedcluster_kubeconfig_info.py
Outdated
Show resolved
Hide resolved
plugins/modules/azure_rm_openshiftmanagedcluster_kubeconfig_info.py
Outdated
Show resolved
Hide resolved
plugins/modules/azure_rm_openshiftmanagedcluster_kubeconfig_info.py
Outdated
Show resolved
Hide resolved
@MaxBab Please update! Thank you very much! |
128f6af
to
32c6936
Compare
Thank you for the comments. |
@MaxBab Thanks for your update! everything is OK, small changes request! |
plugins/modules/azure_rm_openshiftmanagedclusterkubeconfig_info.py
Outdated
Show resolved
Hide resolved
32c6936
to
d38bb2c
Compare
@Fred-sun Updated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please fix ansible-lint check return errors! Thank you very much!
plugins/modules/azure_rm_openshiftmanagedclusterkubeconfig_info.py
Outdated
Show resolved
Hide resolved
tests/integration/targets/azure_rm_openshiftmanagedcluster/tasks/main.yml
Outdated
Show resolved
Hide resolved
tests/integration/targets/azure_rm_openshiftmanagedcluster/tasks/main.yml
Outdated
Show resolved
Hide resolved
tests/integration/targets/azure_rm_openshiftmanagedcluster/tasks/main.yml
Outdated
Show resolved
Hide resolved
tests/integration/targets/azure_rm_openshiftmanagedcluster/tasks/main.yml
Outdated
Show resolved
Hide resolved
tests/integration/targets/azure_rm_openshiftmanagedcluster/tasks/main.yml
Outdated
Show resolved
Hide resolved
tests/integration/targets/azure_rm_openshiftmanagedcluster/tasks/main.yml
Outdated
Show resolved
Hide resolved
tests/integration/targets/azure_rm_openshiftmanagedcluster/tasks/main.yml
Outdated
Show resolved
Hide resolved
tests/integration/targets/azure_rm_openshiftmanagedcluster/tasks/main.yml
Outdated
Show resolved
Hide resolved
d38bb2c
to
16b6464
Compare
Add azure_rm_openshiftmanagedclusterkubeconfig_info module to fetch kubeconfig from the ARO cluster. The kubeconfig file could be fetched and registered or saved into a specified file. Example usage: ``` - name: Obtain kubeconfig file of ARO cluster azure_rm_openshiftmanagedclusterkubeconfig_info: name: myCluster resource_group: myResourceGroup register: kubeconf - name: Print registered kubeconfig file debug: msg: "{{ kubeconf['kubeconfig'] }}" - name: Fetch kubeconfig and save it as mycluster_kubeconfig filename azure_rm_openshiftmanagedclusterkubeconfig_info: name: myCluster resource_group: myResourceGroup path: ./files/mycluster_kubeconfig - name: Fetch kubeconfig and save it to specified directory (file will be named as kubeconfig by default) azure_rm_openshiftmanagedclusterkubeconfig_info: name: myCluster resource_group: myResourceGroup path: ./files/ ```
16b6464
to
d65c620
Compare
@Fred-sun Fixed. |
Switch from the local to collection module once upgrading to a version where the module is available. ansible-collections/azure#1238
Switch from the local to collection module once upgrading to a version where the module is available. ansible-collections/azure#1238
SUMMARY
Fixes #1235
Add azure_rm_openshiftmanagedcluster_kubeconfig_info module to fetch kubeconfig from the ARO cluster.
The kubeconfig file could be fetched and registered or saved into a specified file.
Example usage:
ISSUE TYPE