open-horizon / anax

Horizon agent control system
https://open-horizon.github.io/docs/anax/docs/
Apache License 2.0
72 stars 99 forks source link

AgentImageCleanup: Agent handles new type of NMP #3986

Open LiilyZhang opened 6 months ago

LiilyZhang commented 6 months ago

The following section will be added to NMP for handling image on the agent:

“image_policy”: {
    “removal”: [
          {
              “image_name”: “image1:0.0.1”,
              “delete_after_minutes”: 30,
              “agent_downloaded_only”: true
          },
         {
             “image_name”: “*”,
             “delete_after_minutes”: 60,
             “agent_downloaded_only”: false
         }
    ]
}