Skip to content

Commit

Permalink
support node unschedulable
Browse files Browse the repository at this point in the history
Signed-off-by: xuxinkun <xuxinkun@gmail.com>
  • Loading branch information
xuxinkun committed May 23, 2020
1 parent 6e1142a commit c3129d2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/main/java/io/kubesql/presto/kube/table/KubeNodeTable.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ public class KubeNodeTable extends KubeResTable {
public static String NodeLabelsPrefix = "labels.";
public static String NodeCreationTimestamp = "creationtimestamp";
public static String NodeDeletionTimestamp = "deletiontimstamp";
public static String Nodeunschedulable = "unschedulable";
// public static String NodeAddressesPrexif = "addresses";
public static String NodeAllocatablePrefix = "allocatable.";
public static String NodeCapacityPrefix = "capacity.";
Expand Down Expand Up @@ -82,6 +83,12 @@ public Object getData(V1Node v1Node) {
return v1Node.getStatus().getDaemonEndpoints().getKubeletEndpoint().getPort();
}
});
put(Nodeunschedulable, new KubeColumn<V1Node>(Nodeunschedulable, BooleanType.BOOLEAN) {
@Override
public Object getData(V1Node v1Node) {
return v1Node.getSpec().getUnschedulable();
}
});
put(NodeArchitecture, new KubeColumn<V1Node>(NodeArchitecture, VarcharType.createUnboundedVarcharType()) {
@Override
public Object getData(V1Node v1Node) {
Expand Down

0 comments on commit c3129d2

Please sign in to comment.