@@ -28,14 +28,57 @@ ClusterConfigurator withReadinessProbeSettings(
28
28
ClusterConfigurator withLivenessProbeSettings (
29
29
Integer initialDelay , Integer timeout , Integer period );
30
30
31
+ /**
32
+ * Add a node label to the Cluster's node selector
33
+ *
34
+ * @param labelKey the pod label key
35
+ * @param labelValue the pod label value
36
+ * @return this object
37
+ */
31
38
ClusterConfigurator withNodeSelector (String labelKey , String labelValue );
32
39
40
+ /**
41
+ * Add a resource requirement at cluster level. The requests for memory are measured in bytes. You
42
+ * can express memory as a plain integer or as a fixed-point integer using one of these suffixes:
43
+ * E, P, T, G, M, K. You can also use the power-of-two equivalents: Ei, Pi, Ti, Gi, Mi, Ki. The
44
+ * requests for cpu are mesured in cpu units and can be expressed in millicores i.e. 100m is the
45
+ * same as 0.1
46
+ *
47
+ * @param resource the resource to be added as requirement cpu or memory
48
+ * @param quantity the quantity required for the resource
49
+ * @return this object
50
+ */
33
51
ClusterConfigurator withRequestRequirement (String resource , String quantity );
34
52
53
+ /**
54
+ * Add a resource limit at cluster level, the requests for memory are measured in bytes. You can
55
+ * express memory as a plain integer or as a fixed-point integer using one of these suffixes: E,
56
+ * P, T, G, M, K. You can also use the power-of-two equivalents: Ei, Pi, Ti, Gi, Mi, Ki. The
57
+ * requests for cpu are mesured in cpu units and can be expressed in millicores i.e. 100m is the
58
+ * same as 0.1
59
+ *
60
+ * @param resource the resource to be added as requirement cpu or memory
61
+ * @param quantity the quantity required for the resource
62
+ * @return this object
63
+ */
35
64
ClusterConfigurator withLimitRequirement (String resource , String quantity );
36
65
66
+ /**
67
+ * Add security constraints at container level, if the same constraint is also defined at pod
68
+ * level then container constraint take precedence
69
+ *
70
+ * @param containerSecurityContext the security context object
71
+ * @return this object
72
+ */
37
73
ClusterConfigurator withContainerSecurityContext (V1SecurityContext containerSecurityContext );
38
74
75
+ /**
76
+ * Add security constraints at container level, if the same constraint is also defined at pod
77
+ * level then container constraint take precedence
78
+ *
79
+ * @param podSecurityContext
80
+ * @return this object
81
+ */
39
82
ClusterConfigurator withPodSecurityContext (V1PodSecurityContext podSecurityContext );
40
83
41
84
ClusterConfigurator withAdditionalVolume (String name , String path );
@@ -50,5 +93,17 @@ ClusterConfigurator withLivenessProbeSettings(
50
93
51
94
ClusterConfigurator withServiceAnnotation (String name , String value );
52
95
96
+ /**
97
+ * Tells the operator whether the customer wants to restart the server pods. The value can be any
98
+ * String and it can be defined on domain, cluster or server to restart the different pods. After
99
+ * the value is added, the corresponding pods will be terminated and created again. If customer
100
+ * modifies the value again after the pods were recreated, then the pods will again be terminated
101
+ * and recreated.
102
+ *
103
+ * @since 2.0
104
+ * @param restartVersion If preseent, every time this value is updated the operator will restart
105
+ * the required servers
106
+ * @return this object
107
+ */
53
108
ClusterConfigurator withRestartVersion (String restartVersion );
54
109
}
0 commit comments