# flake8: noqa
# pylint: skip-file

DOCUMENTATION = '''
---
module: oc_route
short_description: Create, modify, and idempotently manage openshift routes.
description:
  - Manage openshift route objects programmatically.
options:
  state:
    description:
    - State controls the action that will be taken with resource
    - present - create the route
    - absent - remove the route
    - list - returns the current representiation of the route
    required: true
    default: present
    choices: ["present", "absent", "list"]
    aliases: []
  kubeconfig:
    description:
    - The path for the kubeconfig file to use for authentication
    required: false
    default: /etc/origin/master/admin.kubeconfig
    aliases: []
  debug:
    description:
    - Turn on debug output.
    required: false
    default: False
    aliases: []
  name:
    description:
    - Name of the object that is being queried.
    required: false
    default: None
    aliases: []
  namespace:
    description:
    - The namespace where the object lives.
    required: false
    default: str
    aliases: []
  labels:
    description:
    - The labels to apply on the route
    required: false
    default: None
    aliases: []
  tls_termination:
    description:
    - The options for termination. e.g. reencrypt
    required: false
    default: None
    aliases: []
  dest_cacert_path:
    description:
    - The path to the dest_cacert
    required: false
    default: None
    aliases: []
  cacert_path:
    description:
    - The path to the cacert
    required: false
    default: None
    aliases: []
  cert_path:
    description:
    - The path to the cert
    required: false
    default: None
    aliases: []
  key_path:
    description:
    - The path to the key
    required: false
    default: None
    aliases: []
  dest_cacert_content:
    description:
    - The dest_cacert content
    required: false
    default: None
    aliases: []
  cacert_content:
    description:
    - The cacert content
    required: false
    default: None
    aliases: []
  cert_content:
    description:
    - The cert content
    required: false
    default: None
    aliases: []
  service_name:
    description:
    - The name of the service that this route points to.
    required: false
    default: None
    aliases: []
  host:
    description:
    - The host that the route will use. e.g. myapp.x.y.z
    required: false
    default: None
    aliases: []
  port:
    description:
    - The Name of the service port or number of the container port the route will route traffic to
    required: false
    default: None
    aliases: []
author:
- "Kenny Woodson <kwoodson@redhat.com>"
extends_documentation_fragment: []
'''

EXAMPLES = '''
- name: Configure certificates for reencrypt route
  oc_route:
    name: myapproute
    namespace: awesomeapp
    cert_path: "/etc/origin/master/named_certificates/myapp_cert
    key_path: "/etc/origin/master/named_certificates/myapp_key
    cacert_path: "/etc/origin/master/named_certificates/myapp_cacert
    dest_cacert_content:  "{{ dest_cacert_content }}"
    service_name: myapp_php
    host: myapp.awesomeapp.openshift.com
    tls_termination: reencrypt
  run_once: true
'''
