Unverified Commit 2e4947ec authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #58756 from wwwtyro/rye/check-config-created

Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Ensure config has been created before attempting to launch ingress. **What this PR does / why we need it**: Ensure config has been created before attempting to launch ingress. **Release note**: ```release-note Ensure config has been created before attempting to launch ingress. ```
parents a5c46303 154caf6a
...@@ -645,6 +645,7 @@ def create_kubeconfig(kubeconfig, server, ca, key=None, certificate=None, ...@@ -645,6 +645,7 @@ def create_kubeconfig(kubeconfig, server, ca, key=None, certificate=None,
@when_any('config.changed.default-backend-image', @when_any('config.changed.default-backend-image',
'config.changed.nginx-image') 'config.changed.nginx-image')
@when('kubernetes-worker.config.created')
def launch_default_ingress_controller(): def launch_default_ingress_controller():
''' Launch the Kubernetes ingress controller & default backend (404) ''' ''' Launch the Kubernetes ingress controller & default backend (404) '''
config = hookenv.config() config = hookenv.config()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment