From a62b43ae398cea14224efb1da60a80a2bbb844e1 Mon Sep 17 00:00:00 2001 From: Daniel Lamando Date: Tue, 11 Aug 2020 00:09:38 +0200 Subject: [PATCH] node: Add a NetworkUnavailable condition, for GCE GCE complains about CIDRNotAvailable regularly if this condition isn't ready. So stick it there to make GCE alias networking shut up. This condition should probably be linked to the health of the Wireguard tunnel. But the GCE controller won't be able to help out, so it would really just be another way to say "Hey I am not ready right now". --- controller/node-provider.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/controller/node-provider.go b/controller/node-provider.go index 23b9137..2582282 100644 --- a/controller/node-provider.go +++ b/controller/node-provider.go @@ -119,6 +119,13 @@ func (np *PetNodeProvider) NotifyNodeStatus(ctx context.Context, f func(*corev1. Status: "False", Type: "PIDPressure", }, + { + LastTransitionTime: metav1.NewTime(time.Now()), + Message: "Hello World", + Reason: "OK", + Status: "False", + Type: "NetworkUnavailable", + }, }, Images: localImagesMapped, NodeInfo: corev1.NodeSystemInfo{