Skip to content
This repository has been archived by the owner on Oct 30, 2022. It is now read-only.

Commit

Permalink
node: Add a NetworkUnavailable condition, for GCE
Browse files Browse the repository at this point in the history
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".
  • Loading branch information
danopia committed Aug 10, 2020
1 parent 6cf241e commit a62b43a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions controller/node-provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit a62b43a

Please sign in to comment.