Package k8s.io.api.core.v1
Interface Generated.ReplicationControllerSpecOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Generated.ReplicationControllerSpec,Generated.ReplicationControllerSpec.Builder
- Enclosing class:
- Generated
public static interface Generated.ReplicationControllerSpecOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description booleancontainsSelector(String key)Selector is a label query over pods that should match the Replicas count.intgetMinReadySeconds()Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available.intgetReplicas()Replicas is the number of desired replicas.Map<String,String>getSelector()Deprecated.intgetSelectorCount()Selector is a label query over pods that should match the Replicas count.Map<String,String>getSelectorMap()Selector is a label query over pods that should match the Replicas count.StringgetSelectorOrDefault(String key, String defaultValue)Selector is a label query over pods that should match the Replicas count.StringgetSelectorOrThrow(String key)Selector is a label query over pods that should match the Replicas count.Generated.PodTemplateSpecgetTemplate()Template is the object that describes the pod that will be created if insufficient replicas are detected.Generated.PodTemplateSpecOrBuildergetTemplateOrBuilder()Template is the object that describes the pod that will be created if insufficient replicas are detected.booleanhasMinReadySeconds()Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available.booleanhasReplicas()Replicas is the number of desired replicas.booleanhasTemplate()Template is the object that describes the pod that will be created if insufficient replicas are detected.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
hasReplicas
boolean hasReplicas()
Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller +optional
optional int32 replicas = 1;- Returns:
- Whether the replicas field is set.
-
getReplicas
int getReplicas()
Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller +optional
optional int32 replicas = 1;- Returns:
- The replicas.
-
hasMinReadySeconds
boolean hasMinReadySeconds()
Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) +optional
optional int32 minReadySeconds = 4;- Returns:
- Whether the minReadySeconds field is set.
-
getMinReadySeconds
int getMinReadySeconds()
Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) +optional
optional int32 minReadySeconds = 4;- Returns:
- The minReadySeconds.
-
getSelectorCount
int getSelectorCount()
Selector is a label query over pods that should match the Replicas count. If Selector is empty, it is defaulted to the labels present on the Pod template. Label keys and values that must match in order to be controlled by this replication controller, if empty defaulted to labels on Pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors +optional +mapType=atomic
map<string, string> selector = 2;
-
containsSelector
boolean containsSelector(String key)
Selector is a label query over pods that should match the Replicas count. If Selector is empty, it is defaulted to the labels present on the Pod template. Label keys and values that must match in order to be controlled by this replication controller, if empty defaulted to labels on Pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors +optional +mapType=atomic
map<string, string> selector = 2;
-
getSelector
@Deprecated Map<String,String> getSelector()
Deprecated.UsegetSelectorMap()instead.
-
getSelectorMap
Map<String,String> getSelectorMap()
Selector is a label query over pods that should match the Replicas count. If Selector is empty, it is defaulted to the labels present on the Pod template. Label keys and values that must match in order to be controlled by this replication controller, if empty defaulted to labels on Pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors +optional +mapType=atomic
map<string, string> selector = 2;
-
getSelectorOrDefault
String getSelectorOrDefault(String key, String defaultValue)
Selector is a label query over pods that should match the Replicas count. If Selector is empty, it is defaulted to the labels present on the Pod template. Label keys and values that must match in order to be controlled by this replication controller, if empty defaulted to labels on Pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors +optional +mapType=atomic
map<string, string> selector = 2;
-
getSelectorOrThrow
String getSelectorOrThrow(String key)
Selector is a label query over pods that should match the Replicas count. If Selector is empty, it is defaulted to the labels present on the Pod template. Label keys and values that must match in order to be controlled by this replication controller, if empty defaulted to labels on Pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors +optional +mapType=atomic
map<string, string> selector = 2;
-
hasTemplate
boolean hasTemplate()
Template is the object that describes the pod that will be created if insufficient replicas are detected. This takes precedence over a TemplateRef. The only allowed template.spec.restartPolicy value is "Always". More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template +optional
optional .k8s.io.api.core.v1.PodTemplateSpec template = 3;- Returns:
- Whether the template field is set.
-
getTemplate
Generated.PodTemplateSpec getTemplate()
Template is the object that describes the pod that will be created if insufficient replicas are detected. This takes precedence over a TemplateRef. The only allowed template.spec.restartPolicy value is "Always". More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template +optional
optional .k8s.io.api.core.v1.PodTemplateSpec template = 3;- Returns:
- The template.
-
getTemplateOrBuilder
Generated.PodTemplateSpecOrBuilder getTemplateOrBuilder()
Template is the object that describes the pod that will be created if insufficient replicas are detected. This takes precedence over a TemplateRef. The only allowed template.spec.restartPolicy value is "Always". More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template +optional
optional .k8s.io.api.core.v1.PodTemplateSpec template = 3;
-
-