carvel-dev / kapp-controller

Continuous delivery and package management for Kubernetes.
https://carvel.dev/kapp-controller
Apache License 2.0
271 stars 106 forks source link

Create arm64 image for `kapp-controller` #573

Closed joshrosso closed 2 years ago

joshrosso commented 2 years ago

Currently, kapp-controller cannot run on an ARM64 host, as there is no image[0].

Could we switch to doing multi-arch builds and produce arm64 alongside amd64?

[0]:

$ crane manifest ghcr.io/vmware-tanzu/carvel-kapp-controller@sha256:a97d9d43b8b5d996f6510ae88ee761ac0f1d883d04fa7402b32f8ce6f9f875bd
{
   "schemaVersion": 2,
   "mediaType": "application/vnd.docker.distribution.manifest.v2+json",
   "config": {
      "mediaType": "application/vnd.docker.container.image.v1+json",
      "size": 5471,
      "digest": "sha256:57a03345e2ece35c67f3e1ede6cfa10008af841d04a1370e9491475cb31d072b"
   },
   "layers": [
      {
         "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
         "size": 17535726,
         "digest": "sha256:259970e9133ac11d271009754f24a11f5f6dd553a4fd7ce214f36a605be71adb"
      },
      {
         "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
         "size": 102329116,
         "digest": "sha256:38fa5ae806a2cba3ece15743ee641b6ad21c3f2fad4452c1259d759f224d778d"
      },
      {
         "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
         "size": 177,
         "digest": "sha256:544dd9b3e981ed95d9d45c19ab24ef223d73e1f2302bee286975b000597eed84"
      },
      {
         "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
         "size": 336772,
         "digest": "sha256:d6c4922f95f2bdf246883dec707a07438ada5bf8ceedd4bc13197abb3648ff02"
      },
      {
         "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
         "size": 12563601,
         "digest": "sha256:e140a67716edcf8efb267689ef6d9bc800bb30c2b87b7adf8e1802e9b4878f13"
      },
      {
         "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
         "size": 13737243,
         "digest": "sha256:3c616adb79a7fc3b98ef79a5844290daa8ded835027acd3cf26cd16cfe6bc400"
      },
      {
         "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
         "size": 10912475,
         "digest": "sha256:b853756a6369238b2b2f94e657b7597f63b0cc917b99c9316582edcea1a4ba3d"
      },
      {
         "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
         "size": 6437530,
         "digest": "sha256:70ec834fcf4241aea9634bb05119afe861ab51fd4b7a1b2127e26b17205db578"
      },
      {
         "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
         "size": 7039747,
         "digest": "sha256:82b1d1a8eae1bc1d7a7bce092fd60d4243fb39ae88253b76252f6808f8b50cef"
      },
      {
         "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
         "size": 8371356,
         "digest": "sha256:4e87932c7ca35afbaa99b438fbdb84ead1f4b62a2a16639c4ed3c041c814b0f1"
      },
      {
         "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
         "size": 13522494,
         "digest": "sha256:433dd29b575264c4847b163177f6b765db11df38c35a9598360be91f04e031e8"
      },
      {
         "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
         "size": 2442718,
         "digest": "sha256:95525999d6dbd611b77fabda007fa3129ab8b8a4cbf7e19a5a39c0cf91c34465"
      },
      {
         "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
         "size": 5510531,
         "digest": "sha256:6fde91471c4ff553a35eee899bed1c01ebac1f9ce309447c0e1ceed5d274b10a"
      },
      {
         "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
         "size": 21091266,
         "digest": "sha256:3d3bef3596e24879faf108e6d1b3b9b0dfa99445c1483f2882470df490182007"
      },
      {
         "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
         "size": 29198052,
         "digest": "sha256:ebeb9d7977366aac485ef35389a24f1d9673d1b38ce4097e076d04a28c25e18e"
      }
   ]
}
benmoss commented 2 years ago

Unfortunately we're still somewhat blocked on kbld providing image manifest support