This commit adds a workaround to get airflow-scheduler log, while Airflow
helm chart is not dealing properly with the value `fullnameOverride`,
which is required now that Airflow is a subchart of OSM Helm chart.
Change-Id: I1db25801a118adc7cd8357ce61039e7761b44ed3
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
for deployment in `kubectl -n osm get deployments | grep -v operator | grep -v NAME| awk '{print $1}'`; do
echo "Extracting log for $deployment"
kubectl -n osm logs deployments/$deployment --timestamps=true --all-containers 2>&1 \
- > logs/$deployment.log
+ > logs/$deployment.log || true
done
'''
sshCommand remote: remote, command: '''
for statefulset in `kubectl -n osm get statefulsets | grep -v operator | grep -v NAME| awk '{print $1}'`; do
echo "Extracting log for $statefulset"
kubectl -n osm logs statefulsets/$statefulset --timestamps=true --all-containers 2>&1 \
- > logs/$statefulset.log
+ > logs/$statefulset.log || true
done
'''
sshCommand remote: remote, command: '''