Class 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 Detail

      • OperatorGroupSpec

        public OperatorGroupSpec()
        No args constructor for use in serialization
      • OperatorGroupSpec

        public OperatorGroupSpec​(io.fabric8.kubernetes.api.model.LabelSelector selector,
                                 String serviceAccountName,
                                 Boolean staticProvidedAPIs,
                                 List<String> targetNamespaces,
                                 String upgradeStrategy)
    • 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.

      • getAdditionalProperties

        public Map<String,​Object> getAdditionalProperties()
      • setAdditionalProperty

        public void setAdditionalProperty​(String name,
                                          Object value)
      • setAdditionalProperties

        public void setAdditionalProperties​(Map<String,​Object> additionalProperties)