You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: google-beta/resource_compute_node_group.go
+66Lines changed: 66 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -110,6 +110,23 @@ than or equal to max-nodes. The default value is 0.`,
110
110
Description: `Specifies how to handle instances when a node in the group undergoes maintenance. Set to one of: DEFAULT, RESTART_IN_PLACE, or MIGRATE_WITHIN_NODE_GROUP. The default value is DEFAULT.`,
111
111
Default: "DEFAULT",
112
112
},
113
+
"maintenance_window": {
114
+
Type: schema.TypeList,
115
+
Optional: true,
116
+
ForceNew: true,
117
+
Description: `contains properties for the timeframe of maintenance`,
118
+
MaxItems: 1,
119
+
Elem: &schema.Resource{
120
+
Schema: map[string]*schema.Schema{
121
+
"start_time": {
122
+
Type: schema.TypeString,
123
+
Required: true,
124
+
ForceNew: true,
125
+
Description: `instances.start time of the window. This must be in UTC format that resolves to one of 00:00, 04:00, 08:00, 12:00, 16:00, or 20:00. For example, both 13:00-5 and 08:00 are valid.`,
126
+
},
127
+
},
128
+
},
129
+
},
113
130
"name": {
114
131
Type: schema.TypeString,
115
132
Optional: true,
@@ -182,6 +199,12 @@ func resourceComputeNodeGroupCreate(d *schema.ResourceData, meta interface{}) er
@@ -119,6 +122,11 @@ The following arguments are supported:
119
122
(Optional)
120
123
Specifies how to handle instances when a node in the group undergoes maintenance. Set to one of: DEFAULT, RESTART_IN_PLACE, or MIGRATE_WITHIN_NODE_GROUP. The default value is DEFAULT.
121
124
125
+
*`maintenance_window` -
126
+
(Optional)
127
+
contains properties for the timeframe of maintenance
128
+
Structure is documented below.
129
+
122
130
*`autoscaling_policy` -
123
131
(Optional)
124
132
If you use sole-tenant nodes for your workloads, you can use the node
@@ -133,6 +141,12 @@ The following arguments are supported:
133
141
If it is not provided, the provider project is used.
134
142
135
143
144
+
The `maintenance_window` block supports:
145
+
146
+
*`start_time` -
147
+
(Required)
148
+
instances.start time of the window. This must be in UTC format that resolves to one of 00:00, 04:00, 08:00, 12:00, 16:00, or 20:00. For example, both 13:00-5 and 08:00 are valid.
0 commit comments