Skip to content

Commit

Permalink
Issue argoproj#32: export AX_TARGET_CLOUD to upgrade-kubernetes.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Harry Zhang committed Aug 25, 2017
1 parent 54eb199 commit dfe2c21
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions common/python/ax/cluster_management/app/cluster_upgrader.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import yaml
from pprint import pformat

from ax.cloud import Cloud
from ax.cloud.aws import AWS_DEFAULT_PROFILE
from ax.meta import AXCustomerId
from ax.platform.ax_cluster_info import AXClusterInfo
Expand Down Expand Up @@ -187,7 +188,8 @@ def _upgrade_kube(self):
"OLD_KUBE_VERSION": self._current_software_info.kube_version,
"NEW_KUBE_VERSION": self._cfg.target_software_info.kube_version,
"NEW_CLUSTER_INSTALL_VERSION": self._cfg.target_software_info.kube_installer_version,
"ARGO_AWS_REGION": self._cluster_config.get_region()
"ARGO_AWS_REGION": self._cluster_config.get_region(),
"AX_TARGET_CLOUD": Cloud().target_cloud()
}

if self._cfg.cloud_profile:
Expand All @@ -199,7 +201,6 @@ def _upgrade_kube(self):
env.update(os.environ)
subprocess.check_call(["upgrade-kubernetes"], env=env)


def _start_platform(self):
"""
This step brings up Argo platform services
Expand Down

0 comments on commit dfe2c21

Please sign in to comment.