From eadee9a7d9536a223ba71b6de80b49b4b0a89b5a Mon Sep 17 00:00:00 2001 From: scrungus Date: Wed, 20 Mar 2024 12:40:12 +0000 Subject: [PATCH] add cluster-api janitor to devstack script cluster-api-janitor-openstack is a Kubernetes operator that cleans up resources created in OpenStack by the OpenStack Cloud Controller Manager (OCCM) and Cinder CSI plugin for Kubernetes clusters created using the Cluster API OpenStack infrastrucutre provider. We add this in the devstack script to better replicate our usual production deployment of a management cluster in the development environment Change-Id: Ie01e5060fb5ee6a12d93e4779043f8d4838291e3 --- devstack/contrib/new-devstack.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/devstack/contrib/new-devstack.sh b/devstack/contrib/new-devstack.sh index ca48f89..806f30a 100755 --- a/devstack/contrib/new-devstack.sh +++ b/devstack/contrib/new-devstack.sh @@ -255,6 +255,16 @@ helm upgrade cluster-api-addon-provider cluster-api-addon-provider \ --wait \ --timeout 10m +# Install janitor +helm upgrade cluster-api-janitor-openstack cluster-api-janitor-openstack \ + --install \ + --repo https://stackhpc.github.io/cluster-api-janitor-openstack \ + --version $CLUSTER_API_JANITOR_OPENSTACK \ + --namespace capi-janitor-system \ + --create-namespace \ + --wait \ + --timeout 10m + pip install python-magnumclient # Configure OpenStack auth