Class OperatorGroupSpec
- java.lang.Object
-
- io.fabric8.openshift.api.model.operatorhub.v1.OperatorGroupSpec
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<OperatorGroupSpecBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class OperatorGroupSpec extends Object implements io.fabric8.kubernetes.api.builder.Editable<OperatorGroupSpecBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
OperatorGroupSpec is the spec for an OperatorGroup resource.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OperatorGroupSpec()No args constructor for use in serializationOperatorGroupSpec(io.fabric8.kubernetes.api.model.LabelSelector selector, String serviceAccountName, Boolean staticProvidedAPIs, List<String> targetNamespaces, String upgradeStrategy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OperatorGroupSpecBuilderedit()Map<String,Object>getAdditionalProperties()io.fabric8.kubernetes.api.model.LabelSelectorgetSelector()OperatorGroupSpec is the spec for an OperatorGroup resource.StringgetServiceAccountName()ServiceAccountName is the admin specified service account which will be used to deploy operator(s) in this operator group.BooleangetStaticProvidedAPIs()Static tells OLM not to update the OperatorGroup's providedAPIs annotationList<String>getTargetNamespaces()TargetNamespaces is an explicit set of namespaces to target.StringgetUpgradeStrategy()UpgradeStrategy defines the upgrade strategy for operators in the namespace.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetSelector(io.fabric8.kubernetes.api.model.LabelSelector selector)OperatorGroupSpec is the spec for an OperatorGroup resource.voidsetServiceAccountName(String serviceAccountName)ServiceAccountName is the admin specified service account which will be used to deploy operator(s) in this operator group.voidsetStaticProvidedAPIs(Boolean staticProvidedAPIs)Static tells OLM not to update the OperatorGroup's providedAPIs annotationvoidsetTargetNamespaces(List<String> targetNamespaces)TargetNamespaces is an explicit set of namespaces to target.voidsetUpgradeStrategy(String upgradeStrategy)UpgradeStrategy defines the upgrade strategy for operators in the namespace.OperatorGroupSpecBuildertoBuilder()
-
-
-
Method Detail
-
getSelector
public io.fabric8.kubernetes.api.model.LabelSelector getSelector()
OperatorGroupSpec is the spec for an OperatorGroup resource.
-
setSelector
public void setSelector(io.fabric8.kubernetes.api.model.LabelSelector selector)
OperatorGroupSpec is the spec for an OperatorGroup resource.
-
getServiceAccountName
public String getServiceAccountName()
ServiceAccountName is the admin specified service account which will be used to deploy operator(s) in this operator group.
-
setServiceAccountName
public void setServiceAccountName(String serviceAccountName)
ServiceAccountName is the admin specified service account which will be used to deploy operator(s) in this operator group.
-
getStaticProvidedAPIs
public Boolean getStaticProvidedAPIs()
Static tells OLM not to update the OperatorGroup's providedAPIs annotation
-
setStaticProvidedAPIs
public void setStaticProvidedAPIs(Boolean staticProvidedAPIs)
Static tells OLM not to update the OperatorGroup's providedAPIs annotation
-
getTargetNamespaces
public List<String> getTargetNamespaces()
TargetNamespaces is an explicit set of namespaces to target. If it is set, Selector is ignored.
-
setTargetNamespaces
public void setTargetNamespaces(List<String> targetNamespaces)
TargetNamespaces is an explicit set of namespaces to target. If it is set, Selector is ignored.
-
getUpgradeStrategy
public String getUpgradeStrategy()
UpgradeStrategy defines the upgrade strategy for operators in the namespace. There are currently two supported upgrade strategies:Default: OLM will only allow clusterServiceVersions to move to the replacing phase from the succeeded phase. This effectively means that OLM will not allow operators to move to the next version if an installation or upgrade has failed.
TechPreviewUnsafeFailForward: OLM will allow clusterServiceVersions to move to the replacing phase from the succeeded phase or from the failed phase. Additionally, OLM will generate new installPlans when a subscription references a failed installPlan and the catalog has been updated with a new upgrade for the existing set of operators.
WARNING: The TechPreviewUnsafeFailForward upgrade strategy is unsafe and may result in unexpected behavior or unrecoverable data loss unless you have deep understanding of the set of operators being managed in the namespace.
-
setUpgradeStrategy
public void setUpgradeStrategy(String upgradeStrategy)
UpgradeStrategy defines the upgrade strategy for operators in the namespace. There are currently two supported upgrade strategies:Default: OLM will only allow clusterServiceVersions to move to the replacing phase from the succeeded phase. This effectively means that OLM will not allow operators to move to the next version if an installation or upgrade has failed.
TechPreviewUnsafeFailForward: OLM will allow clusterServiceVersions to move to the replacing phase from the succeeded phase or from the failed phase. Additionally, OLM will generate new installPlans when a subscription references a failed installPlan and the catalog has been updated with a new upgrade for the existing set of operators.
WARNING: The TechPreviewUnsafeFailForward upgrade strategy is unsafe and may result in unexpected behavior or unrecoverable data loss unless you have deep understanding of the set of operators being managed in the namespace.
-
edit
public OperatorGroupSpecBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<OperatorGroupSpecBuilder>
-
toBuilder
public OperatorGroupSpecBuilder toBuilder()
-
-