def set_olm_operator(self, operator_name, properties=None):
    log.info(f'Setting {operator_name} for cluster: {self.id}')
    cluster = self.api_client.cluster_get(self.id)
    if (operator_name in [o.name for o in cluster.monitored_operators]):
        return
    olm_operators = []
    for operator in cluster.monitored_operators:
        if (operator.operator_type == OperatorType.BUILTIN):
            continue
        olm_operators.append({'name': operator.name, 'properties': operator.properties})
    olm_operators.append({'name': operator_name, 'properties': properties})
    self._config.olm_operators = olm_operators
    self.api_client.update_cluster(self.id, {'olm_operators': olm_operators})
def set_olm_operator(self, operator_name, properties=None):
    log.info(f'Setting {operator_name} for cluster: {self.id}')
    cluster = self.api_client.cluster_get(self.id)
    if (operator_name in [o.name for o in cluster.monitored_operators]):
        return
    olm_operators = []
    for operator in cluster.monitored_operators:
        if (operator.operator_type == OperatorType.BUILTIN):
            continue
        olm_operators.append({'name': operator.name, 'properties': operator.properties})
    olm_operators.append({'name': operator_name, 'properties': properties})
    self._config.olm_operators = olm_operators
    self.api_client.update_cluster(self.id, {'olm_operators': olm_operators})