mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 14:37:00 +00:00
Simplify master-worker relation missing message
This commit is contained in:
parent
acc19cafa4
commit
d5a71eb2d1
@ -398,17 +398,14 @@ def send_tokens(kube_control):
|
|||||||
|
|
||||||
@when_not('kube-control.connected')
|
@when_not('kube-control.connected')
|
||||||
def missing_kube_control():
|
def missing_kube_control():
|
||||||
"""Inform the operator they need to add the kube-control relation.
|
"""Inform the operator master is waiting for a relation to workers.
|
||||||
|
|
||||||
If deploying via bundle this won't happen, but if operator is upgrading a
|
If deploying via bundle this won't happen, but if operator is upgrading a
|
||||||
a charm in a deployment that pre-dates the kube-control relation, it'll be
|
a charm in a deployment that pre-dates the kube-control relation, it'll be
|
||||||
missing.
|
missing.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
hookenv.status_set(
|
hookenv.status_set('blocked', 'Waiting for workers.')
|
||||||
'blocked',
|
|
||||||
'Relate {}:kube-control kubernetes-worker:kube-control'.format(
|
|
||||||
hookenv.service_name()))
|
|
||||||
|
|
||||||
|
|
||||||
@when('kube-api-endpoint.available')
|
@when('kube-api-endpoint.available')
|
||||||
|
Loading…
Reference in New Issue
Block a user