Add types to StatefulSetUpdateStrategyType constants

This commit is contained in:
Andy Bursavich 2019-08-26 16:29:15 -07:00
parent 39724859b5
commit cc255816eb
4 changed files with 8 additions and 8 deletions

View File

@ -81,13 +81,13 @@ const (
// ordering constraints. When a scale operation is performed with this // ordering constraints. When a scale operation is performed with this
// strategy, new Pods will be created from the specification version indicated // strategy, new Pods will be created from the specification version indicated
// by the StatefulSet's updateRevision. // by the StatefulSet's updateRevision.
RollingUpdateStatefulSetStrategyType = "RollingUpdate" RollingUpdateStatefulSetStrategyType StatefulSetUpdateStrategyType = "RollingUpdate"
// OnDeleteStatefulSetStrategyType triggers the legacy behavior. Version // OnDeleteStatefulSetStrategyType triggers the legacy behavior. Version
// tracking and ordered rolling restarts are disabled. Pods are recreated // tracking and ordered rolling restarts are disabled. Pods are recreated
// from the StatefulSetSpec when they are manually deleted. When a scale // from the StatefulSetSpec when they are manually deleted. When a scale
// operation is performed with this strategy,specification version indicated // operation is performed with this strategy,specification version indicated
// by the StatefulSet's currentRevision. // by the StatefulSet's currentRevision.
OnDeleteStatefulSetStrategyType = "OnDelete" OnDeleteStatefulSetStrategyType StatefulSetUpdateStrategyType = "OnDelete"
) )
// RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType. // RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType.

View File

@ -95,13 +95,13 @@ const (
// ordering constraints. When a scale operation is performed with this // ordering constraints. When a scale operation is performed with this
// strategy, new Pods will be created from the specification version indicated // strategy, new Pods will be created from the specification version indicated
// by the StatefulSet's updateRevision. // by the StatefulSet's updateRevision.
RollingUpdateStatefulSetStrategyType = "RollingUpdate" RollingUpdateStatefulSetStrategyType StatefulSetUpdateStrategyType = "RollingUpdate"
// OnDeleteStatefulSetStrategyType triggers the legacy behavior. Version // OnDeleteStatefulSetStrategyType triggers the legacy behavior. Version
// tracking and ordered rolling restarts are disabled. Pods are recreated // tracking and ordered rolling restarts are disabled. Pods are recreated
// from the StatefulSetSpec when they are manually deleted. When a scale // from the StatefulSetSpec when they are manually deleted. When a scale
// operation is performed with this strategy,specification version indicated // operation is performed with this strategy,specification version indicated
// by the StatefulSet's currentRevision. // by the StatefulSet's currentRevision.
OnDeleteStatefulSetStrategyType = "OnDelete" OnDeleteStatefulSetStrategyType StatefulSetUpdateStrategyType = "OnDelete"
) )
// RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType. // RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType.

View File

@ -134,13 +134,13 @@ const (
// ordering constraints. When a scale operation is performed with this // ordering constraints. When a scale operation is performed with this
// strategy, new Pods will be created from the specification version indicated // strategy, new Pods will be created from the specification version indicated
// by the StatefulSet's updateRevision. // by the StatefulSet's updateRevision.
RollingUpdateStatefulSetStrategyType = "RollingUpdate" RollingUpdateStatefulSetStrategyType StatefulSetUpdateStrategyType = "RollingUpdate"
// OnDeleteStatefulSetStrategyType triggers the legacy behavior. Version // OnDeleteStatefulSetStrategyType triggers the legacy behavior. Version
// tracking and ordered rolling restarts are disabled. Pods are recreated // tracking and ordered rolling restarts are disabled. Pods are recreated
// from the StatefulSetSpec when they are manually deleted. When a scale // from the StatefulSetSpec when they are manually deleted. When a scale
// operation is performed with this strategy,specification version indicated // operation is performed with this strategy,specification version indicated
// by the StatefulSet's currentRevision. // by the StatefulSet's currentRevision.
OnDeleteStatefulSetStrategyType = "OnDelete" OnDeleteStatefulSetStrategyType StatefulSetUpdateStrategyType = "OnDelete"
) )
// RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType. // RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType.

View File

@ -141,13 +141,13 @@ const (
// ordering constraints. When a scale operation is performed with this // ordering constraints. When a scale operation is performed with this
// strategy, new Pods will be created from the specification version indicated // strategy, new Pods will be created from the specification version indicated
// by the StatefulSet's updateRevision. // by the StatefulSet's updateRevision.
RollingUpdateStatefulSetStrategyType = "RollingUpdate" RollingUpdateStatefulSetStrategyType StatefulSetUpdateStrategyType = "RollingUpdate"
// OnDeleteStatefulSetStrategyType triggers the legacy behavior. Version // OnDeleteStatefulSetStrategyType triggers the legacy behavior. Version
// tracking and ordered rolling restarts are disabled. Pods are recreated // tracking and ordered rolling restarts are disabled. Pods are recreated
// from the StatefulSetSpec when they are manually deleted. When a scale // from the StatefulSetSpec when they are manually deleted. When a scale
// operation is performed with this strategy,specification version indicated // operation is performed with this strategy,specification version indicated
// by the StatefulSet's currentRevision. // by the StatefulSet's currentRevision.
OnDeleteStatefulSetStrategyType = "OnDelete" OnDeleteStatefulSetStrategyType StatefulSetUpdateStrategyType = "OnDelete"
) )
// RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType. // RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType.