Skip to content

Commit

Permalink
clear mongo log
Browse files Browse the repository at this point in the history
  • Loading branch information
wallyxjh committed May 28, 2024
1 parent 06452a6 commit 8de85af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deploy/cloud/manifests/clear-mongo-log.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ spec:
serviceAccountName: clear-mongo-logs-sa
containers:
- name: clear-logs
image: bitnami/kubectl
image: bitnami/kubectl:1.28
command:
- /bin/bash
- -c
- |
clusters=$(kubectl get cluster.apps.kubeblocks.io -A | grep mongo)
clusters=$(kubectl get cluster.apps.kubeblocks.io -A -l clusterdefinition.kubeblocks.io/name=mongodb)
echo "$clusters" | while read -r line; do
namespace=$(echo "$line" | awk '{print $1}')
cluster_name=$(echo "$line" | awk '{print $2}')
Expand Down

0 comments on commit 8de85af

Please sign in to comment.