Skip to content

Commit

Permalink
Merge pull request #6 from romanovskyj/feature/unite_healthcheck_and_…
Browse files Browse the repository at this point in the history
…rootpath

Unite root path and health check
  • Loading branch information
ToxicWar authored Aug 2, 2017
2 parents 45393b0 + 1f00022 commit 11e7412
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion apsconnectcli/apsconnect.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,16 @@ def version(self):
print("apsconnect-cli v.{} built with love."
.format(pkg_resources.get_distribution('apsconnectcli').version))

def install_backend(self, name, image, config_file, hostname, healthcheck_path='/',
def install_backend(self, name, image, config_file, hostname, healthcheck_path=None,
root_path='/', namespace='default', replicas=2,
force=False):
""" Install connector-backend in the k8s cluster"""
if healthcheck_path:
print("WARNING --healthcheck-path is deprecated and will be dropped in future releases."
" The connector should have the same value for root path and health check path.")
else:
healthcheck_path = root_path

try:
with open(config_file) as config:
print("Loading config file: {}".format(config_file))
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
setup(
name='apsconnectcli',
author='Ingram Micro',
version='1.7.0',
version='1.7.1',
keywords='aps apsconnect connector automation',
extras_require={
':python_version<="2.7"': ['backports.tempfile==1.0rc1']},
Expand Down

0 comments on commit 11e7412

Please sign in to comment.