diff --git a/extract/extract/extractors/zalando_de.py b/extract/extract/extractors/zalando_de.py index e37c6a12..59c9b126 100644 --- a/extract/extract/extractors/zalando_de.py +++ b/extract/extract/extractors/zalando_de.py @@ -259,10 +259,10 @@ def get_sustainability_strings(parsed_page: ParsedPage) -> Iterator[str]: continue for json_value in json_values: match json_value: - case {"sustainabilityClusterKind": "certificates", "attributes": [*attributes]}: - for attribute in attributes: - if "label" in attribute: - yield urllib.parse.unquote(attribute["label"]) + case {"certificationsCluster": {'certificates': [*certificates], **other}}: + for certificate in certificates: + if isinstance(certificate, dict) and "label" in certificate.keys(): + yield urllib.parse.unquote(certificate.get("label")) case {**json_object}: json_values += json_object.values() case [*json_array]: diff --git a/infrastructure/charts/start-job/values.yaml b/infrastructure/charts/start-job/values.yaml index 00fd3283..fcc7fc5c 100644 --- a/infrastructure/charts/start-job/values.yaml +++ b/infrastructure/charts/start-job/values.yaml @@ -12,4 +12,5 @@ env: - name: TZ value: Europe/Berlin -imagePullSecrets: [] +imagePullSecrets: + - name: private-registry-auth