Skip to content

Commit e730222

Browse files
deliahuvishalbollu
authored andcommitted
Revert "Wait for resources to be deleted on cluster update"
This reverts commit 5566e6a. (cherry picked from commit 26596b6)
1 parent b874fc5 commit e730222

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

manager/install.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -122,25 +122,21 @@ function main() {
122122
echo "✓ configured autoscaling"
123123

124124
kubectl -n=cortex delete --ignore-not-found=true daemonset fluentd >/dev/null 2>&1 # Pods in DaemonSets cannot be modified
125-
until [ "$(kubectl -n=cortex get pods -l app=fluentd -o json | jq -j '.items | length')" -eq "0" ]; do sleep 1; done
126125
envsubst < manifests/fluentd.yaml | kubectl apply -f - >/dev/null
127126
echo "✓ configured logging"
128127

129128
kubectl -n=cortex delete --ignore-not-found=true daemonset cloudwatch-agent-statsd >/dev/null 2>&1 # Pods in DaemonSets cannot be modified
130-
until [ "$(kubectl -n=cortex get pods -l name=cloudwatch-agent-statsd -o json | jq -j '.items | length')" -eq "0" ]; do sleep 1; done
131129
envsubst < manifests/metrics-server.yaml | kubectl apply -f - >/dev/null
132130
envsubst < manifests/statsd.yaml | kubectl apply -f - >/dev/null
133131
echo "✓ configured metrics"
134132

135133
if [[ "$CORTEX_INSTANCE_TYPE" == p* ]] || [[ "$CORTEX_INSTANCE_TYPE" == g* ]]; then
136134
kubectl -n=cortex delete --ignore-not-found=true daemonset nvidia-device-plugin-daemonset >/dev/null 2>&1 # Pods in DaemonSets cannot be modified
137-
until [ "$(kubectl -n=kube-system get pods -l name=nvidia-device-plugin-ds -o json | jq -j '.items | length')" -eq "0" ]; do sleep 1; done
138135
envsubst < manifests/nvidia.yaml | kubectl apply -f - >/dev/null
139136
echo "✓ configured gpu support"
140137
fi
141138

142-
kubectl -n=cortex delete --ignore-not-found=true --grace-period=10 deployment operator >/dev/null 2>&1
143-
until [ "$(kubectl -n=cortex get pods -l workloadID=operator -o json | jq -j '.items | length')" -eq "0" ]; do sleep 1; done
139+
kubectl -n=cortex delete --ignore-not-found=true deployment operator >/dev/null 2>&1
144140
envsubst < manifests/operator.yaml | kubectl apply -f - >/dev/null
145141
echo "✓ started operator"
146142

0 commit comments

Comments
 (0)