Skip to content

Commit 4a20bd2

Browse files
authored
Merge pull request #815 from jhowardmsft/servicing
Windows: Add servicing
2 parents 76e8d06 + 3c0a84c commit 4a20bd2

File tree

3 files changed

+22
-1
lines changed

3 files changed

+22
-1
lines changed

config-windows.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,4 +104,19 @@ For more information about tooling to generate a gMSA, see [Deployment Overview]
104104

105105

106106
[gMSAOverview]: https://aka.ms/windowscontainers/manage-serviceaccounts
107-
[gMSATooling]: https://aka.ms/windowscontainers/credentialspec-tools
107+
[gMSATooling]: https://aka.ms/windowscontainers/credentialspec-tools
108+
109+
110+
## <a name="configWindowsServicing" />Servicing
111+
112+
When a container terminates, the Host Compute Service indicates if a Windows update servicing operation is pending.
113+
You can indicate that a container should be started in a mode to apply pending servicing operations via the OPTIONAL `servicing` field of the Windows configuration.
114+
115+
116+
### Example
117+
118+
```json
119+
"windows": {
120+
"servicing": true
121+
}
122+
```

schema/config-windows.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@
6969
"credentialspec": {
7070
"id": "https://opencontainers.org/schema/bundle/windows/credentialspec",
7171
"type": "object"
72+
},
73+
"servicing": {
74+
"id": "https://opencontainers.org/schema/bundle/windows/servicing",
75+
"type": "boolean"
7276
}
7377
}
7478
}

specs-go/config.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,8 @@ type Windows struct {
434434
Resources *WindowsResources `json:"resources,omitempty"`
435435
// CredentialSpec contains a JSON object describing a group Managed Service Account (gMSA) specification.
436436
CredentialSpec interface{} `json:"credentialspec,omitempty"`
437+
// Servicing indicates if the container is being started in a mode to apply a Windows Update servicing operation.
438+
Servicing bool `json:"servicing,omitempty"`
437439
}
438440

439441
// WindowsResources has container runtime resource constraints for containers running on Windows.

0 commit comments

Comments
 (0)