Class OperatorSpec
- java.lang.Object
-
- io.fabric8.openshift.api.model.operator.v1alpha1.OperatorSpec
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<OperatorSpecBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class OperatorSpec extends Object implements io.fabric8.kubernetes.api.builder.Editable<OperatorSpecBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
OperatorSpec contains common fields for an operator to need. It is intended to be anonymous included inside of the Spec struct for you particular operator. DEPRECATED: Use v1.OperatorSpec instead- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OperatorSpec()No args constructor for use in serializationOperatorSpec(String imagePullPolicy, String imagePullSpec, LoggingConfig logging, String managementState, String version)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OperatorSpecBuilderedit()Map<String,Object>getAdditionalProperties()StringgetImagePullPolicy()imagePullPolicy specifies the image pull policy.StringgetImagePullSpec()imagePullSpec is the image to use for the component.LoggingConfiggetLogging()OperatorSpec contains common fields for an operator to need.StringgetManagementState()managementState indicates whether and how the operator should manage the componentStringgetVersion()version is the desired state in major.minor.micro-patch.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetImagePullPolicy(String imagePullPolicy)imagePullPolicy specifies the image pull policy.voidsetImagePullSpec(String imagePullSpec)imagePullSpec is the image to use for the component.voidsetLogging(LoggingConfig logging)OperatorSpec contains common fields for an operator to need.voidsetManagementState(String managementState)managementState indicates whether and how the operator should manage the componentvoidsetVersion(String version)version is the desired state in major.minor.micro-patch.OperatorSpecBuildertoBuilder()
-
-
-
Constructor Detail
-
OperatorSpec
public OperatorSpec()
No args constructor for use in serialization
-
OperatorSpec
public OperatorSpec(String imagePullPolicy, String imagePullSpec, LoggingConfig logging, String managementState, String version)
-
-
Method Detail
-
getImagePullPolicy
public String getImagePullPolicy()
imagePullPolicy specifies the image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
-
setImagePullPolicy
public void setImagePullPolicy(String imagePullPolicy)
imagePullPolicy specifies the image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
-
getImagePullSpec
public String getImagePullSpec()
imagePullSpec is the image to use for the component.
-
setImagePullSpec
public void setImagePullSpec(String imagePullSpec)
imagePullSpec is the image to use for the component.
-
getLogging
public LoggingConfig getLogging()
OperatorSpec contains common fields for an operator to need. It is intended to be anonymous included inside of the Spec struct for you particular operator. DEPRECATED: Use v1.OperatorSpec instead
-
setLogging
public void setLogging(LoggingConfig logging)
OperatorSpec contains common fields for an operator to need. It is intended to be anonymous included inside of the Spec struct for you particular operator. DEPRECATED: Use v1.OperatorSpec instead
-
getManagementState
public String getManagementState()
managementState indicates whether and how the operator should manage the component
-
setManagementState
public void setManagementState(String managementState)
managementState indicates whether and how the operator should manage the component
-
getVersion
public String getVersion()
version is the desired state in major.minor.micro-patch. Usually patch is ignored.
-
setVersion
public void setVersion(String version)
version is the desired state in major.minor.micro-patch. Usually patch is ignored.
-
edit
public OperatorSpecBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<OperatorSpecBuilder>
-
toBuilder
public OperatorSpecBuilder toBuilder()
-
-