Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions src/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
Expand All @@ -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


Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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)
Expand All @@ -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:
Expand Down
1 change: 0 additions & 1 deletion src/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@
"digest": "",
"size": 0,
"annotations": {},
"artifactType": "",
}

EmptyIndex = {
Expand Down