- 
                Notifications
    You must be signed in to change notification settings 
- Fork 156
          Replace passing warnings to exit_json with AnsibleModule.warn for the few modules
          #1033
        
          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
base: main
Are you sure you want to change the base?
  
    Replace passing warnings to exit_json with AnsibleModule.warn for the few modules
  
  #1033
              Conversation
| Build succeeded. ✔️ ansible-galaxy-importer  SUCCESS in 3m 29s | 
| Unclear why I got the following in linter, but it's not related to my commit/PR:  | 
warnings to exit_json with AnsibleModule.warn for module k8s_drainwarnings to exit_json with AnsibleModule.warn for the few modules
      | Build succeeded. ✔️ ansible-galaxy-importer  SUCCESS in 3m 49s | 
| Build succeeded. ✔️ ansible-galaxy-importer  SUCCESS in 3m 39s | 
89a2e2f    to
    babbdcc      
    Compare
  
    | Build succeeded. ✔️ ansible-galaxy-importer  SUCCESS in 3m 27s | 
babbdcc    to
    ad7cc0c      
    Compare
  
    | Build succeeded. ✔️ ansible-galaxy-importer  SUCCESS in 3m 29s | 
This commit covers only module k8s_drain Using exit_json or fail_json for warningns is deprecated in ansible-core>=2.19.0 and will be removed in ansible-core>=2.23.0 Tested with ansible-core 2.19.3 as the latest released version on the time of commit and with 2.16.0 as the loverst version supported by kubernetes.core 6.x Resolves: ansible-collections#1031
ad7cc0c    to
    d98f951      
    Compare
  
    | Build succeeded. ✔️ ansible-galaxy-importer  SUCCESS in 3m 31s | 
SUMMARY
Using exit_json or
fail_jsonfor warnings is deprecated inansible-core>=2.19.0and will be removed inansible-core>=2.23.0Tested with ansible-core 2.19.3 as the latest released version at the time of commit and with 2.16.0 as the lowest version supported by kubernetes.core 6.x
Resolves: #1031
ISSUE TYPE
COMPONENT NAME
k8s_drain
k8s_rollback
k8s_scale
ADDITIONAL INFORMATION
The initial version of this PR covers only the module
k8s_drain, with the following commits extended to k8s_rollbackk8s_scale