def load()

in mysqloperator/controller/innodbcluster/cluster_api.py [0:0]


    def load(self, spec: dict) -> None:
        self._load(spec, spec, "spec")

        self.service = ServiceSpec()
        section = InnoDBClusterSpecProperties.SERVICE.value
        if section in spec:
            self.service.parse(dget_dict(spec, section, "spec"), f"spec.{section}")

        # Router Options
        self.router = RouterSpec()
        section = InnoDBClusterSpecProperties.ROUTER.value
        if section in spec:
            self.router.parse(dget_dict(spec, section, "spec"), f"spec.{section}")

        if not self.router.tlsSecretName:
            self.router.tlsSecretName = f"{self.name}-router-tls"

        self.backupProfiles = []
        section = InnoDBClusterSpecProperties.BACKUP_PROFILES.value
        if section in spec:
            profiles = dget_list(spec, section, "spec", [], content_type=dict)
            for profile in profiles:
                self.backupProfiles.append(self.parse_backup_profile(profile))

        self.backupSchedules = []
        section = InnoDBClusterSpecProperties.BACKUP_SCHEDULES.value
        if section in spec:
            schedules = dget_list(spec, section, "spec", [], content_type=dict)
            for schedule in schedules:
                self.backupSchedules.append(self.parse_backup_schedule(schedule))

        self.readReplicas = []
        section = "readReplicas"
        if section in spec:
            read_replicas = dget_list(spec, section, "spec", [], content_type=dict)
            i = 0
            for replica in read_replicas:
                self.readReplicas.append(self.parse_read_replica(spec, replica, f"spec.{section}[{i}]"))
                i += 1