-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
44 additions
and
5 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
components/operators/openshift-elasticsearch/operator/base/operator-group.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
apiVersion: operators.coreos.com/v1 | ||
kind: OperatorGroup | ||
metadata: | ||
name: openshift-operators | ||
name: global-operators | ||
namespace: openshift-operators | ||
spec: {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#!/bin/bash | ||
|
||
# Check the current project | ||
CURRENT_PROJECT=$(oc project --short=false) | ||
if [ $? -ne 0 ]; then | ||
echo "Failed to get the current project." | ||
exit 1 | ||
fi | ||
|
||
echo "You are currently in the project: $CURRENT_PROJECT" | ||
|
||
# Ask the user if they want to continue | ||
read -p "Would you like to continue and delete resources in the current project? (yes/no): " CONTINUE | ||
|
||
if [ "$CONTINUE" != "yes" ]; then | ||
echo "Operation cancelled." | ||
exit 0 | ||
fi | ||
|
||
oc delete argocd --all -n openshift-gitops | ||
if [ $? -ne 0 ]; then | ||
echo "Failed to delete argocd." | ||
exit 1 | ||
fi | ||
|
||
oc delete pods --all -n openshift-gitops-operator | ||
if [ $? -ne 0 ]; then | ||
echo "Failed to delete pods." | ||
exit 1 | ||
fi | ||
|
||
if [ $? -eq 0 ]; then | ||
echo "Commands executed successfully." | ||
else | ||
echo "Failed to execute commands on the remote server." | ||
exit 1 | ||
fi | ||
|
||
echo "rerun ./bootstrap.sh " |