Class ClusterVersionStatus
- java.lang.Object
-
- io.fabric8.openshift.api.model.config.v1.ClusterVersionStatus
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<ClusterVersionStatusBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class ClusterVersionStatus extends Object implements io.fabric8.kubernetes.api.builder.Editable<ClusterVersionStatusBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
ClusterVersionStatus reports the status of the cluster versioning, including any upgrades that are in progress. The current field will be set to whichever version the cluster is reconciling to, and the conditions array will report whether the update succeeded, is in progress, or is failing.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ClusterVersionStatus()No args constructor for use in serializationClusterVersionStatus(List<Release> availableUpdates, ClusterVersionCapabilitiesStatus capabilities, List<ConditionalUpdate> conditionalUpdates, List<ClusterOperatorStatusCondition> conditions, Release desired, List<UpdateHistory> history, Long observedGeneration, String versionHash)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClusterVersionStatusBuilderedit()Map<String,Object>getAdditionalProperties()List<Release>getAvailableUpdates()availableUpdates contains updates recommended for this cluster.ClusterVersionCapabilitiesStatusgetCapabilities()ClusterVersionStatus reports the status of the cluster versioning, including any upgrades that are in progress.List<ConditionalUpdate>getConditionalUpdates()conditionalUpdates contains the list of updates that may be recommended for this cluster if it meets specific required conditions.List<ClusterOperatorStatusCondition>getConditions()conditions provides information about the cluster version.ReleasegetDesired()ClusterVersionStatus reports the status of the cluster versioning, including any upgrades that are in progress.List<UpdateHistory>getHistory()history contains a list of the most recent versions applied to the cluster.LonggetObservedGeneration()observedGeneration reports which version of the spec is being synced.StringgetVersionHash()versionHash is a fingerprint of the content that the cluster will be updated with.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetAvailableUpdates(List<Release> availableUpdates)availableUpdates contains updates recommended for this cluster.voidsetCapabilities(ClusterVersionCapabilitiesStatus capabilities)ClusterVersionStatus reports the status of the cluster versioning, including any upgrades that are in progress.voidsetConditionalUpdates(List<ConditionalUpdate> conditionalUpdates)conditionalUpdates contains the list of updates that may be recommended for this cluster if it meets specific required conditions.voidsetConditions(List<ClusterOperatorStatusCondition> conditions)conditions provides information about the cluster version.voidsetDesired(Release desired)ClusterVersionStatus reports the status of the cluster versioning, including any upgrades that are in progress.voidsetHistory(List<UpdateHistory> history)history contains a list of the most recent versions applied to the cluster.voidsetObservedGeneration(Long observedGeneration)observedGeneration reports which version of the spec is being synced.voidsetVersionHash(String versionHash)versionHash is a fingerprint of the content that the cluster will be updated with.ClusterVersionStatusBuildertoBuilder()
-
-
-
Constructor Detail
-
ClusterVersionStatus
public ClusterVersionStatus()
No args constructor for use in serialization
-
ClusterVersionStatus
public ClusterVersionStatus(List<Release> availableUpdates, ClusterVersionCapabilitiesStatus capabilities, List<ConditionalUpdate> conditionalUpdates, List<ClusterOperatorStatusCondition> conditions, Release desired, List<UpdateHistory> history, Long observedGeneration, String versionHash)
-
-
Method Detail
-
getAvailableUpdates
public List<Release> getAvailableUpdates()
availableUpdates contains updates recommended for this cluster. Updates which appear in conditionalUpdates but not in availableUpdates may expose this cluster to known issues. This list may be empty if no updates are recommended, if the update service is unavailable, or if an invalid channel has been specified.
-
setAvailableUpdates
public void setAvailableUpdates(List<Release> availableUpdates)
availableUpdates contains updates recommended for this cluster. Updates which appear in conditionalUpdates but not in availableUpdates may expose this cluster to known issues. This list may be empty if no updates are recommended, if the update service is unavailable, or if an invalid channel has been specified.
-
getCapabilities
public ClusterVersionCapabilitiesStatus getCapabilities()
ClusterVersionStatus reports the status of the cluster versioning, including any upgrades that are in progress. The current field will be set to whichever version the cluster is reconciling to, and the conditions array will report whether the update succeeded, is in progress, or is failing.
-
setCapabilities
public void setCapabilities(ClusterVersionCapabilitiesStatus capabilities)
ClusterVersionStatus reports the status of the cluster versioning, including any upgrades that are in progress. The current field will be set to whichever version the cluster is reconciling to, and the conditions array will report whether the update succeeded, is in progress, or is failing.
-
getConditionalUpdates
public List<ConditionalUpdate> getConditionalUpdates()
conditionalUpdates contains the list of updates that may be recommended for this cluster if it meets specific required conditions. Consumers interested in the set of updates that are actually recommended for this cluster should use availableUpdates. This list may be empty if no updates are recommended, if the update service is unavailable, or if an empty or invalid channel has been specified.
-
setConditionalUpdates
public void setConditionalUpdates(List<ConditionalUpdate> conditionalUpdates)
conditionalUpdates contains the list of updates that may be recommended for this cluster if it meets specific required conditions. Consumers interested in the set of updates that are actually recommended for this cluster should use availableUpdates. This list may be empty if no updates are recommended, if the update service is unavailable, or if an empty or invalid channel has been specified.
-
getConditions
public List<ClusterOperatorStatusCondition> getConditions()
conditions provides information about the cluster version. The condition "Available" is set to true if the desiredUpdate has been reached. The condition "Progressing" is set to true if an update is being applied. The condition "Degraded" is set to true if an update is currently blocked by a temporary or permanent error. Conditions are only valid for the current desiredUpdate when metadata.generation is equal to status.generation.
-
setConditions
public void setConditions(List<ClusterOperatorStatusCondition> conditions)
conditions provides information about the cluster version. The condition "Available" is set to true if the desiredUpdate has been reached. The condition "Progressing" is set to true if an update is being applied. The condition "Degraded" is set to true if an update is currently blocked by a temporary or permanent error. Conditions are only valid for the current desiredUpdate when metadata.generation is equal to status.generation.
-
getDesired
public Release getDesired()
ClusterVersionStatus reports the status of the cluster versioning, including any upgrades that are in progress. The current field will be set to whichever version the cluster is reconciling to, and the conditions array will report whether the update succeeded, is in progress, or is failing.
-
setDesired
public void setDesired(Release desired)
ClusterVersionStatus reports the status of the cluster versioning, including any upgrades that are in progress. The current field will be set to whichever version the cluster is reconciling to, and the conditions array will report whether the update succeeded, is in progress, or is failing.
-
getHistory
public List<UpdateHistory> getHistory()
history contains a list of the most recent versions applied to the cluster. This value may be empty during cluster startup, and then will be updated when a new update is being applied. The newest update is first in the list and it is ordered by recency. Updates in the history have state Completed if the rollout completed - if an update was failing or halfway applied the state will be Partial. Only a limited amount of update history is preserved.
-
setHistory
public void setHistory(List<UpdateHistory> history)
history contains a list of the most recent versions applied to the cluster. This value may be empty during cluster startup, and then will be updated when a new update is being applied. The newest update is first in the list and it is ordered by recency. Updates in the history have state Completed if the rollout completed - if an update was failing or halfway applied the state will be Partial. Only a limited amount of update history is preserved.
-
getObservedGeneration
public Long getObservedGeneration()
observedGeneration reports which version of the spec is being synced. If this value is not equal to metadata.generation, then the desired and conditions fields may represent a previous version.
-
setObservedGeneration
public void setObservedGeneration(Long observedGeneration)
observedGeneration reports which version of the spec is being synced. If this value is not equal to metadata.generation, then the desired and conditions fields may represent a previous version.
-
getVersionHash
public String getVersionHash()
versionHash is a fingerprint of the content that the cluster will be updated with. It is used by the operator to avoid unnecessary work and is for internal use only.
-
setVersionHash
public void setVersionHash(String versionHash)
versionHash is a fingerprint of the content that the cluster will be updated with. It is used by the operator to avoid unnecessary work and is for internal use only.
-
edit
public ClusterVersionStatusBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<ClusterVersionStatusBuilder>
-
toBuilder
public ClusterVersionStatusBuilder toBuilder()
-
-