From e20205fca954c9e0cc433744f6cd6ad025717634 Mon Sep 17 00:00:00 2001 From: Kostiantyn Kalynovskyi Date: Fri, 30 Apr 2021 14:15:20 +0000 Subject: [PATCH] Remove namespace from annotate BMH script Namespace isn't needed because source of truth is the document bundle now. Relates-To: #517 Change-Id: I1deff4521a3d82ffa6b493b797402ac64f50a80a --- .../function/phase-helpers/pause_bmh/kubectl_pause_bmh.sh | 1 - manifests/phases/executors.yaml | 3 --- 2 files changed, 4 deletions(-) diff --git a/manifests/function/phase-helpers/pause_bmh/kubectl_pause_bmh.sh b/manifests/function/phase-helpers/pause_bmh/kubectl_pause_bmh.sh index 181979077..6d9dec334 100644 --- a/manifests/function/phase-helpers/pause_bmh/kubectl_pause_bmh.sh +++ b/manifests/function/phase-helpers/pause_bmh/kubectl_pause_bmh.sh @@ -17,6 +17,5 @@ set -xe echo "Annotating BMH objects with a pause label in cluster with kubectl context ${KCTL_CONTEXT}" 1>&2 kubectl annotate \ --context $KCTL_CONTEXT \ - --namespace $CLUSTER_NAMESPACE \ --overwrite \ -f $RENDERED_BUNDLE_PATH baremetalhost.metal3.io/paused=true 1>&2 diff --git a/manifests/phases/executors.yaml b/manifests/phases/executors.yaml index c45ec1e98..0937339b5 100644 --- a/manifests/phases/executors.yaml +++ b/manifests/phases/executors.yaml @@ -396,13 +396,10 @@ apiVersion: airshipit.org/v1alpha1 kind: GenericContainer metadata: name: kubectl-pause-bmh - labels: - airshipit.org/deploy-k8s: "false" spec: image: quay.io/airshipit/toolbox:latest hostNetwork: true envVars: - - CLUSTER_NAMESPACE=default - RESOURCE_GROUP_FILTER=metal3.io - RESOURCE_VERSION_FILTER=v1alpha1 - RESOURCE_KIND_FILTER=BareMetalHost