@@ -4711,8 +4711,8 @@ func testUpdateLoadBalancerNodeExcludedByAnnotation(t *testing.T, client *linode
47114711 {
47124712 ObjectMeta : metav1.ObjectMeta {
47134713 Name : "node-2" ,
4714- Annotations : map [string ]string {
4715- annotations . AnnExcludeNodeFromNb : "true" ,
4714+ Labels : map [string ]string {
4715+ v1 . LabelNodeExcludeBalancers : "true" ,
47164716 },
47174717 },
47184718 Status : v1.NodeStatus {
@@ -4764,8 +4764,8 @@ func testUpdateLoadBalancerNodeExcludedByAnnotation(t *testing.T, client *linode
47644764 {
47654765 ObjectMeta : metav1.ObjectMeta {
47664766 Name : "node-1" ,
4767- Annotations : map [string ]string {
4768- annotations . AnnExcludeNodeFromNb : "true" , // Now exclude node-1
4767+ Labels : map [string ]string {
4768+ v1 . LabelNodeExcludeBalancers : "true" ,
47694769 },
47704770 },
47714771 Status : v1.NodeStatus {
@@ -4780,8 +4780,8 @@ func testUpdateLoadBalancerNodeExcludedByAnnotation(t *testing.T, client *linode
47804780 {
47814781 ObjectMeta : metav1.ObjectMeta {
47824782 Name : "node-2" ,
4783- Annotations : map [string ]string {
4784- annotations . AnnExcludeNodeFromNb : "true" , // Still excluded
4783+ Labels : map [string ]string {
4784+ v1 . LabelNodeExcludeBalancers : "true" ,
47854785 },
47864786 },
47874787 Status : v1.NodeStatus {
@@ -4833,8 +4833,8 @@ func testUpdateLoadBalancerNodeExcludedByAnnotation(t *testing.T, client *linode
48334833 {
48344834 ObjectMeta : metav1.ObjectMeta {
48354835 Name : "node-1" ,
4836- Annotations : map [string ]string {
4837- annotations . AnnExcludeNodeFromNb : "true" ,
4836+ Labels : map [string ]string {
4837+ v1 . LabelNodeExcludeBalancers : "true" ,
48384838 },
48394839 },
48404840 Status : v1.NodeStatus {
@@ -4849,8 +4849,8 @@ func testUpdateLoadBalancerNodeExcludedByAnnotation(t *testing.T, client *linode
48494849 {
48504850 ObjectMeta : metav1.ObjectMeta {
48514851 Name : "node-2" ,
4852- Annotations : map [string ]string {
4853- annotations . AnnExcludeNodeFromNb : "true" ,
4852+ Labels : map [string ]string {
4853+ v1 . LabelNodeExcludeBalancers : "true" ,
48544854 },
48554855 },
48564856 Status : v1.NodeStatus {
@@ -4865,8 +4865,8 @@ func testUpdateLoadBalancerNodeExcludedByAnnotation(t *testing.T, client *linode
48654865 {
48664866 ObjectMeta : metav1.ObjectMeta {
48674867 Name : "node-3" ,
4868- Annotations : map [string ]string {
4869- annotations . AnnExcludeNodeFromNb : "true" ,
4868+ Labels : map [string ]string {
4869+ v1 . LabelNodeExcludeBalancers : "true" ,
48704870 },
48714871 },
48724872 Status : v1.NodeStatus {
0 commit comments