Skip to content

Commit

Permalink
Cleaning up makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
deepakraj1997 committed Feb 10, 2022
1 parent abcef76 commit 7a39fd2
Showing 1 changed file with 17 additions and 9 deletions.
26 changes: 17 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,29 @@ OADP_TEST_NAMESPACE ?= openshift-adp
CLUSTER_TYPE ?= aws

# CONFIGS FOR CLOUD
OADP_CRED_DIR ?= /var/run/oadp-credentials
OADP_CRED_FILE ?= ${OADP_CRED_DIR}/new-aws-credentials
OADP_CRED_DIR ?= /var/run/oadp-credentials # bsl / blob storage cred dir
CLUSTER_PROFILE_DIR ?= /Users/drajds/.aws # vsl / volume/cluster cred dir

OADP_CRED_FILE ?= ${OADP_CRED_DIR}/new-aws-credentials # bsl cred file
CI_CRED_FILE ?= ${CLUSTER_PROFILE_DIR}/.awscred # vsl cred file

# aws configs - default
BSL_REGION ?= us-east-1
VSL_REGION ?= ${LEASED_RESOURCE}
CI_CRED_FILE ?= ${CLUSTER_PROFILE_DIR}/.awscred
BSL_AWS_PROFILE ?= migration-engineering

# vsl secret
CREDS_SECRET_REF ?= cloud-credentials
OADP_BUCKET_FILE ?= ${OADP_CRED_DIR}/velero-bucket-name
# bucket file
OADP_BUCKET_FILE ?= ${OADP_CRED_DIR}/new-velero-bucket-name
# azure cluster resource file - only in CI
AZURE_RESOURCE_FILE ?= /var/run/secrets/ci.openshift.io/multi-stage/metadata.json

# Misc
OPENSHIFT_CI ?= true
VELERO_INSTANCE_NAME ?= velero-sample
E2E_TIMEOUT_MULTIPLIER ?= 1

ifeq ($(CLUSTER_TYPE), gcp)
CI_CRED_FILE = ${CLUSTER_PROFILE_DIR}/gce.json
OADP_CRED_FILE = ${OADP_CRED_DIR}/gcp-credentials
Expand All @@ -25,11 +38,6 @@ else ifeq ($(CLUSTER_TYPE), azure4)
OADP_BUCKET_FILE = ${OADP_CRED_DIR}/azure-velero-bucket-name
endif

# Misc
OPENSHIFT_CI ?= true
VELERO_INSTANCE_NAME ?= velero-sample
E2E_TIMEOUT_MULTIPLIER ?= 1

# ENVTEST_K8S_VERSION refers to the version of kubebuilder assets to be downloaded by envtest binary.
ENVTEST_K8S_VERSION = 1.21

Expand Down

0 comments on commit 7a39fd2

Please sign in to comment.