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.
```
This commit is contained in:
Kubernetes Submit Queue 2018-01-24 15:06:11 -08:00 committed by GitHub
commit 2e4947ec3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -645,6 +645,7 @@ def create_kubeconfig(kubeconfig, server, ca, key=None, certificate=None,
@when_any('config.changed.default-backend-image',
'config.changed.nginx-image')
@when('kubernetes-worker.config.created')
def launch_default_ingress_controller():
''' Launch the Kubernetes ingress controller & default backend (404) '''
config = hookenv.config()