Search in sources :

Example 1 with V1Toleration

use of io.kubernetes.client.models.V1Toleration in project incubator-heron by apache.

the class AppsV1beta1Controller method getTolerations.

private List<V1Toleration> getTolerations() {
    final List<V1Toleration> tolerations = new ArrayList<>();
    KubernetesConstants.TOLERATIONS.forEach(t -> {
        final V1Toleration toleration = new V1Toleration().key(t).operator("Exists").effect("NoExecute").tolerationSeconds(10L);
        tolerations.add(toleration);
    });
    return tolerations;
}
Also used : V1Toleration(io.kubernetes.client.models.V1Toleration) ArrayList(java.util.ArrayList)

Aggregations

V1Toleration (io.kubernetes.client.models.V1Toleration)1 ArrayList (java.util.ArrayList)1