Skip to content

Commit

Permalink
Remove refs to PaC namespace
Browse files Browse the repository at this point in the history
With PaC being installed by the OSP operator, we no longer need the
pipelines-as-code namespace. Here we cleanup references to that
namespace from the reset and test scripts.
  • Loading branch information
enarha authored and gabemontero committed Aug 30, 2023
1 parent 25c74ab commit a806b15
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
7 changes: 0 additions & 7 deletions developer/openshift/reset.sh
Original file line number Diff line number Diff line change
Expand Up @@ -237,13 +237,6 @@ uninstall_operators_and_controllers(){
kubectl delete operator "$gitops_operator"
fi

printf "\n Uninstalling PAC:\n"
kubectl delete -k "$GITOPS_DIR/pipelines-as-code" --ignore-not-found=true
pac_ns=$(kubectl get ns | grep -ie "pipelines-as-code" | cut -d " " -f 1)
if [[ -n "$pac_ns" ]]; then
kubectl delete ns "$pac_ns"
fi

printf "\n Uninstalling tekton-results:\n"
kubectl delete -k "$GITOPS_DIR/tekton-results" --ignore-not-found=true
tkn_results_ns=$(kubectl get ns | grep -ie "tekton-results" | cut -d " " -f 1)
Expand Down
5 changes: 0 additions & 5 deletions operator/test/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -270,11 +270,6 @@ test_security() {
echo " - Check Pod Host Network openshift-pipelines: "
check_host_network "openshift-pipelines"

echo " - Check Pod Security pipelines-as-code: "
check_pod_security "pipelines-as-code"
echo " - Check Pod Host Network pipelines-as-code: "
check_host_network "pipelines-as-code"

echo " - Check Pod Security tekton-results: "
check_pod_security "tekton-results"
echo " - Check Pod Host Network tekton-results: "
Expand Down

0 comments on commit a806b15

Please sign in to comment.