mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 14:07:14 +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')
|
||||
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
|
||||
a charm in a deployment that pre-dates the kube-control relation, it'll be
|
||||
missing.
|
||||
|
||||
"""
|
||||
hookenv.status_set(
|
||||
'blocked',
|
||||
'Relate {}:kube-control kubernetes-worker:kube-control'.format(
|
||||
hookenv.service_name()))
|
||||
hookenv.status_set('blocked', 'Waiting for workers.')
|
||||
|
||||
|
||||
@when('kube-api-endpoint.available')
|
||||
|
Loading…
Reference in New Issue
Block a user