Skip to content

Commit 41049fd

Browse files
authored
Merge pull request kubernetes#81977 from abursavich/const
Add types to StatefulSetUpdateStrategyType constants
2 parents f3828b7 + cc25581 commit 41049fd

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

pkg/apis/apps/types.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,13 @@ const (
8181
// ordering constraints. When a scale operation is performed with this
8282
// strategy, new Pods will be created from the specification version indicated
8383
// by the StatefulSet's updateRevision.
84-
RollingUpdateStatefulSetStrategyType = "RollingUpdate"
84+
RollingUpdateStatefulSetStrategyType StatefulSetUpdateStrategyType = "RollingUpdate"
8585
// OnDeleteStatefulSetStrategyType triggers the legacy behavior. Version
8686
// tracking and ordered rolling restarts are disabled. Pods are recreated
8787
// from the StatefulSetSpec when they are manually deleted. When a scale
8888
// operation is performed with this strategy,specification version indicated
8989
// by the StatefulSet's currentRevision.
90-
OnDeleteStatefulSetStrategyType = "OnDelete"
90+
OnDeleteStatefulSetStrategyType StatefulSetUpdateStrategyType = "OnDelete"
9191
)
9292

9393
// RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType.

staging/src/k8s.io/api/apps/v1/types.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,13 +95,13 @@ const (
9595
// ordering constraints. When a scale operation is performed with this
9696
// strategy, new Pods will be created from the specification version indicated
9797
// by the StatefulSet's updateRevision.
98-
RollingUpdateStatefulSetStrategyType = "RollingUpdate"
98+
RollingUpdateStatefulSetStrategyType StatefulSetUpdateStrategyType = "RollingUpdate"
9999
// OnDeleteStatefulSetStrategyType triggers the legacy behavior. Version
100100
// tracking and ordered rolling restarts are disabled. Pods are recreated
101101
// from the StatefulSetSpec when they are manually deleted. When a scale
102102
// operation is performed with this strategy,specification version indicated
103103
// by the StatefulSet's currentRevision.
104-
OnDeleteStatefulSetStrategyType = "OnDelete"
104+
OnDeleteStatefulSetStrategyType StatefulSetUpdateStrategyType = "OnDelete"
105105
)
106106

107107
// RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType.

staging/src/k8s.io/api/apps/v1beta1/types.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,13 +134,13 @@ const (
134134
// ordering constraints. When a scale operation is performed with this
135135
// strategy, new Pods will be created from the specification version indicated
136136
// by the StatefulSet's updateRevision.
137-
RollingUpdateStatefulSetStrategyType = "RollingUpdate"
137+
RollingUpdateStatefulSetStrategyType StatefulSetUpdateStrategyType = "RollingUpdate"
138138
// OnDeleteStatefulSetStrategyType triggers the legacy behavior. Version
139139
// tracking and ordered rolling restarts are disabled. Pods are recreated
140140
// from the StatefulSetSpec when they are manually deleted. When a scale
141141
// operation is performed with this strategy,specification version indicated
142142
// by the StatefulSet's currentRevision.
143-
OnDeleteStatefulSetStrategyType = "OnDelete"
143+
OnDeleteStatefulSetStrategyType StatefulSetUpdateStrategyType = "OnDelete"
144144
)
145145

146146
// RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType.

staging/src/k8s.io/api/apps/v1beta2/types.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,13 +141,13 @@ const (
141141
// ordering constraints. When a scale operation is performed with this
142142
// strategy, new Pods will be created from the specification version indicated
143143
// by the StatefulSet's updateRevision.
144-
RollingUpdateStatefulSetStrategyType = "RollingUpdate"
144+
RollingUpdateStatefulSetStrategyType StatefulSetUpdateStrategyType = "RollingUpdate"
145145
// OnDeleteStatefulSetStrategyType triggers the legacy behavior. Version
146146
// tracking and ordered rolling restarts are disabled. Pods are recreated
147147
// from the StatefulSetSpec when they are manually deleted. When a scale
148148
// operation is performed with this strategy,specification version indicated
149149
// by the StatefulSet's currentRevision.
150-
OnDeleteStatefulSetStrategyType = "OnDelete"
150+
OnDeleteStatefulSetStrategyType StatefulSetUpdateStrategyType = "OnDelete"
151151
)
152152

153153
// RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType.

0 commit comments

Comments
 (0)