diff --git a/src/registry.py b/src/registry.py index 2618c8e..17d02d2 100644 --- a/src/registry.py +++ b/src/registry.py @@ -51,10 +51,6 @@ class ManifestState(Enum): annotation_signed_string_key = "io.gardenlinux.oci.signed-string" -def attach_state(d: dict, state: str): - d["image_state"] = state - - def get_image_state(manifest: dict) -> str: if "annotations" not in manifest: logger.warning("No annotations set for manifest.") @@ -81,7 +77,6 @@ def NewManifestMetadata( manifest_meta_data["size"] = size manifest_meta_data["annotations"] = annotations manifest_meta_data["platform"] = platform_data - manifest_meta_data["artifactType"] = "" return manifest_meta_data @@ -328,7 +323,6 @@ def change_state(self, cname: str, version: str, architecture: str, new_state: s if "annotations" not in manifest: logger.warning("No annotations found in manifest, init annotations now.") manifest["annotations"] = {} - attach_state(manifest["annotations"], new_state) def attach_layer( self, @@ -484,7 +478,6 @@ def push_image_manifest( manifest_image["annotations"][ "org.opencontainers.image.description" ] = description - attach_state(manifest_image["annotations"], "") config_annotations = {"cname": cname, "architecture": architecture} conf, config_file = create_config_from_dict(dict(), config_annotations) @@ -509,7 +502,6 @@ def push_image_manifest( # This ends up in the index-entry for the manifest metadata_annotations = {"cname": cname, "architecture": architecture} - attach_state(metadata_annotations, "") metadata_annotations["feature_set"] = feature_set manifest_digest = self.get_digest(manifest_container) if manifest_digest != local_digest: diff --git a/src/schemas.py b/src/schemas.py index 51626e1..dcb5624 100644 --- a/src/schemas.py +++ b/src/schemas.py @@ -49,7 +49,6 @@ "digest": "", "size": 0, "annotations": {}, - "artifactType": "", } EmptyIndex = {