replicationcontroller.py 803 B

123456789101112131415161718192021
  1. # pylint: skip-file
  2. # flake8: noqa
  3. # pylint: disable=too-many-public-methods
  4. class ReplicationController(DeploymentConfig):
  5. ''' Class to model a replicationcontroller openshift object.
  6. Currently we are modeled after a deployment config since they
  7. are very similar. In the future, when the need arises we
  8. will add functionality to this class.
  9. '''
  10. replicas_path = "spec.replicas"
  11. env_path = "spec.template.spec.containers[0].env"
  12. volumes_path = "spec.template.spec.volumes"
  13. container_path = "spec.template.spec.containers"
  14. volume_mounts_path = "spec.template.spec.containers[0].volumeMounts"
  15. def __init__(self, content):
  16. ''' Constructor for ReplicationController '''
  17. super(ReplicationController, self).__init__(content=content)