'Constructor for Registry
a registry consists of 3 or more parts
- dc/docker-registry
- svc/docker-registry
Parameters:
:registry_config:
:verbose:'

def __init__(self, registry_config, verbose=False):

    super(Registry, self).__init__(registry_config.namespace, registry_config.kubeconfig, verbose)
    self.version = OCVersion(registry_config.kubeconfig, verbose)
    self.svc_ip = None
    self.portal_ip = None
    self.config = registry_config
    self.verbose = verbose
    self.registry_parts = [{'kind': 'dc', 'name': self.config.name}, {'kind': 'svc', 'name': self.config.name}]
    self.__prepared_registry = None
    self.volume_mounts = []
    self.volumes = []
    if self.config.config_options['volume_mounts']['value']:
        for volume in self.config.config_options['volume_mounts']['value']:
            volume_info = {'secret_name': volume.get('secret_name', None), 'name': volume.get('name', None), 'type': volume.get('type', None), 'path': volume.get('path', None), 'claimName': volume.get('claim_name', None), 'claimSize': volume.get('claim_size', None)}
            (vol, vol_mount) = Volume.create_volume_structure(volume_info)
            self.volumes.append(vol)
            self.volume_mounts.append(vol_mount)
    self.dconfig = None
    self.svc = None
