From f9843580a0d3c8a91481ec41ffa1c40cd6ce52c3 Mon Sep 17 00:00:00 2001 From: Oliver Ni Date: Wed, 2 Nov 2022 20:47:55 -0700 Subject: [PATCH] Add buildkit --- apps/buildkit.py | 19 +++++++++++++++++++ apps/versions.toml | 4 ++++ cluster.toml | 3 +++ 3 files changed, 26 insertions(+) create mode 100644 apps/buildkit.py diff --git a/apps/buildkit.py b/apps/buildkit.py new file mode 100644 index 0000000..184b5ce --- /dev/null +++ b/apps/buildkit.py @@ -0,0 +1,19 @@ +from __future__ import annotations + +from typing import Generator + +import requests +import yaml + +from apps.versions import versions + +name = "buildkit" + + +def objects() -> Generator[dict, None, None]: + contents = requests.get( + f"https://raw.githubusercontent.com/moby/buildkit/{versions['buildkit']['version']}/examples/kubernetes/statefulset.rootless.yaml", + ) + contents.raise_for_status() + + yield yaml.safe_load(contents.text) diff --git a/apps/versions.toml b/apps/versions.toml index 5f3b878..fdc9cbd 100644 --- a/apps/versions.toml +++ b/apps/versions.toml @@ -17,6 +17,10 @@ github = "https://github.com/argoproj/argo-workflows" version = "1.6.3" github = "https://github.com/argoproj/argo-events" +[buildkit] +version = "v0.10" +github = "https://github.com/moby/buildkit" + [cert-manager] version = "1.6.1" helm = "https://charts.jetstack.io" diff --git a/cluster.toml b/cluster.toml index 003f683..040eb38 100644 --- a/cluster.toml +++ b/cluster.toml @@ -15,6 +15,9 @@ path = "apps/argocd.py" [modules.argoci] path = "apps/argoci.py" +[modules.buildkit] +path = "apps/buildkit.py" + [modules.cert-manager] path = "apps/cert_manager.py"