This commit is contained in:
Thomas E Lackey 2024-01-30 22:44:33 -06:00
parent 3e7943b9fe
commit 23ce38e002

View File

@ -12,8 +12,6 @@
# You should have received a copy of the GNU Affero General Public License # You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http:#www.gnu.org/licenses/>. # along with this program. If not, see <http:#www.gnu.org/licenses/>.
import sys
from datetime import datetime, timezone from datetime import datetime, timezone
from pathlib import Path from pathlib import Path
@ -162,9 +160,9 @@ class K8sDeployer(Deployer):
print(f"{ingress_resp}") print(f"{ingress_resp}")
else: else:
if opts.o.debug: if opts.o.debug:
print(f"No ingress configured") print("No ingress configured")
def down(self, timeout, volumes): def down(self, timeout, volumes): # noqa: C901
self.connect_api() self.connect_api()
# Delete the k8s objects # Delete the k8s objects
# Create the host-path-mounted PVs for this deployment # Create the host-path-mounted PVs for this deployment
@ -244,7 +242,7 @@ class K8sDeployer(Deployer):
_check_delete_exception(e) _check_delete_exception(e)
else: else:
if opts.o.debug: if opts.o.debug:
print(f"No ingress to delete") print("No ingress to delete")
if self.is_kind(): if self.is_kind():
# Destroy the kind cluster # Destroy the kind cluster