From 9bc8bda291e88e1e0f678b7d23d2384322d00e85 Mon Sep 17 00:00:00 2001 From: Kenneth Koski Date: Wed, 19 Jan 2022 12:37:03 -0600 Subject: [PATCH] Add charmhub required fields and files Adds new charmcraft.yaml that is required by charmhub.io. Also adds name field to bundle.yaml, as required by charmhub.io. --- .github/workflows/test-charmed-katib.yaml | 2 ++ operators/bundle.yaml | 1 + operators/charmcraft.yaml | 1 + 3 files changed, 4 insertions(+) create mode 100644 operators/charmcraft.yaml diff --git a/.github/workflows/test-charmed-katib.yaml b/.github/workflows/test-charmed-katib.yaml index 7312c559d9e..06cf6076ce9 100644 --- a/.github/workflows/test-charmed-katib.yaml +++ b/.github/workflows/test-charmed-katib.yaml @@ -75,6 +75,8 @@ jobs: juju bundle deploy --build --destructive-mode --serial juju wait -wvt 300 + kubectl label namespace kubeflow katib.kubeflow.org/metrics-collector-injection=enabled + - name: Test Katib run: kubectl apply -f examples/v1beta1/hp-tuning/random.yaml diff --git a/operators/bundle.yaml b/operators/bundle.yaml index 5e336fff694..b85d8ad791b 100644 --- a/operators/bundle.yaml +++ b/operators/bundle.yaml @@ -1,3 +1,4 @@ +name: katib bundle: kubernetes applications: katib-controller: { charm: katib-controller, scale: 1 } diff --git a/operators/charmcraft.yaml b/operators/charmcraft.yaml new file mode 100644 index 00000000000..d7a57a879cd --- /dev/null +++ b/operators/charmcraft.yaml @@ -0,0 +1 @@ +type: bundle