Skip to content

Commit

Permalink
Remove katib webhook when undeploy (#935)
Browse files Browse the repository at this point in the history
  • Loading branch information
hougangliu authored and k8s-ci-robot committed Nov 29, 2019
1 parent b52cd1a commit 68de7a6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions scripts/v1alpha3/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ set -o xtrace
SCRIPT_ROOT=$(dirname ${BASH_SOURCE})/../..

cd ${SCRIPT_ROOT}
kubectl get validatingwebhookconfigurations katib-validating-webhook-config && kubectl delete validatingwebhookconfigurations katib-validating-webhook-config
kubectl get mutatingwebhookconfigurations katib-mutating-webhook-config && kubectl delete mutatingwebhookconfigurations katib-mutating-webhook-config
kubectl apply -f manifests/v1alpha3
kubectl apply -f manifests/v1alpha3/katib-controller
kubectl apply -f manifests/v1alpha3/manager
Expand Down
3 changes: 2 additions & 1 deletion scripts/v1alpha3/undeploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

set -o errexit
set -o nounset
set -o pipefail
set -o xtrace
Expand All @@ -37,4 +36,6 @@ kubectl delete -f manifests/v1alpha3/db
kubectl delete -f manifests/v1alpha3/ui
kubectl delete -f manifests/v1alpha3/pv
kubectl delete -f manifests/v1alpha3
kubectl get mutatingwebhookconfigurations katib-mutating-webhook-config && kubectl delete mutatingwebhookconfigurations katib-mutating-webhook-config
kubectl get validatingwebhookconfigurations katib-validating-webhook-config && kubectl delete validatingwebhookconfigurations katib-validating-webhook-config
cd - > /dev/null

0 comments on commit 68de7a6

Please sign in to comment.