Skip to content

Commit

Permalink
Merge pull request #3037 from uselagoon/minor-log-verbosity-reduction
Browse files Browse the repository at this point in the history
  • Loading branch information
tobybellwood authored Feb 21, 2022
2 parents f14c08b + 266f77c commit a795620
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions images/kubectl-build-deploy-dind/build-deploy-docker-compose.sh
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,6 @@ HELM_ARGUMENTS=()
for CAPABILITIES in "${CAPABILITIES[@]}"; do
HELM_ARGUMENTS+=(-a "${CAPABILITIES}")
done
set -x

# Implement global default values for backup retention periods
if [ -z "$MONTHLY_BACKUP_DEFAULT_RETENTION" ]
Expand Down Expand Up @@ -739,9 +738,12 @@ for i in $ROUTES_AUTOGENERATE_PREFIXES; do yq3 write -i -- /kubectl-build-deploy
yq3 write -i -- /kubectl-build-deploy/values.yaml 'kubernetes' $KUBERNETES
yq3 write -i -- /kubectl-build-deploy/values.yaml 'lagoonVersion' $LAGOON_VERSION
# check for ROOTLESS_WORKLOAD feature flag, disabled by default

set +x
if [ "$(featureFlag ROOTLESS_WORKLOAD)" = enabled ]; then
yq3 merge -ix -- /kubectl-build-deploy/values.yaml /kubectl-build-deploy/rootless.values.yaml
fi
set -x


echo -e "\
Expand Down Expand Up @@ -1220,12 +1222,14 @@ if [[ "${CAPABILITIES[@]}" =~ "backup.appuio.ch/v1alpha1/Schedule" ]]; then
fi

# check for ISOLATION_NETWORK_POLICY feature flag, disabled by default
set +x
if [ "$(featureFlag ISOLATION_NETWORK_POLICY)" = enabled ]; then
# add namespace isolation network policy to deployment
helm template isolation-network-policy /kubectl-build-deploy/helmcharts/isolation-network-policy \
-f /kubectl-build-deploy/values.yaml \
> $YAML_FOLDER/isolation-network-policy.yaml
fi
set -x

if [ "$(ls -A $YAML_FOLDER/)" ]; then
find $YAML_FOLDER -type f -exec cat {} \;
Expand Down Expand Up @@ -1696,6 +1700,7 @@ patchBuildStep "${buildStartTime}" "${previousStepEnd}" "${currentStepEnd}" "${N
previousStepEnd=${currentStepEnd}
set -x

set +x
if [ "$(featureFlag INSIGHTS)" = enabled ]; then
##############################################
### RUN sbom generation and store in configmap
Expand All @@ -1709,9 +1714,8 @@ if [ "$(featureFlag INSIGHTS)" = enabled ]; then
. /kubectl-build-deploy/scripts/exec-generate-sbom-configmap.sh
done

set +x
currentStepEnd="$(date +"%Y-%m-%d %H:%M:%S")"
patchBuildStep "${buildStartTime}" "${previousStepEnd}" "${currentStepEnd}" "${NAMESPACE}" "sbomCompleted" "SBOM Gathering"
previousStepEnd=${currentStepEnd}
set -x
fi
set -x

0 comments on commit a795620

Please sign in to comment.