File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,9 @@ func flattenDaemonSetStrategy(in appsv1.DaemonSetUpdateStrategy) []interface{} {
4949
5050func flattenDaemonSetStrategyRollingUpdate (in * appsv1.RollingUpdateDaemonSet ) []interface {} {
5151 att := make (map [string ]interface {})
52+ if in .MaxUnavailable != nil {
53+ att ["max_surge" ] = in .MaxSurge .String ()
54+ }
5255 if in .MaxUnavailable != nil {
5356 att ["max_unavailable" ] = in .MaxUnavailable .String ()
5457 }
@@ -111,7 +114,7 @@ func expandRollingUpdateDaemonSet(p []interface{}) *appsv1.RollingUpdateDaemonSe
111114
112115 if v , ok := in ["max_surge" ].(string ); ok {
113116 val := intstr .Parse (v )
114- obj .MaxUnavailable = & val
117+ obj .MaxSurge = & val
115118 }
116119
117120 if v , ok := in ["max_unavailable" ].(string ); ok {
You can’t perform that action at this time.
0 commit comments