File tree Expand file tree Collapse file tree 2 files changed +1
-18
lines changed
Expand file tree Collapse file tree 2 files changed +1
-18
lines changed Original file line number Diff line number Diff line change @@ -21,18 +21,6 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
2121# into which the operator is deployed
2222
2323
24- echo " "
25- echo " creating pgo-backrest-repo-config in namespace " $1
26-
27- $PGO_CMD --namespace=$1 delete secret pgo-backrest-repo-config
28-
29- $PGO_CMD --namespace=$1 create secret generic pgo-backrest-repo-config \
30- --from-file=config=$PGOROOT /conf/pgo-backrest-repo/config \
31- --from-file=sshd_config=$PGOROOT /conf/pgo-backrest-repo/sshd_config \
32- --from-file=aws-s3-credentials.yaml=$PGOROOT /conf/pgo-backrest-repo/aws-s3-credentials.yaml \
33- --from-file=aws-s3-ca.crt=$PGOROOT /conf/pgo-backrest-repo/aws-s3-ca.crt
34-
35-
3624echo " "
3725echo " creating target rbac role and rolebinding in namespace " $1
3826echo " operator is assumed to be deployed into " $2
Original file line number Diff line number Diff line change @@ -46,14 +46,9 @@ source $DIR/gen-sshd-keys.sh
4646IFS=' , ' read -r -a array <<< " $NAMESPACE"
4747
4848echo " "
49- echo " create pgo-backrest-repo-config Secret into each namespace the Operator is watching..."
49+ echo " create required rbac in each namespace the Operator is watching..."
5050for ns in " ${array[@]} "
5151do
52- $PGO_CMD get secret pgo-backrest-repo-config --namespace=$ns > /dev/null 2> /dev/null
53- if [ $? -eq 0 ]
54- then
55- $PGO_CMD delete secret pgo-backrest-repo-config --namespace=$ns > /dev/null 2> /dev/null
56- fi
5752 $DIR /create-target-rbac.sh $ns $PGO_OPERATOR_NAMESPACE
5853done
5954
You can’t perform that action at this time.
0 commit comments