replicationcontroller.py 599 B

12345678910111213141516
  1. # pylint: skip-file
  2. # flake8: noqa
  3. # pylint: disable=too-many-public-methods
  4. class ReplicationController(DeploymentConfig):
  5. ''' Class to wrap the oc command line tools '''
  6. replicas_path = "spec.replicas"
  7. env_path = "spec.template.spec.containers[0].env"
  8. volumes_path = "spec.template.spec.volumes"
  9. container_path = "spec.template.spec.containers"
  10. volume_mounts_path = "spec.template.spec.containers[0].volumeMounts"
  11. def __init__(self, content):
  12. ''' Constructor for ReplicationController '''
  13. super(ReplicationController, self).__init__(content=content)