obj 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. # flake8: noqa
  2. # pylint: skip-file
  3. DOCUMENTATION = '''
  4. ---
  5. module: oc_obj
  6. short_description: Generic interface to openshift objects
  7. description:
  8. - Manage openshift objects programmatically.
  9. options:
  10. state:
  11. description:
  12. - Currently present is only supported state.
  13. required: true
  14. default: present
  15. choices: ["present", "absent", "list"]
  16. aliases: []
  17. kubeconfig:
  18. description:
  19. - The path for the kubeconfig file to use for authentication
  20. required: false
  21. default: /etc/origin/master/admin.kubeconfig
  22. aliases: []
  23. debug:
  24. description:
  25. - Turn on debug output.
  26. required: false
  27. default: False
  28. aliases: []
  29. name:
  30. description:
  31. - Name of the object that is being queried.
  32. required: false
  33. default: None
  34. aliases: []
  35. namespace:
  36. description:
  37. - The namespace where the object lives.
  38. required: false
  39. default: str
  40. aliases: []
  41. all_namespace:
  42. description:
  43. - The namespace where the object lives.
  44. required: false
  45. default: false
  46. aliases: []
  47. kind:
  48. description:
  49. - The kind attribute of the object. e.g. dc, bc, svc, route. May be a comma-separated list, e.g. "dc,po,svc".
  50. required: True
  51. default: None
  52. aliases: []
  53. files:
  54. description:
  55. - A list of files provided for object
  56. required: false
  57. default: None
  58. aliases: []
  59. delete_after:
  60. description:
  61. - Whether or not to delete the files after processing them.
  62. required: false
  63. default: false
  64. aliases: []
  65. content:
  66. description:
  67. - Content of the object being managed.
  68. required: false
  69. default: None
  70. aliases: []
  71. force:
  72. description:
  73. - Whether or not to force the operation
  74. required: false
  75. default: None
  76. aliases: []
  77. selector:
  78. description:
  79. - Selector that gets added to the query.
  80. required: false
  81. default: None
  82. aliases: []
  83. author:
  84. - "Kenny Woodson <kwoodson@redhat.com>"
  85. extends_documentation_fragment: []
  86. '''
  87. EXAMPLES = '''
  88. oc_obj:
  89. kind: dc
  90. name: router
  91. namespace: default
  92. register: router_output
  93. '''