'replace currently stored labels with user provided labels'

def replace(self):

    cmd = self.cmd_template()
    extra_labels = self.get_extra_current_labels()
    if (len(extra_labels) > 0):
        for label in extra_labels:
            cmd.append('{}-'.format(label))
    if (len(self.labels) > 0):
        for label in self.labels:
            cmd.append('{}={}'.format(label['key'], label['value']))
    cmd.append('--overwrite')
    return self.openshift_cmd(cmd)
