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;
}
Aggregations