Skip to content

Commit

Permalink
Fix lints
Browse files Browse the repository at this point in the history
  • Loading branch information
bonzofenix committed Aug 8, 2024
1 parent a290242 commit 2bb85c1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
5 changes: 3 additions & 2 deletions ci/infrastructure/scripts/deploy-multiapps-controller.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ function deploy_multiapps_controller() {

mv multiapps-controller-web-war/*.war .
pushd multiapps-controller-web-manifest
cf push -f *.yml "${app_name}"
cf push -f ./*.yml "${app_name}"

popd
}

Expand All @@ -42,7 +43,7 @@ function cleanup_multiapps_controller() {
}

load_bbl_vars
cf_login
cf_login "${system_domain}"
cleanup_multiapps_controller
create_postgres_service
add_postrgres_security_group
Expand Down
2 changes: 1 addition & 1 deletion ci/infrastructure/scripts/deploy-prometheus.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ uaa_ssl_ca_file="${UAA_SSL_CA_FILE:-$(mktemp)}"
uaa_ssl_cert_file="${UAA_SSL_CERT_FILE:-$(mktemp)}"
uaa_ssl_key_file="${UAA_SSL_KEY_FILE:-$(mktemp)}"
slack_channel="${SLACK_CHANNEL:-cf-dev-autoscaler-alerts}"
slack_webhook="${SLACK_WEBHOOK}"
slack_webhook="${SLACK_WEBHOOK:-}"
prometheus_dir="${PROMETHEUS_DIR:-$(realpath -e ${root_dir}/../prometheus-boshrelease)}"
deployment_manifest=${DEPLOYMENT_MANIFEST:-"${prometheus_dir}/manifests/prometheus.yml"}
prometheus_ops="${prometheus_dir}/manifests/operators"
Expand Down
6 changes: 5 additions & 1 deletion ci/infrastructure/scripts/utils.source.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function upload_release(){
pushd "${release_dir}" > /dev/null || exit
echo "Uploading release from ${release_dir}"
echo "Listing files in ${release_dir}:"
log $(ls -1 *.tgz)
log "$(ls -1 ./*.tgz)"
bosh -n upload-release release.tgz
popd > /dev/null || exit
}
Expand All @@ -51,6 +51,8 @@ function load_bbl_vars() {
}

function validate_ops_files() {
local ops_files=$1

for ops_file in ${ops_files}; do
if [ ! -f "${ops_file}" ]; then
echo "ERROR: could not find ops file ${ops_file} in ${PWD}"
Expand All @@ -66,6 +68,8 @@ function add_var_to_bosh_deploy_opts() {
}

function cf_login(){
local system_domain=$1

cf api "https://api.${system_domain}" --skip-ssl-validation
CF_ADMIN_PASSWORD=$(credhub get -n /bosh-autoscaler/cf/cf_admin_password -q)
cf auth admin "$CF_ADMIN_PASSWORD"
Expand Down

0 comments on commit 2bb85c1

Please sign in to comment.