Skip to content

Commit

Permalink
fix nginx ingress patch typo and largerd db size a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
ycliuhw committed Jan 10, 2019
1 parent 91fa969 commit e2d7c46
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions acceptancetests/assess_caas_deploy_charms.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def assess_caas_charm_deployment(client):
caas_client.kubectl(
'patch', 'daemonset.apps/nginx-ingress-kubernetes-worker-controller', '--patch',
'''
{"spec": {"template": {"spec": {"containers": [{"name": "nginx-ingress-kubernetes-worker","args": ["/nginx-ingress-controller", "--default-backend-service=$(POD_NAMESPACE)/default-http-backend", "--configmap=$(POD_NAMESPACE)/nginx-load-balancer-conf", "---enable-ssl-chain-completion=False", "--publish-status-address=%s"]}]}}}}
{"spec": {"template": {"spec": {"containers": [{"name": "nginx-ingress-kubernetes-worker","args": ["/nginx-ingress-controller", "--default-backend-service=$(POD_NAMESPACE)/default-http-backend", "--configmap=$(POD_NAMESPACE)/nginx-load-balancer-conf", "--enable-ssl-chain-completion=False", "--publish-status-address=%s"]}]}}}}
''' % caas_client.get_first_worker_ip()
)

Expand Down Expand Up @@ -228,7 +228,7 @@ def assess_caas_charm_deployment(client):

k8s_model.deploy(
charm="cs:~juju/mariadb-k8s-0",
storage='database=10M,{pool_name}'.format(pool_name=mariadb_storage_pool_name),
storage='database=100M,{pool_name}'.format(pool_name=mariadb_storage_pool_name),
)

k8s_model.juju('relate', ('mariadb-k8s', 'gitlab-k8s'))
Expand All @@ -241,9 +241,6 @@ def assess_caas_charm_deployment(client):
log.info(caas_client.kubectl('get', 'all', '--all-namespaces'))
k8s_model.juju(k8s_model._show_status, ('--format', 'tabular'))

# destroy model to peacefully exit.
k8s_model.destroy_model()


def parse_args(argv):
"""Parse all arguments."""
Expand Down

0 comments on commit e2d7c46

Please sign in to comment.