diff --git a/bruce_operator/__main__.py b/bruce_operator/__main__.py index 1b6371a..7abf16a 100644 --- a/bruce_operator/__main__.py +++ b/bruce_operator/__main__.py @@ -2,7 +2,7 @@ Usage: bruce-operator watch [--buildpacks|--apps] - bruce-operator fetch [--buildpack=] + bruce-operator fetch-buildpacks bruce-operator (-h | --help) Options: @@ -26,7 +26,7 @@ def main(): watch(fork=True) - if args["fetch"]: + if args["fetch-buildpacks"]: print("fetching") exit() diff --git a/bruce_operator/core.py b/bruce_operator/core.py index 600e1a1..7d3218c 100644 --- a/bruce_operator/core.py +++ b/bruce_operator/core.py @@ -146,13 +146,13 @@ class Operator: self.logger.info("Ensuring Buildpack volume resource...") kubectl(f"apply -f ./deploy/buildpacks-volume.yml -n {WATCH_NAMESPACE}") - def spawn_fetch_buildpack(self, buildpack_name): - self.logger.info(f"Pretending to fetch {buildpack_name!r} buildpack!") - self.spawn_self(f"fetch --buildpack={buildpack_name}", label="fetch") + def spawn_fetch_buildpacks(self): + for buildpack in self.installed_buildpacks: + self.logger.info(f"Pretending to fetch {buildpack_name!r} buildpack!") + self.spawn_self(f"fetch-buildpacks", label="fetch") def fetch_buildpacks(self): - for buildpack in self.installed_buildpacks: - self.spawn_fetch_buildpack(buildpack["metadata"]["name"]) + def watch(self): self.logger.info("Pretending to watch...") diff --git a/deploy/registry-service.yml b/deploy/registry-service.yml index cb7d042..f8266e9 100644 --- a/deploy/registry-service.yml +++ b/deploy/registry-service.yml @@ -11,8 +11,9 @@ metadata: spec: clusterIP: None ports: - - name: headless + - name: registry-http port: 80 + nodePort: 80 targetPort: 0 selector: io.kompose.service: registry