Skip to content

Commit 09404ad

Browse files
authored
Merge pull request #859 from jhowardmsft/camelCase
Windows: Fix camelCase inconsistencies
2 parents e9c40d5 + c6338b3 commit 09404ad

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

config-windows.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,8 @@ The following parameters can be specified:
122122

123123
## <a name="configWindowsCredentialSpec" />Credential Spec
124124

125-
You can configure a container's group Managed Service Account (gMSA) via the OPTIONAL `credentialspec` field of the Windows configuration.
126-
The `credentialspec` is a JSON object whose properties are implementation-defined.
125+
You can configure a container's group Managed Service Account (gMSA) via the OPTIONAL `credentialSpec` field of the Windows configuration.
126+
The `credentialSpec` is a JSON object whose properties are implementation-defined.
127127
For more information about gMSAs, see [Active Directory Service Accounts for Windows Containers][gMSAOverview].
128128
For more information about tooling to generate a gMSA, see [Deployment Overview][gMSATooling].
129129

@@ -146,13 +146,13 @@ You can indicate that a container should be started in a mode to apply pending s
146146

147147
## <a name="configWindowsIgnoreFlushesDuringBoot" />IgnoreFlushesDuringBoot
148148

149-
You can indicate that a container should be started in an a mode where disk flushes are not performed during container boot via the OPTIONAL `ignoreflushesduringboot` field of the Windows configuration.
149+
You can indicate that a container should be started in an a mode where disk flushes are not performed during container boot via the OPTIONAL `ignoreFlushesDuringBoot` field of the Windows configuration.
150150

151151
### Example
152152

153153
```json
154154
"windows": {
155-
"ignoreflushesduringboot": true
155+
"ignoreFlushesDuringBoot": true
156156
}
157157
```
158158

@@ -162,14 +162,14 @@ You can indicate that a container should be started in an a mode where disk flus
162162

163163
The following parameters can be specified:
164164

165-
* **`utilityvmpath`** *(string, OPTIONAL)* - specifies the path to the image used for the utility VM. This would be specified if using a base image which does not contain a utility VM image. If not supplied, the runtime will search the container filesystem layers from the bottom-most layer upwards, until it locates "UtilityVM", and default to that path.
165+
* **`utilityVMPath`** *(string, OPTIONAL)* - specifies the path to the image used for the utility VM. This would be specified if using a base image which does not contain a utility VM image. If not supplied, the runtime will search the container filesystem layers from the bottom-most layer upwards, until it locates "UtilityVM", and default to that path.
166166

167167
### Example
168168

169169
```json
170170
"windows": {
171171
"hyperv": {
172-
"utilityvmpath": "C:\\path\\to\\utilityvm"
172+
"utilityVMPath": "C:\\path\\to\\utilityvm"
173173
}
174174
}
175175
```

schema/config-windows.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,24 +86,24 @@
8686
}
8787
}
8888
},
89-
"credentialspec": {
90-
"id": "https://opencontainers.org/schema/bundle/windows/credentialspec",
89+
"credentialSpec": {
90+
"id": "https://opencontainers.org/schema/bundle/windows/credentialSpec",
9191
"type": "object"
9292
},
9393
"servicing": {
9494
"id": "https://opencontainers.org/schema/bundle/windows/servicing",
9595
"type": "boolean"
9696
},
97-
"ignoreflushesduringboot": {
98-
"id": "https://opencontainers.org/schema/bundle/windows/ignoreflushesduringboot",
97+
"ignoreFlushesDuringBoot": {
98+
"id": "https://opencontainers.org/schema/bundle/windows/ignoreFlushesDuringBoot",
9999
"type": "boolean"
100100
},
101101
"hyperv": {
102102
"id": "https://opencontainers.org/schema/bundle/windows/hyperv",
103103
"type": "object",
104104
"properties": {
105-
"utilityvmpath": {
106-
"id": "https://opencontainers.org/schema/bundle/windows/hyperv/utilityvmpath",
105+
"utilityVMPath": {
106+
"id": "https://opencontainers.org/schema/bundle/windows/hyperv/utilityVMPath",
107107
"type": "string"
108108
}
109109
}

specs-go/config.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -435,11 +435,11 @@ type Windows struct {
435435
// Resources contains information for handling resource constraints for the container.
436436
Resources *WindowsResources `json:"resources,omitempty"`
437437
// CredentialSpec contains a JSON object describing a group Managed Service Account (gMSA) specification.
438-
CredentialSpec interface{} `json:"credentialspec,omitempty"`
438+
CredentialSpec interface{} `json:"credentialSpec,omitempty"`
439439
// Servicing indicates if the container is being started in a mode to apply a Windows Update servicing operation.
440440
Servicing bool `json:"servicing,omitempty"`
441441
// IgnoreFlushesDuringBoot indicates if the container is being started in a mode where disk writes are not flushed during its boot process.
442-
IgnoreFlushesDuringBoot bool `json:"ignoreflushesduringboot,omitempty"`
442+
IgnoreFlushesDuringBoot bool `json:"ignoreFlushesDuringBoot,omitempty"`
443443
// HyperV contains information for running a container with Hyper-V isolation.
444444
HyperV *WindowsHyperV `json:"hyperv,omitempty"`
445445
// Network restriction configuration.
@@ -497,7 +497,7 @@ type WindowsNetwork struct {
497497
// WindowsHyperV contains information for configuring a container to run with Hyper-V isolation.
498498
type WindowsHyperV struct {
499499
// UtilityVMPath is an optional path to the image used for the Utility VM.
500-
UtilityVMPath string `json:"utilityvmpath,omitempty"`
500+
UtilityVMPath string `json:"utilityVMPath,omitempty"`
501501
}
502502

503503
// LinuxSeccomp represents syscall restrictions

0 commit comments

Comments
 (0)