this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

all: prepare for private repository support in unity

Signed-off-by: Paul Jolly <paul@myitcv.io>
Change-Id: I4b6d97514ff10e892e81822de620945ddc2d0c3d
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/531175
Unity-Result: CUEcueckoo <cueckoo@cuelang.org>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Reviewed-by: Marcel van Lohuizen <mpvl@gmail.com>

+400 -116
+1 -1
.github/workflows/release.yml
··· 41 41 - name: Re-test cuelang.org 42 42 run: 'curl -f -s -H "Content-Type: application/json" -u cueckoo:${{ secrets.CUECKOO_GITHUB_PAT }} --request POST --data-binary "{\"event_type\":\"Re-test post release of ${GITHUB_REF##refs/tags/}\"}" https://api.github.com/repos/cue-lang/cuelang.org/dispatches' 43 43 - name: Trigger unity build 44 - run: 'curl -f -s -H "Content-Type: application/json" -u cueckoo:${{ secrets.CUECKOO_GITHUB_PAT }} --request POST --data-binary "{\"event_type\":\"Check against CUE ${GITHUB_REF##refs/tags/}\",\"client_payload\":{\"type\":\"unity\",\"payload\":{\"versions\":\"\\\"${GITHUB_REF##refs/tags/}\\\"\"}}}" https://api.github.com/repos/cue-lang/unity/dispatches' 44 + run: 'curl -f -s -H "Content-Type: application/json" -u cueckoo:${{ secrets.CUECKOO_GITHUB_PAT }} --request POST --data-binary "{\"event_type\":\"Check against CUE ${GITHUB_REF##refs/tags/}\",\"client_payload\":{\"type\":\"unity\",\"payload\":{\"versions\":\"\\\"${GITHUB_REF##refs/tags/}\\\"\"}}}" https://api.github.com/repos/cue-unity/unity/dispatches'
+1 -1
.github/workflows/tip_triggers.yml
··· 15 15 - name: Rebuild tip.cuelang.org 16 16 run: curl -f -s -X POST -d {} https://api.netlify.com/build_hooks/${{ secrets.CuelangOrgTipRebuildHook }} 17 17 - name: Trigger unity build 18 - run: 'curl -f -s -H "Content-Type: application/json" -u cueckoo:${{ secrets.CUECKOO_GITHUB_PAT }} --request POST --data-binary "{\"event_type\":\"Check against ${GITHUB_SHA}\",\"client_payload\":{\"type\":\"unity\",\"payload\":{\"versions\":\"\\\"commit:${GITHUB_SHA}\\\"\"}}}" https://api.github.com/repos/cue-lang/unity/dispatches' 18 + run: 'curl -f -s -H "Content-Type: application/json" -u cueckoo:${{ secrets.CUECKOO_GITHUB_PAT }} --request POST --data-binary "{\"event_type\":\"Check against ${GITHUB_SHA}\",\"client_payload\":{\"type\":\"unity\",\"payload\":{\"versions\":\"\\\"commit:${GITHUB_SHA}\\\"\"}}}" https://api.github.com/repos/cue-unity/unity/dispatches'
+4 -23
cmd/cue/cmd/testdata/script/cmd_github.txt
··· 46 46 chmod 600 ~/.netrc; \ 47 47 java -jar /opt/copybara/copybara_deploy.jar migrate copy.bara.sky github; \ 48 48 " 49 - -- .github/workflows/new_version_triggers.yml.golden -- 50 - # Generated by internal/ci/ci_tool.cue; do not edit 51 - 52 - name: New release triggers 53 - "on": 54 - push: 55 - tags: 56 - - v* 57 - jobs: 58 - push: 59 - runs-on: ubuntu-18.04 60 - defaults: 61 - run: 62 - shell: bash 63 - steps: 64 - - name: Rebuild tip.cuelang.org 65 - run: 'curl -f -s -H "Content-Type: application/json" -u cueckoo:${{ secrets.CUECKOO_GITHUB_PAT }} --request POST --data-binary "{\"event_type\":\"Re-test post release of ${GITHUB_REF##refs/tags/}\"}" https://api.github.com/repos/cue-lang/cuelang.org/dispatches' 66 - - name: Trigger unity build 67 - run: 'curl -f -s -H "Content-Type: application/json" -u cueckoo:${{ secrets.CUECKOO_GITHUB_PAT }} --request POST --data-binary "{\"event_type\":\"Check against CUE ${GITHUB_REF##refs/tags/}\",\"client_payload\":{\"type\":\"unity\",\"payload\":{\"versions\":\"\\\"${GITHUB_REF##refs/tags/}\\\"\"}}}" https://api.github.com/repos/cue-lang/unity/dispatches' 68 49 -- .github/workflows/release.yml.golden -- 69 50 # Generated by internal/ci/ci_tool.cue; do not edit 70 51 ··· 109 90 - name: Re-test cuelang.org 110 91 run: 'curl -f -s -H "Content-Type: application/json" -u cueckoo:${{ secrets.CUECKOO_GITHUB_PAT }} --request POST --data-binary "{\"event_type\":\"Re-test post release of ${GITHUB_REF##refs/tags/}\"}" https://api.github.com/repos/cue-lang/cuelang.org/dispatches' 111 92 - name: Trigger unity build 112 - run: 'curl -f -s -H "Content-Type: application/json" -u cueckoo:${{ secrets.CUECKOO_GITHUB_PAT }} --request POST --data-binary "{\"event_type\":\"Check against CUE ${GITHUB_REF##refs/tags/}\",\"client_payload\":{\"type\":\"unity\",\"payload\":{\"versions\":\"\\\"${GITHUB_REF##refs/tags/}\\\"\"}}}" https://api.github.com/repos/cue-lang/unity/dispatches' 93 + run: 'curl -f -s -H "Content-Type: application/json" -u cueckoo:${{ secrets.CUECKOO_GITHUB_PAT }} --request POST --data-binary "{\"event_type\":\"Check against CUE ${GITHUB_REF##refs/tags/}\",\"client_payload\":{\"type\":\"unity\",\"payload\":{\"versions\":\"\\\"${GITHUB_REF##refs/tags/}\\\"\"}}}" https://api.github.com/repos/cue-unity/unity/dispatches' 113 94 -- .github/workflows/repository_dispatch.yml.golden -- 114 95 # Generated by internal/ci/ci_tool.cue; do not edit 115 96 ··· 288 269 - name: Rebuild tip.cuelang.org 289 270 run: curl -f -s -X POST -d {} https://api.netlify.com/build_hooks/${{ secrets.CuelangOrgTipRebuildHook }} 290 271 - name: Trigger unity build 291 - run: 'curl -f -s -H "Content-Type: application/json" -u cueckoo:${{ secrets.CUECKOO_GITHUB_PAT }} --request POST --data-binary "{\"event_type\":\"Check against ${GITHUB_SHA}\",\"client_payload\":{\"type\":\"unity\",\"payload\":{\"versions\":\"\\\"commit:${GITHUB_SHA}\\\"\"}}}" https://api.github.com/repos/cue-lang/unity/dispatches' 272 + run: 'curl -f -s -H "Content-Type: application/json" -u cueckoo:${{ secrets.CUECKOO_GITHUB_PAT }} --request POST --data-binary "{\"event_type\":\"Check against ${GITHUB_SHA}\",\"client_payload\":{\"type\":\"unity\",\"payload\":{\"versions\":\"\\\"commit:${GITHUB_SHA}\\\"\"}}}" https://api.github.com/repos/cue-unity/unity/dispatches' 292 273 -- internal/ci/ci_tool.cue -- 293 274 // Copyright 2021 The CUE Authors 294 275 // ··· 1298 1279 } 1299 1280 } 1300 1281 name: "Trigger unity build" 1301 - run: "\(_#curl) -H \"Content-Type: application/json\" -u cueckoo:${{ secrets.CUECKOO_GITHUB_PAT }} --request POST --data-binary \(strconv.Quote(encjson.Marshal(_#arg))) https://api.github.com/repos/cue-lang/unity/dispatches" 1282 + run: "\(_#curl) -H \"Content-Type: application/json\" -u cueckoo:${{ secrets.CUECKOO_GITHUB_PAT }} --request POST --data-binary \(strconv.Quote(encjson.Marshal(_#arg))) https://api.github.com/repos/cue-unity/unity/dispatches" 1302 1283 }] 1303 1284 } 1304 1285 } ··· 1321 1302 } 1322 1303 } 1323 1304 name: "Trigger unity build" 1324 - run: "\(_#curl) -H \"Content-Type: application/json\" -u cueckoo:${{ secrets.CUECKOO_GITHUB_PAT }} --request POST --data-binary \(strconv.Quote(encjson.Marshal(_#arg))) https://api.github.com/repos/cue-lang/unity/dispatches" 1305 + run: "\(_#curl) -H \"Content-Type: application/json\" -u cueckoo:${{ secrets.CUECKOO_GITHUB_PAT }} --request POST --data-binary \(strconv.Quote(encjson.Marshal(_#arg))) https://api.github.com/repos/cue-unity/unity/dispatches" 1325 1306 }] 1326 1307 } 1327 1308 }
+1 -1
codereview.cfg
··· 1 1 gerrit: https://review.gerrithub.io/a/cue-lang/cue 2 2 github: https://github.com/cue-lang/cue 3 - cue-unity: https://github.com/cue-lang/unity 3 + cue-unity: https://github.com/cue-unity/unity
+8 -8
cue/testdata/eval/github.txtar
··· 208 208 } 209 209 } 210 210 name: "Trigger unity build" 211 - run: "\(_#curl) -H \"Content-Type: application/json\" -u cueckoo:${{ secrets.CUECKOO_GITHUB_PAT }} --request POST --data-binary \(strconv.Quote(encjson.Marshal(_#arg))) https://api.github.com/repos/cue-lang/unity/dispatches" 211 + run: "\(_#curl) -H \"Content-Type: application/json\" -u cueckoo:${{ secrets.CUECKOO_GITHUB_PAT }} --request POST --data-binary \(strconv.Quote(encjson.Marshal(_#arg))) https://api.github.com/repos/cue-unity/unity/dispatches" 212 212 }] 213 213 } 214 214 } ··· 231 231 } 232 232 } 233 233 name: "Trigger unity build" 234 - run: "\(_#curl) -H \"Content-Type: application/json\" -u cueckoo:${{ secrets.CUECKOO_GITHUB_PAT }} --request POST --data-binary \(strconv.Quote(encjson.Marshal(_#arg))) https://api.github.com/repos/cue-lang/unity/dispatches" 234 + run: "\(_#curl) -H \"Content-Type: application/json\" -u cueckoo:${{ secrets.CUECKOO_GITHUB_PAT }} --request POST --data-binary \(strconv.Quote(encjson.Marshal(_#arg))) https://api.github.com/repos/cue-unity/unity/dispatches" 235 235 }] 236 236 } 237 237 } ··· 1426 1426 } 1427 1427 } 1428 1428 name: (string){ "Trigger unity build" } 1429 - run: (string){ "curl -f -s -H \"Content-Type: application/json\" -u cueckoo:${{ secrets.CUECKOO_GITHUB_PAT }} --request POST --data-binary \"{\\\"event_type\\\":\\\"Check against CUE ${GITHUB_REF##refs/tags/}\\\",\\\"client_payload\\\":{\\\"type\\\":\\\"unity\\\",\\\"payload\\\":{\\\"versions\\\":\\\"\\\\\\\"${GITHUB_REF##refs/tags/}\\\\\\\"\\\"}}}\" https://api.github.com/repos/cue-lang/unity/dispatches" } 1429 + run: (string){ "curl -f -s -H \"Content-Type: application/json\" -u cueckoo:${{ secrets.CUECKOO_GITHUB_PAT }} --request POST --data-binary \"{\\\"event_type\\\":\\\"Check against CUE ${GITHUB_REF##refs/tags/}\\\",\\\"client_payload\\\":{\\\"type\\\":\\\"unity\\\",\\\"payload\\\":{\\\"versions\\\":\\\"\\\\\\\"${GITHUB_REF##refs/tags/}\\\\\\\"\\\"}}}\" https://api.github.com/repos/cue-unity/unity/dispatches" } 1430 1430 } 1431 1431 } 1432 1432 defaults: (#struct){ ··· 1506 1506 } 1507 1507 } 1508 1508 name: (string){ "Trigger unity build" } 1509 - run: (string){ "curl -f -s -H \"Content-Type: application/json\" -u cueckoo:${{ secrets.CUECKOO_GITHUB_PAT }} --request POST --data-binary \"{\\\"event_type\\\":\\\"Check against ${GITHUB_SHA}\\\",\\\"client_payload\\\":{\\\"type\\\":\\\"unity\\\",\\\"payload\\\":{\\\"versions\\\":\\\"\\\\\\\"commit:${GITHUB_SHA}\\\\\\\"\\\"}}}\" https://api.github.com/repos/cue-lang/unity/dispatches" } 1509 + run: (string){ "curl -f -s -H \"Content-Type: application/json\" -u cueckoo:${{ secrets.CUECKOO_GITHUB_PAT }} --request POST --data-binary \"{\\\"event_type\\\":\\\"Check against ${GITHUB_SHA}\\\",\\\"client_payload\\\":{\\\"type\\\":\\\"unity\\\",\\\"payload\\\":{\\\"versions\\\":\\\"\\\\\\\"commit:${GITHUB_SHA}\\\\\\\"\\\"}}}\" https://api.github.com/repos/cue-unity/unity/dispatches" } 1510 1510 } 1511 1511 } 1512 1512 defaults: (#struct){ ··· 1937 1937 } 1938 1938 } 1939 1939 name: (string){ "Trigger unity build" } 1940 - run: (string){ "curl -f -s -H \"Content-Type: application/json\" -u cueckoo:${{ secrets.CUECKOO_GITHUB_PAT }} --request POST --data-binary \"{\\\"event_type\\\":\\\"Check against CUE ${GITHUB_REF##refs/tags/}\\\",\\\"client_payload\\\":{\\\"type\\\":\\\"unity\\\",\\\"payload\\\":{\\\"versions\\\":\\\"\\\\\\\"${GITHUB_REF##refs/tags/}\\\\\\\"\\\"}}}\" https://api.github.com/repos/cue-lang/unity/dispatches" } 1940 + run: (string){ "curl -f -s -H \"Content-Type: application/json\" -u cueckoo:${{ secrets.CUECKOO_GITHUB_PAT }} --request POST --data-binary \"{\\\"event_type\\\":\\\"Check against CUE ${GITHUB_REF##refs/tags/}\\\",\\\"client_payload\\\":{\\\"type\\\":\\\"unity\\\",\\\"payload\\\":{\\\"versions\\\":\\\"\\\\\\\"${GITHUB_REF##refs/tags/}\\\\\\\"\\\"}}}\" https://api.github.com/repos/cue-unity/unity/dispatches" } 1941 1941 } 1942 1942 } 1943 1943 defaults: (#struct){ ··· 2014 2014 } 2015 2015 } 2016 2016 name: (string){ "Trigger unity build" } 2017 - run: (string){ "curl -f -s -H \"Content-Type: application/json\" -u cueckoo:${{ secrets.CUECKOO_GITHUB_PAT }} --request POST --data-binary \"{\\\"event_type\\\":\\\"Check against ${GITHUB_SHA}\\\",\\\"client_payload\\\":{\\\"type\\\":\\\"unity\\\",\\\"payload\\\":{\\\"versions\\\":\\\"\\\\\\\"commit:${GITHUB_SHA}\\\\\\\"\\\"}}}\" https://api.github.com/repos/cue-lang/unity/dispatches" } 2017 + run: (string){ "curl -f -s -H \"Content-Type: application/json\" -u cueckoo:${{ secrets.CUECKOO_GITHUB_PAT }} --request POST --data-binary \"{\\\"event_type\\\":\\\"Check against ${GITHUB_SHA}\\\",\\\"client_payload\\\":{\\\"type\\\":\\\"unity\\\",\\\"payload\\\":{\\\"versions\\\":\\\"\\\\\\\"commit:${GITHUB_SHA}\\\\\\\"\\\"}}}\" https://api.github.com/repos/cue-unity/unity/dispatches" } 2018 2018 } 2019 2019 } 2020 2020 defaults: (#struct){ ··· 2424 2424 } 2425 2425 } 2426 2426 name: "Trigger unity build" 2427 - run: "\(〈5;_#curl〉) -H "Content-Type: application/json" -u cueckoo:${{ secrets.CUECKOO_GITHUB_PAT }} --request POST --data-binary \(〈import;strconv〉.Quote(〈import;"encoding/json"〉.Marshal(〈0;_#arg〉))) https://api.github.com/repos/cue-lang/unity/dispatches" 2427 + run: "\(〈5;_#curl〉) -H "Content-Type: application/json" -u cueckoo:${{ secrets.CUECKOO_GITHUB_PAT }} --request POST --data-binary \(〈import;strconv〉.Quote(〈import;"encoding/json"〉.Marshal(〈0;_#arg〉))) https://api.github.com/repos/cue-unity/unity/dispatches" 2428 2428 }), 2429 2429 ] 2430 2430 } ··· 2458 2458 } 2459 2459 } 2460 2460 name: "Trigger unity build" 2461 - run: "\(〈5;_#curl〉) -H "Content-Type: application/json" -u cueckoo:${{ secrets.CUECKOO_GITHUB_PAT }} --request POST --data-binary \(〈import;strconv〉.Quote(〈import;"encoding/json"〉.Marshal(〈0;_#arg〉))) https://api.github.com/repos/cue-lang/unity/dispatches" 2461 + run: "\(〈5;_#curl〉) -H "Content-Type: application/json" -u cueckoo:${{ secrets.CUECKOO_GITHUB_PAT }} --request POST --data-binary \(〈import;strconv〉.Quote(〈import;"encoding/json"〉.Marshal(〈0;_#arg〉))) https://api.github.com/repos/cue-unity/unity/dispatches" 2462 2462 }, 2463 2463 ] 2464 2464 }
+2 -2
doc/contribute.md
··· 16 16 * Using CUE is a form of contributing! Especially when combined with raising 17 17 issues, providing feedback, tell us what works well and what doesn't, pointing 18 18 out gaps etc. 19 - * Adding your CUE-based project to [`unity`](https://github.com/cue-lang/unity) 19 + * Adding your CUE-based project to [`unity`](https://github.com/cue-unity/unity) 20 20 helps ensure that we don't create releases that unintentionally break 21 21 configurations, but also gives a wide variety of scenarios in which to test bug 22 22 fixes, performance improvements and the like. ··· 654 654 ### Continuous Integration (CI) checks 655 655 656 656 After an initial reading of your change, maintainers will trigger CI checks, 657 - that run a full test suite and [`unity`](https://github.com/cue-lang/unity) 657 + that run a full test suite and [`unity`](https://github.com/cue-unity/unity) 658 658 checks. Most CI tests complete in a few minutes, at which point a link will be 659 659 posted in Gerrit where you can see the results, or if you are submitting a PR 660 660 results are presented as checks towards the bottom of the PR.
+58 -9
doc/tutorial/kubernetes/quick/cue.mod/gen/k8s.io/api/apps/v1/types_go_gen.cue
··· 42 42 } 43 43 44 44 // PodManagementPolicyType defines the policy for creating pods under a stateful set. 45 + // +enum 45 46 #PodManagementPolicyType: string // #enumPodManagementPolicyType 46 47 47 48 #enumPodManagementPolicyType: ··· 75 76 76 77 // StatefulSetUpdateStrategyType is a string enumeration type that enumerates 77 78 // all possible update strategies for the StatefulSet controller. 79 + // +enum 78 80 #StatefulSetUpdateStrategyType: string // #enumStatefulSetUpdateStrategyType 79 81 80 82 #enumStatefulSetUpdateStrategyType: ··· 104 106 partition?: null | int32 @go(Partition,*int32) @protobuf(1,varint,opt) 105 107 } 106 108 109 + // PersistentVolumeClaimRetentionPolicyType is a string enumeration of the policies that will determine 110 + // when volumes from the VolumeClaimTemplates will be deleted when the controlling StatefulSet is 111 + // deleted or scaled down. 112 + #PersistentVolumeClaimRetentionPolicyType: string // #enumPersistentVolumeClaimRetentionPolicyType 113 + 114 + #enumPersistentVolumeClaimRetentionPolicyType: 115 + #RetainPersistentVolumeClaimRetentionPolicyType | 116 + #DeletePersistentVolumeClaimRetentionPolicyType 117 + 118 + // RetainPersistentVolumeClaimRetentionPolicyType is the default 119 + // PersistentVolumeClaimRetentionPolicy and specifies that 120 + // PersistentVolumeClaims associated with StatefulSet VolumeClaimTemplates 121 + // will not be deleted. 122 + #RetainPersistentVolumeClaimRetentionPolicyType: #PersistentVolumeClaimRetentionPolicyType & "Retain" 123 + 124 + // RetentionPersistentVolumeClaimRetentionPolicyType specifies that 125 + // PersistentVolumeClaims associated with StatefulSet VolumeClaimTemplates 126 + // will be deleted in the scenario specified in 127 + // StatefulSetPersistentVolumeClaimRetentionPolicy. 128 + #DeletePersistentVolumeClaimRetentionPolicyType: #PersistentVolumeClaimRetentionPolicyType & "Delete" 129 + 130 + // StatefulSetPersistentVolumeClaimRetentionPolicy describes the policy used for PVCs 131 + // created from the StatefulSet VolumeClaimTemplates. 132 + #StatefulSetPersistentVolumeClaimRetentionPolicy: { 133 + // WhenDeleted specifies what happens to PVCs created from StatefulSet 134 + // VolumeClaimTemplates when the StatefulSet is deleted. The default policy 135 + // of `Retain` causes PVCs to not be affected by StatefulSet deletion. The 136 + // `Delete` policy causes those PVCs to be deleted. 137 + whenDeleted?: #PersistentVolumeClaimRetentionPolicyType @go(WhenDeleted) @protobuf(1,bytes,opt,casttype=PersistentVolumeClaimRetentionPolicyType) 138 + 139 + // WhenScaled specifies what happens to PVCs created from StatefulSet 140 + // VolumeClaimTemplates when the StatefulSet is scaled down. The default 141 + // policy of `Retain` causes PVCs to not be affected by a scaledown. The 142 + // `Delete` policy causes the associated PVCs for any excess pods above 143 + // the replica count to be deleted. 144 + whenScaled?: #PersistentVolumeClaimRetentionPolicyType @go(WhenScaled) @protobuf(2,bytes,opt,casttype=PersistentVolumeClaimRetentionPolicyType) 145 + } 146 + 107 147 // A StatefulSetSpec is the specification of a StatefulSet. 108 148 #StatefulSetSpec: { 109 149 // replicas is the desired number of replicas of the given Template. ··· 170 210 // This is an alpha field and requires enabling StatefulSetMinReadySeconds feature gate. 171 211 // +optional 172 212 minReadySeconds?: int32 @go(MinReadySeconds) @protobuf(9,varint,opt) 213 + 214 + // persistentVolumeClaimRetentionPolicy describes the lifecycle of persistent 215 + // volume claims created from volumeClaimTemplates. By default, all persistent 216 + // volume claims are created as needed and retained until manually deleted. This 217 + // policy allows the lifecycle to be altered, for example by deleting persistent 218 + // volume claims when their stateful set is deleted, or when their pod is scaled 219 + // down. This requires the StatefulSetAutoDeletePVC feature gate to be enabled, 220 + // which is alpha. +optional 221 + persistentVolumeClaimRetentionPolicy?: null | #StatefulSetPersistentVolumeClaimRetentionPolicy @go(PersistentVolumeClaimRetentionPolicy,*StatefulSetPersistentVolumeClaimRetentionPolicy) @protobuf(10,bytes,opt) 173 222 } 174 223 175 224 // StatefulSetStatus represents the current state of a StatefulSet. ··· 182 231 // replicas is the number of Pods created by the StatefulSet controller. 183 232 replicas: int32 @go(Replicas) @protobuf(2,varint,opt) 184 233 185 - // readyReplicas is the number of Pods created by the StatefulSet controller that have a Ready Condition. 234 + // readyReplicas is the number of pods created for this StatefulSet with a Ready Condition. 186 235 readyReplicas?: int32 @go(ReadyReplicas) @protobuf(3,varint,opt) 187 236 188 237 // currentReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version ··· 214 263 conditions?: [...#StatefulSetCondition] @go(Conditions,[]StatefulSetCondition) @protobuf(10,bytes,rep) 215 264 216 265 // Total number of available pods (ready for at least minReadySeconds) targeted by this statefulset. 217 - // This is an alpha field and requires enabling StatefulSetMinReadySeconds feature gate. 218 - // Remove omitempty when graduating to beta 219 - // +optional 220 - availableReplicas?: int32 @go(AvailableReplicas) @protobuf(11,varint,opt) 266 + // This is a beta field and enabled/disabled by StatefulSetMinReadySeconds feature gate. 267 + availableReplicas: int32 @go(AvailableReplicas) @protobuf(11,varint,opt) 221 268 } 222 269 223 270 #StatefulSetConditionType: string ··· 338 385 rollingUpdate?: null | #RollingUpdateDeployment @go(RollingUpdate,*RollingUpdateDeployment) @protobuf(2,bytes,opt) 339 386 } 340 387 388 + // +enum 341 389 #DeploymentStrategyType: string // #enumDeploymentStrategyType 342 390 343 391 #enumDeploymentStrategyType: ··· 394 442 // +optional 395 443 updatedReplicas?: int32 @go(UpdatedReplicas) @protobuf(3,varint,opt) 396 444 397 - // Total number of ready pods targeted by this deployment. 445 + // readyReplicas is the number of pods targeted by this Deployment with a Ready Condition. 398 446 // +optional 399 447 readyReplicas?: int32 @go(ReadyReplicas) @protobuf(7,varint,opt) 400 448 ··· 489 537 rollingUpdate?: null | #RollingUpdateDaemonSet @go(RollingUpdate,*RollingUpdateDaemonSet) @protobuf(2,bytes,opt) 490 538 } 491 539 540 + // +enum 492 541 #DaemonSetUpdateStrategyType: string // #enumDaemonSetUpdateStrategyType 493 542 494 543 #enumDaemonSetUpdateStrategyType: ··· 593 642 // More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ 594 643 desiredNumberScheduled: int32 @go(DesiredNumberScheduled) @protobuf(3,varint,opt) 595 644 596 - // The number of nodes that should be running the daemon pod and have one 597 - // or more of the daemon pod running and ready. 645 + // numberReady is the number of nodes that should be running the daemon pod and have one 646 + // or more of the daemon pod running with a Ready Condition. 598 647 numberReady: int32 @go(NumberReady) @protobuf(4,varint,opt) 599 648 600 649 // The most recent generation observed by the daemon set controller. ··· 771 820 // +optional 772 821 fullyLabeledReplicas?: int32 @go(FullyLabeledReplicas) @protobuf(2,varint,opt) 773 822 774 - // The number of ready replicas for this replica set. 823 + // readyReplicas is the number of pods targeted by this ReplicaSet with a Ready Condition. 775 824 // +optional 776 825 readyReplicas?: int32 @go(ReadyReplicas) @protobuf(4,varint,opt) 777 826
+1 -1
doc/tutorial/kubernetes/quick/cue.mod/gen/k8s.io/api/core/v1/annotation_key_constants_go_gen.cue
··· 107 107 #EndpointsLastChangeTriggerTime: "endpoints.kubernetes.io/last-change-trigger-time" 108 108 109 109 // EndpointsOverCapacity will be set on an Endpoints resource when it 110 - // exceeds the maximum capacity of 1000 addresses. Inititially the Endpoints 110 + // exceeds the maximum capacity of 1000 addresses. Initially the Endpoints 111 111 // controller will set this annotation with a value of "warning". In a 112 112 // future release, the controller may set this annotation with a value of 113 113 // "truncated" to indicate that any addresses exceeding the limit of 1000
+258 -66
doc/tutorial/kubernetes/quick/cue.mod/gen/k8s.io/api/core/v1/types_go_gen.cue
··· 193 193 // A pod can use both types of ephemeral volumes and 194 194 // persistent volumes at the same time. 195 195 // 196 - // This is a beta feature and only available when the GenericEphemeralVolume 197 - // feature gate is enabled. 198 - // 199 196 // +optional 200 197 ephemeral?: null | #EphemeralVolumeSource @go(Ephemeral,*EphemeralVolumeSource) @protobuf(29,bytes,opt) 201 198 } ··· 412 409 } 413 410 414 411 // PersistentVolumeReclaimPolicy describes a policy for end-of-life maintenance of persistent volumes. 412 + // +enum 415 413 #PersistentVolumeReclaimPolicy: string // #enumPersistentVolumeReclaimPolicy 416 414 417 415 #enumPersistentVolumeReclaimPolicy: ··· 432 430 #PersistentVolumeReclaimRetain: #PersistentVolumeReclaimPolicy & "Retain" 433 431 434 432 // PersistentVolumeMode describes how a volume is intended to be consumed, either Block or Filesystem. 433 + // +enum 435 434 #PersistentVolumeMode: string // #enumPersistentVolumeMode 436 435 437 436 #enumPersistentVolumeMode: ··· 523 522 selector?: null | metav1.#LabelSelector @go(Selector,*metav1.LabelSelector) @protobuf(4,bytes,opt) 524 523 525 524 // Resources represents the minimum resources the volume should have. 525 + // If RecoverVolumeExpansionFailure feature is enabled users are allowed to specify resource requirements 526 + // that are lower than previous value but must still be higher than capacity recorded in the 527 + // status field of the claim. 526 528 // More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources 527 529 // +optional 528 530 resources?: #ResourceRequirements @go(Resources) @protobuf(2,bytes,opt) ··· 573 575 } 574 576 575 577 // PersistentVolumeClaimConditionType is a valid value of PersistentVolumeClaimCondition.Type 578 + // +enum 576 579 #PersistentVolumeClaimConditionType: string // #enumPersistentVolumeClaimConditionType 577 580 578 581 #enumPersistentVolumeClaimConditionType: ··· 585 588 // PersistentVolumeClaimFileSystemResizePending - controller resize is finished and a file system resize is pending on node 586 589 #PersistentVolumeClaimFileSystemResizePending: #PersistentVolumeClaimConditionType & "FileSystemResizePending" 587 590 591 + // +enum 592 + #PersistentVolumeClaimResizeStatus: string // #enumPersistentVolumeClaimResizeStatus 593 + 594 + #enumPersistentVolumeClaimResizeStatus: 595 + #PersistentVolumeClaimNoExpansionInProgress | 596 + #PersistentVolumeClaimControllerExpansionInProgress | 597 + #PersistentVolumeClaimControllerExpansionFailed | 598 + #PersistentVolumeClaimNodeExpansionPending | 599 + #PersistentVolumeClaimNodeExpansionInProgress | 600 + #PersistentVolumeClaimNodeExpansionFailed 601 + 602 + // When expansion is complete, the empty string is set by resize controller or kubelet. 603 + #PersistentVolumeClaimNoExpansionInProgress: #PersistentVolumeClaimResizeStatus & "" 604 + 605 + // State set when resize controller starts expanding the volume in control-plane 606 + #PersistentVolumeClaimControllerExpansionInProgress: #PersistentVolumeClaimResizeStatus & "ControllerExpansionInProgress" 607 + 608 + // State set when expansion has failed in resize controller with a terminal error. 609 + // Transient errors such as timeout should not set this status and should leave ResizeStatus 610 + // unmodified, so as resize controller can resume the volume expansion. 611 + #PersistentVolumeClaimControllerExpansionFailed: #PersistentVolumeClaimResizeStatus & "ControllerExpansionFailed" 612 + 613 + // State set when resize controller has finished expanding the volume but further expansion is needed on the node. 614 + #PersistentVolumeClaimNodeExpansionPending: #PersistentVolumeClaimResizeStatus & "NodeExpansionPending" 615 + 616 + // State set when kubelet starts expanding the volume. 617 + #PersistentVolumeClaimNodeExpansionInProgress: #PersistentVolumeClaimResizeStatus & "NodeExpansionInProgress" 618 + 619 + // State set when expansion has failed in kubelet with a terminal error. Transient errors don't set NodeExpansionFailed. 620 + #PersistentVolumeClaimNodeExpansionFailed: #PersistentVolumeClaimResizeStatus & "NodeExpansionFailed" 621 + 588 622 // PersistentVolumeClaimCondition contails details about state of pvc 589 623 #PersistentVolumeClaimCondition: { 590 624 type: #PersistentVolumeClaimConditionType @go(Type) @protobuf(1,bytes,opt,casttype=PersistentVolumeClaimConditionType) ··· 630 664 // +patchMergeKey=type 631 665 // +patchStrategy=merge 632 666 conditions?: [...#PersistentVolumeClaimCondition] @go(Conditions,[]PersistentVolumeClaimCondition) @protobuf(4,bytes,rep) 667 + 668 + // The storage resource within AllocatedResources tracks the capacity allocated to a PVC. It may 669 + // be larger than the actual capacity when a volume expansion operation is requested. 670 + // For storage quota, the larger value from allocatedResources and PVC.spec.resources is used. 671 + // If allocatedResources is not set, PVC.spec.resources alone is used for quota calculation. 672 + // If a volume expansion capacity request is lowered, allocatedResources is only 673 + // lowered if there are no expansion operations in progress and if the actual volume capacity 674 + // is equal or lower than the requested capacity. 675 + // This is an alpha field and requires enabling RecoverVolumeExpansionFailure feature. 676 + // +featureGate=RecoverVolumeExpansionFailure 677 + // +optional 678 + allocatedResources?: #ResourceList @go(AllocatedResources) @protobuf(5,bytes,rep,casttype=ResourceList,castkey=ResourceName) 679 + 680 + // ResizeStatus stores status of resize operation. 681 + // ResizeStatus is not set by default but when expansion is complete resizeStatus is set to empty 682 + // string by resize controller or kubelet. 683 + // This is an alpha field and requires enabling RecoverVolumeExpansionFailure feature. 684 + // +featureGate=RecoverVolumeExpansionFailure 685 + // +optional 686 + resizeStatus?: null | #PersistentVolumeClaimResizeStatus @go(ResizeStatus,*PersistentVolumeClaimResizeStatus) @protobuf(6,bytes,opt,casttype=PersistentVolumeClaimResizeStatus) 633 687 } 634 688 689 + // +enum 635 690 #PersistentVolumeAccessMode: string // #enumPersistentVolumeAccessMode 636 691 637 692 #enumPersistentVolumeAccessMode: ··· 653 708 // cannot be used in combination with other access modes 654 709 #ReadWriteOncePod: #PersistentVolumeAccessMode & "ReadWriteOncePod" 655 710 711 + // +enum 656 712 #PersistentVolumePhase: string // #enumPersistentVolumePhase 657 713 658 714 #enumPersistentVolumePhase: ··· 680 736 // used for PersistentVolumes that failed to be correctly recycled or deleted after being released from a claim 681 737 #VolumeFailed: #PersistentVolumePhase & "Failed" 682 738 739 + // +enum 683 740 #PersistentVolumeClaimPhase: string // #enumPersistentVolumeClaimPhase 684 741 685 742 #enumPersistentVolumeClaimPhase: ··· 698 755 // volume does not exist any longer and all data on it was lost. 699 756 #ClaimLost: #PersistentVolumeClaimPhase & "Lost" 700 757 758 + // +enum 701 759 #HostPathType: string // #enumHostPathType 702 760 703 761 #enumHostPathType: ··· 1079 1137 #StorageMediumHugePagesPrefix: #StorageMedium & "HugePages-" 1080 1138 1081 1139 // Protocol defines network protocols supported for things like container ports. 1140 + // +enum 1082 1141 #Protocol: string // #enumProtocol 1083 1142 1084 1143 #enumProtocol: ··· 1564 1623 fsType?: string @go(FSType) @protobuf(2,bytes,opt) 1565 1624 } 1566 1625 1626 + // +enum 1567 1627 #AzureDataDiskCachingMode: string // #enumAzureDataDiskCachingMode 1568 1628 1569 1629 #enumAzureDataDiskCachingMode: ··· 1571 1631 #AzureDataDiskCachingReadOnly | 1572 1632 #AzureDataDiskCachingReadWrite 1573 1633 1634 + // +enum 1574 1635 #AzureDataDiskKind: string // #enumAzureDataDiskKind 1575 1636 1576 1637 #enumAzureDataDiskKind: ··· 1938 1999 // Filesystem type to mount. 1939 2000 // It applies only when the Path is a block device. 1940 2001 // Must be a filesystem type supported by the host operating system. 1941 - // Ex. "ext4", "xfs", "ntfs". The default value is to auto-select a fileystem if unspecified. 2002 + // Ex. "ext4", "xfs", "ntfs". The default value is to auto-select a filesystem if unspecified. 1942 2003 // +optional 1943 2004 fsType?: null | string @go(FSType,*string) @protobuf(2,bytes,opt) 1944 2005 } ··· 2142 2203 } 2143 2204 2144 2205 // MountPropagationMode describes mount propagation. 2206 + // +enum 2145 2207 #MountPropagationMode: string // #enumMountPropagationMode 2146 2208 2147 2209 #enumMountPropagationMode: ··· 2352 2414 } 2353 2415 2354 2416 // URIScheme identifies the scheme used for connection to a host for Get actions 2417 + // +enum 2355 2418 #URIScheme: string // #enumURIScheme 2356 2419 2357 2420 #enumURIScheme: ··· 2376 2439 host?: string @go(Host) @protobuf(2,bytes,opt) 2377 2440 } 2378 2441 2442 + #GRPCAction: { 2443 + // Port number of the gRPC service. Number must be in the range 1 to 65535. 2444 + port: int32 @go(Port) @protobuf(1,bytes,opt) 2445 + 2446 + // Service is the name of the service to place in the gRPC HealthCheckRequest 2447 + // (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md). 2448 + // 2449 + // If this is not specified, the default behavior is defined by gRPC. 2450 + // +optional 2451 + // +default="" 2452 + service?: null | string @go(Service,*string) @protobuf(2,bytes,opt) 2453 + } 2454 + 2379 2455 // ExecAction describes a "run in container" action. 2380 2456 #ExecAction: { 2381 2457 // Command is the command line to execute inside the container, the working directory for the ··· 2390 2466 // Probe describes a health check to be performed against a container to determine whether it is 2391 2467 // alive or ready to receive traffic. 2392 2468 #Probe: { 2393 - #Handler 2469 + #ProbeHandler 2394 2470 2395 2471 // Number of seconds after the container has started before liveness probes are initiated. 2396 2472 // More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes ··· 2433 2509 } 2434 2510 2435 2511 // PullPolicy describes a policy for if/when to pull a container image 2512 + // +enum 2436 2513 #PullPolicy: string // #enumPullPolicy 2437 2514 2438 2515 #enumPullPolicy: ··· 2450 2527 #PullIfNotPresent: #PullPolicy & "IfNotPresent" 2451 2528 2452 2529 // PreemptionPolicy describes a policy for if/when to preempt a pod. 2530 + // +enum 2453 2531 #PreemptionPolicy: string // #enumPreemptionPolicy 2454 2532 2455 2533 #enumPreemptionPolicy: ··· 2463 2541 #PreemptNever: #PreemptionPolicy & "Never" 2464 2542 2465 2543 // TerminationMessagePolicy describes how termination messages are retrieved from a container. 2544 + // +enum 2466 2545 #TerminationMessagePolicy: string // #enumTerminationMessagePolicy 2467 2546 2468 2547 #enumTerminationMessagePolicy: ··· 2688 2767 tty?: bool @go(TTY) @protobuf(18,varint,opt) 2689 2768 } 2690 2769 2691 - // Handler defines a specific action that should be taken 2692 - // TODO: pass structured data to these actions, and document that data here. 2693 - #Handler: { 2694 - // One and only one of the following should be specified. 2770 + // ProbeHandler defines a specific action that should be taken in a probe. 2771 + // One and only one of the fields must be specified. 2772 + #ProbeHandler: { 2695 2773 // Exec specifies the action to take. 2696 2774 // +optional 2697 2775 exec?: null | #ExecAction @go(Exec,*ExecAction) @protobuf(1,bytes,opt) ··· 2701 2779 httpGet?: null | #HTTPGetAction @go(HTTPGet,*HTTPGetAction) @protobuf(2,bytes,opt) 2702 2780 2703 2781 // TCPSocket specifies an action involving a TCP port. 2704 - // TCP hooks not yet supported 2705 - // TODO: implement a realistic TCP lifecycle hook 2782 + // +optional 2783 + tcpSocket?: null | #TCPSocketAction @go(TCPSocket,*TCPSocketAction) @protobuf(3,bytes,opt) 2784 + 2785 + // GRPC specifies an action involving a GRPC port. 2786 + // This is an alpha field and requires enabling GRPCContainerProbe feature gate. 2787 + // +featureGate=GRPCContainerProbe 2788 + // +optional 2789 + grpc?: null | #GRPCAction @go(GRPC,*GRPCAction) @protobuf(4,bytes,opt) 2790 + } 2791 + 2792 + // LifecycleHandler defines a specific action that should be taken in a lifecycle 2793 + // hook. One and only one of the fields, except TCPSocket must be specified. 2794 + #LifecycleHandler: { 2795 + // Exec specifies the action to take. 2796 + // +optional 2797 + exec?: null | #ExecAction @go(Exec,*ExecAction) @protobuf(1,bytes,opt) 2798 + 2799 + // HTTPGet specifies the http request to perform. 2800 + // +optional 2801 + httpGet?: null | #HTTPGetAction @go(HTTPGet,*HTTPGetAction) @protobuf(2,bytes,opt) 2802 + 2803 + // Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept 2804 + // for the backward compatibility. There are no validation of this field and 2805 + // lifecycle hooks will fail in runtime when tcp handler is specified. 2706 2806 // +optional 2707 2807 tcpSocket?: null | #TCPSocketAction @go(TCPSocket,*TCPSocketAction) @protobuf(3,bytes,opt) 2708 2808 } ··· 2716 2816 // Other management of the container blocks until the hook completes. 2717 2817 // More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks 2718 2818 // +optional 2719 - postStart?: null | #Handler @go(PostStart,*Handler) @protobuf(1,bytes,opt) 2819 + postStart?: null | #LifecycleHandler @go(PostStart,*LifecycleHandler) @protobuf(1,bytes,opt) 2720 2820 2721 2821 // PreStop is called immediately before a container is terminated due to an 2722 2822 // API request or management event such as liveness/startup probe failure, 2723 2823 // preemption, resource contention, etc. The handler is not called if the 2724 - // container crashes or exits. The reason for termination is passed to the 2725 - // handler. The Pod's termination grace period countdown begins before the 2726 - // PreStop hooked is executed. Regardless of the outcome of the handler, the 2824 + // container crashes or exits. The Pod's termination grace period countdown begins before the 2825 + // PreStop hook is executed. Regardless of the outcome of the handler, the 2727 2826 // container will eventually terminate within the Pod's termination grace 2728 - // period. Other management of the container blocks until the hook completes 2827 + // period (unless delayed by finalizers). Other management of the container blocks until the hook completes 2729 2828 // or until the termination grace period is reached. 2730 2829 // More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks 2731 2830 // +optional 2732 - preStop?: null | #Handler @go(PreStop,*Handler) @protobuf(2,bytes,opt) 2831 + preStop?: null | #LifecycleHandler @go(PreStop,*LifecycleHandler) @protobuf(2,bytes,opt) 2733 2832 } 2734 2833 2735 2834 #ConditionStatus: string // #enumConditionStatus ··· 2825 2924 // Specifies whether the container has passed its readiness probe. 2826 2925 ready: bool @go(Ready) @protobuf(4,varint,opt) 2827 2926 2828 - // The number of times the container has been restarted, currently based on 2829 - // the number of dead containers that have not yet been removed. 2830 - // Note that this is calculated from dead containers. But those containers are subject to 2831 - // garbage collection. This value will get capped at 5 by GC. 2927 + // The number of times the container has been restarted. 2832 2928 restartCount: int32 @go(RestartCount) @protobuf(5,varint,opt) 2833 2929 2834 2930 // The image the container is running. 2835 - // More info: https://kubernetes.io/docs/concepts/containers/images 2836 - // TODO(dchen1107): Which image the container is running with? 2931 + // More info: https://kubernetes.io/docs/concepts/containers/images. 2837 2932 image: string @go(Image) @protobuf(6,bytes,opt) 2838 2933 2839 2934 // ImageID of the container's image. ··· 2852 2947 } 2853 2948 2854 2949 // PodPhase is a label for the condition of a pod at the current time. 2950 + // +enum 2855 2951 #PodPhase: string // #enumPodPhase 2856 2952 2857 2953 #enumPodPhase: ··· 2884 2980 #PodUnknown: #PodPhase & "Unknown" 2885 2981 2886 2982 // PodConditionType is a valid value for PodCondition.Type 2983 + // +enum 2887 2984 #PodConditionType: string // #enumPodConditionType 2888 2985 2889 2986 #enumPodConditionType: ··· 2941 3038 // Only one of the following restart policies may be specified. 2942 3039 // If none of the following policies is specified, the default one 2943 3040 // is RestartPolicyAlways. 3041 + // +enum 2944 3042 #RestartPolicy: string // #enumRestartPolicy 2945 3043 2946 3044 #enumRestartPolicy: ··· 2953 3051 #RestartPolicyNever: #RestartPolicy & "Never" 2954 3052 2955 3053 // DNSPolicy defines how a pod's DNS will be configured. 3054 + // +enum 2956 3055 #DNSPolicy: string // #enumDNSPolicy 2957 3056 2958 3057 #enumDNSPolicy: ··· 3028 3127 3029 3128 // A node selector operator is the set of operators that can be used in 3030 3129 // a node selector requirement. 3130 + // +enum 3031 3131 #NodeSelectorOperator: string // #enumNodeSelectorOperator 3032 3132 3033 3133 #enumNodeSelectorOperator: ··· 3232 3332 timeAdded?: null | metav1.#Time @go(TimeAdded,*metav1.Time) @protobuf(4,bytes,opt) 3233 3333 } 3234 3334 3335 + // +enum 3235 3336 #TaintEffect: string // #enumTaintEffect 3236 3337 3237 3338 #enumTaintEffect: ··· 3288 3389 } 3289 3390 3290 3391 // A toleration operator is the set of operators that can be used in a toleration. 3392 + // +enum 3291 3393 #TolerationOperator: string // #enumTolerationOperator 3292 3394 3293 3395 #enumTolerationOperator: ··· 3341 3443 // pod to perform user-initiated actions such as debugging. This list cannot be specified when 3342 3444 // creating a pod, and it cannot be modified by updating the pod spec. In order to add an 3343 3445 // ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. 3344 - // This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. 3446 + // This field is beta-level and available on clusters that haven't disabled the EphemeralContainers feature gate. 3345 3447 // +optional 3346 3448 // +patchMergeKey=name 3347 3449 // +patchStrategy=merge ··· 3561 3663 // Default to false. 3562 3664 // +optional 3563 3665 setHostnameAsFQDN?: null | bool @go(SetHostnameAsFQDN,*bool) @protobuf(35,varint,opt) 3666 + 3667 + // Specifies the OS of the containers in the pod. 3668 + // Some pod and container fields are restricted if this is set. 3669 + // 3670 + // If the OS field is set to linux, the following fields must be unset: 3671 + // -securityContext.windowsOptions 3672 + // 3673 + // If the OS field is set to windows, following fields must be unset: 3674 + // - spec.hostPID 3675 + // - spec.hostIPC 3676 + // - spec.securityContext.seLinuxOptions 3677 + // - spec.securityContext.seccompProfile 3678 + // - spec.securityContext.fsGroup 3679 + // - spec.securityContext.fsGroupChangePolicy 3680 + // - spec.securityContext.sysctls 3681 + // - spec.shareProcessNamespace 3682 + // - spec.securityContext.runAsUser 3683 + // - spec.securityContext.runAsGroup 3684 + // - spec.securityContext.supplementalGroups 3685 + // - spec.containers[*].securityContext.seLinuxOptions 3686 + // - spec.containers[*].securityContext.seccompProfile 3687 + // - spec.containers[*].securityContext.capabilities 3688 + // - spec.containers[*].securityContext.readOnlyRootFilesystem 3689 + // - spec.containers[*].securityContext.privileged 3690 + // - spec.containers[*].securityContext.allowPrivilegeEscalation 3691 + // - spec.containers[*].securityContext.procMount 3692 + // - spec.containers[*].securityContext.runAsUser 3693 + // - spec.containers[*].securityContext.runAsGroup 3694 + // +optional 3695 + // This is an alpha field and requires the IdentifyPodOS feature 3696 + os?: null | #PodOS @go(OS,*PodOS) @protobuf(36,bytes,opt) 3564 3697 } 3565 3698 3699 + // OSName is the set of OS'es that can be used in OS. 3700 + #OSName: string // #enumOSName 3701 + 3702 + #enumOSName: 3703 + #Linux | 3704 + #Windows 3705 + 3706 + #Linux: #OSName & "linux" 3707 + #Windows: #OSName & "windows" 3708 + 3709 + // PodOS defines the OS parameters of a pod. 3710 + #PodOS: { 3711 + // Name is the name of the operating system. The currently supported values are linux and windows. 3712 + // Additional value may be defined in future and can be one of: 3713 + // https://github.com/opencontainers/runtime-spec/blob/master/config.md#platform-specific-configuration 3714 + // Clients should expect to handle additional values and treat unrecognized values in this field as os: null 3715 + name: #OSName @go(Name) @protobuf(1,bytes,opt) 3716 + } 3717 + 3718 + // +enum 3566 3719 #UnsatisfiableConstraintAction: string // #enumUnsatisfiableConstraintAction 3567 3720 3568 3721 #enumUnsatisfiableConstraintAction: ··· 3612 3765 // but giving higher precedence to topologies that would help reduce the 3613 3766 // skew. 3614 3767 // A constraint is considered "Unsatisfiable" for an incoming pod 3615 - // if and only if every possible node assigment for that pod would violate 3768 + // if and only if every possible node assignment for that pod would violate 3616 3769 // "MaxSkew" on some topology. 3617 3770 // For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same 3618 3771 // labelSelector spread as 3/1/1: ··· 3650 3803 3651 3804 // PodFSGroupChangePolicy holds policies that will be used for applying fsGroup to a volume 3652 3805 // when volume is mounted. 3806 + // +enum 3653 3807 #PodFSGroupChangePolicy: string // #enumPodFSGroupChangePolicy 3654 3808 3655 3809 #enumPodFSGroupChangePolicy: ··· 3676 3830 // container. May also be set in SecurityContext. If set in 3677 3831 // both SecurityContext and PodSecurityContext, the value specified in SecurityContext 3678 3832 // takes precedence for that container. 3833 + // Note that this field cannot be set when spec.os.name is windows. 3679 3834 // +optional 3680 3835 seLinuxOptions?: null | #SELinuxOptions @go(SELinuxOptions,*SELinuxOptions) @protobuf(1,bytes,opt) 3681 3836 3682 3837 // The Windows specific settings applied to all containers. 3683 3838 // If unspecified, the options within a container's SecurityContext will be used. 3684 3839 // If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. 3840 + // Note that this field cannot be set when spec.os.name is linux. 3685 3841 // +optional 3686 3842 windowsOptions?: null | #WindowsSecurityContextOptions @go(WindowsOptions,*WindowsSecurityContextOptions) @protobuf(8,bytes,opt) 3687 3843 ··· 3690 3846 // May also be set in SecurityContext. If set in both SecurityContext and 3691 3847 // PodSecurityContext, the value specified in SecurityContext takes precedence 3692 3848 // for that container. 3849 + // Note that this field cannot be set when spec.os.name is windows. 3693 3850 // +optional 3694 3851 runAsUser?: null | int64 @go(RunAsUser,*int64) @protobuf(2,varint,opt) 3695 3852 ··· 3698 3855 // May also be set in SecurityContext. If set in both SecurityContext and 3699 3856 // PodSecurityContext, the value specified in SecurityContext takes precedence 3700 3857 // for that container. 3858 + // Note that this field cannot be set when spec.os.name is windows. 3701 3859 // +optional 3702 3860 runAsGroup?: null | int64 @go(RunAsGroup,*int64) @protobuf(6,varint,opt) 3703 3861 ··· 3713 3871 // A list of groups applied to the first process run in each container, in addition 3714 3872 // to the container's primary GID. If unspecified, no groups will be added to 3715 3873 // any container. 3874 + // Note that this field cannot be set when spec.os.name is windows. 3716 3875 // +optional 3717 3876 supplementalGroups?: [...int64] @go(SupplementalGroups,[]int64) @protobuf(4,varint,rep) 3718 3877 ··· 3725 3884 // 3. The permission bits are OR'd with rw-rw---- 3726 3885 // 3727 3886 // If unset, the Kubelet will not modify the ownership and permissions of any volume. 3887 + // Note that this field cannot be set when spec.os.name is windows. 3728 3888 // +optional 3729 3889 fsGroup?: null | int64 @go(FSGroup,*int64) @protobuf(5,varint,opt) 3730 3890 3731 3891 // Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported 3732 3892 // sysctls (by the container runtime) might fail to launch. 3893 + // Note that this field cannot be set when spec.os.name is windows. 3733 3894 // +optional 3734 3895 sysctls?: [...#Sysctl] @go(Sysctls,[]Sysctl) @protobuf(7,bytes,rep) 3735 3896 ··· 3739 3900 // It will have no effect on ephemeral volume types such as: secret, configmaps 3740 3901 // and emptydir. 3741 3902 // Valid values are "OnRootMismatch" and "Always". If not specified, "Always" is used. 3903 + // Note that this field cannot be set when spec.os.name is windows. 3742 3904 // +optional 3743 3905 fsGroupChangePolicy?: null | #PodFSGroupChangePolicy @go(FSGroupChangePolicy,*PodFSGroupChangePolicy) @protobuf(9,bytes,opt) 3744 3906 3745 3907 // The seccomp options to use by the containers in this pod. 3908 + // Note that this field cannot be set when spec.os.name is windows. 3746 3909 // +optional 3747 3910 seccompProfile?: null | #SeccompProfile @go(SeccompProfile,*SeccompProfile) @protobuf(10,bytes,opt) 3748 3911 } ··· 3769 3932 } 3770 3933 3771 3934 // SeccompProfileType defines the supported seccomp profile types. 3935 + // +enum 3772 3936 #SeccompProfileType: string // #enumSeccompProfileType 3773 3937 3774 3938 #enumSeccompProfileType: ··· 3783 3947 #SeccompProfileTypeRuntimeDefault: #SeccompProfileType & "RuntimeDefault" 3784 3948 3785 3949 // SeccompProfileTypeLocalhost indicates a profile defined in a file on the node should be used. 3786 - // The file's location is based off the kubelet's deprecated flag --seccomp-profile-root. 3787 - // Once the flag support is removed the location will be <kubelet-root-dir>/seccomp. 3950 + // The file's location relative to <kubelet-root-dir>/seccomp. 3788 3951 #SeccompProfileTypeLocalhost: #SeccompProfileType & "Localhost" 3789 3952 3790 3953 // PodQOSClass defines the supported qos classes of Pods. 3954 + // +enum 3791 3955 #PodQOSClass: string // #enumPodQOSClass 3792 3956 3793 3957 #enumPodQOSClass: ··· 3887 4051 workingDir?: string @go(WorkingDir) @protobuf(5,bytes,opt) 3888 4052 3889 4053 // Ports are not allowed for ephemeral containers. 4054 + // +optional 4055 + // +patchMergeKey=containerPort 4056 + // +patchStrategy=merge 4057 + // +listType=map 4058 + // +listMapKey=containerPort 4059 + // +listMapKey=protocol 3890 4060 ports?: [...#ContainerPort] @go(Ports,[]ContainerPort) @protobuf(6,bytes,rep) 3891 4061 3892 4062 // List of sources to populate environment variables in the container. ··· 3910 4080 // +optional 3911 4081 resources?: #ResourceRequirements @go(Resources) @protobuf(8,bytes,opt) 3912 4082 3913 - // Pod volumes to mount into the container's filesystem. 4083 + // Pod volumes to mount into the container's filesystem. Subpath mounts are not allowed for ephemeral containers. 3914 4084 // Cannot be updated. 3915 4085 // +optional 3916 4086 // +patchMergeKey=mountPath ··· 3994 4164 tty?: bool @go(TTY) @protobuf(18,varint,opt) 3995 4165 } 3996 4166 3997 - // An EphemeralContainer is a container that may be added temporarily to an existing pod for 4167 + // An EphemeralContainer is a temporary container that you may add to an existing Pod for 3998 4168 // user-initiated activities such as debugging. Ephemeral containers have no resource or 3999 - // scheduling guarantees, and they will not be restarted when they exit or when a pod is 4000 - // removed or restarted. If an ephemeral container causes a pod to exceed its resource 4001 - // allocation, the pod may be evicted. 4002 - // Ephemeral containers may not be added by directly updating the pod spec. They must be added 4003 - // via the pod's ephemeralcontainers subresource, and they will appear in the pod spec 4004 - // once added. 4005 - // This is an alpha feature enabled by the EphemeralContainers feature flag. 4169 + // scheduling guarantees, and they will not be restarted when they exit or when a Pod is 4170 + // removed or restarted. The kubelet may evict a Pod if an ephemeral container causes the 4171 + // Pod to exceed its resource allocation. 4172 + // 4173 + // To add an ephemeral container, use the ephemeralcontainers subresource of an existing 4174 + // Pod. Ephemeral containers may not be removed or restarted. 4175 + // 4176 + // This is a beta feature available on clusters that haven't disabled the EphemeralContainers feature gate. 4006 4177 #EphemeralContainer: { 4007 4178 #EphemeralContainerCommon 4008 4179 4009 4180 // If set, the name of the container from PodSpec that this ephemeral container targets. 4010 4181 // The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. 4011 - // If not set then the ephemeral container is run in whatever namespaces are shared 4012 - // for the pod. Note that the container runtime must support this feature. 4182 + // If not set then the ephemeral container uses the namespaces configured in the Pod spec. 4183 + // 4184 + // The container runtime must implement support for this feature. If the runtime does not 4185 + // support namespace targeting then the result of setting this field is undefined. 4013 4186 // +optional 4014 4187 targetContainerName?: string @go(TargetContainerName) @protobuf(2,bytes,opt) 4015 4188 } ··· 4106 4279 qosClass?: #PodQOSClass @go(QOSClass) @protobuf(9,bytes,rep) 4107 4280 4108 4281 // Status for any ephemeral containers that have run in this pod. 4109 - // This field is alpha-level and is only populated by servers that enable the EphemeralContainers feature. 4282 + // This field is beta-level and available on clusters that haven't disabled the EphemeralContainers feature gate. 4110 4283 // +optional 4111 4284 ephemeralContainerStatuses?: [...#ContainerStatus] @go(EphemeralContainerStatuses,[]ContainerStatus) @protobuf(13,bytes,rep) 4112 4285 } ··· 4339 4512 } 4340 4513 4341 4514 // Session Affinity Type string 4515 + // +enum 4342 4516 #ServiceAffinity: string // #enumServiceAffinity 4343 4517 4344 4518 #enumServiceAffinity: ··· 4370 4544 } 4371 4545 4372 4546 // Service Type string describes ingress methods for a service 4547 + // +enum 4373 4548 #ServiceType: string // #enumServiceType 4374 4549 4375 4550 #enumServiceType: ··· 4398 4573 4399 4574 // ServiceInternalTrafficPolicyType describes the type of traffic routing for 4400 4575 // internal traffic 4576 + // +enum 4401 4577 #ServiceInternalTrafficPolicyType: string // #enumServiceInternalTrafficPolicyType 4402 4578 4403 4579 #enumServiceInternalTrafficPolicyType: ··· 4412 4588 #ServiceInternalTrafficPolicyLocal: #ServiceInternalTrafficPolicyType & "Local" 4413 4589 4414 4590 // Service External Traffic Policy Type string 4591 + // +enum 4415 4592 #ServiceExternalTrafficPolicyType: string // #enumServiceExternalTrafficPolicyType 4416 4593 4417 4594 #enumServiceExternalTrafficPolicyType: ··· 4474 4651 4475 4652 // IPFamily represents the IP Family (IPv4 or IPv6). This type is used 4476 4653 // to express the family of an IP expressed by a type (e.g. service.spec.ipFamilies). 4654 + // +enum 4477 4655 #IPFamily: string // #enumIPFamily 4478 4656 4479 4657 #enumIPFamily: ··· 4487 4665 #IPv6Protocol: #IPFamily & "IPv6" 4488 4666 4489 4667 // IPFamilyPolicyType represents the dual-stack-ness requested or required by a Service 4668 + // +enum 4490 4669 #IPFamilyPolicyType: string // #enumIPFamilyPolicyType 4491 4670 4492 4671 #enumIPFamilyPolicyType: ··· 4572 4751 // clients must ensure that clusterIPs[0] and clusterIP have the same 4573 4752 // value. 4574 4753 // 4575 - // Unless the "IPv6DualStack" feature gate is enabled, this field is 4576 - // limited to one value, which must be the same as the clusterIP field. If 4577 - // the feature gate is enabled, this field may hold a maximum of two 4578 - // entries (dual-stack IPs, in either order). These IPs must correspond to 4579 - // the values of the ipFamilies field. Both clusterIPs and ipFamilies are 4580 - // governed by the ipFamilyPolicy field. 4754 + // This field may hold a maximum of two entries (dual-stack IPs, in either order). 4755 + // These IPs must correspond to the values of the ipFamilies field. Both 4756 + // clusterIPs and ipFamilies are governed by the ipFamilyPolicy field. 4581 4757 // More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies 4582 4758 // +listType=atomic 4583 4759 // +optional ··· 4677 4853 sessionAffinityConfig?: null | #SessionAffinityConfig @go(SessionAffinityConfig,*SessionAffinityConfig) @protobuf(14,bytes,opt) 4678 4854 4679 4855 // IPFamilies is a list of IP families (e.g. IPv4, IPv6) assigned to this 4680 - // service, and is gated by the "IPv6DualStack" feature gate. This field 4681 - // is usually assigned automatically based on cluster configuration and the 4682 - // ipFamilyPolicy field. If this field is specified manually, the requested 4683 - // family is available in the cluster, and ipFamilyPolicy allows it, it 4684 - // will be used; otherwise creation of the service will fail. This field 4685 - // is conditionally mutable: it allows for adding or removing a secondary 4686 - // IP family, but it does not allow changing the primary IP family of the 4687 - // Service. Valid values are "IPv4" and "IPv6". This field only applies 4688 - // to Services of types ClusterIP, NodePort, and LoadBalancer, and does 4689 - // apply to "headless" services. This field will be wiped when updating a 4690 - // Service to type ExternalName. 4856 + // service. This field is usually assigned automatically based on cluster 4857 + // configuration and the ipFamilyPolicy field. If this field is specified 4858 + // manually, the requested family is available in the cluster, 4859 + // and ipFamilyPolicy allows it, it will be used; otherwise creation of 4860 + // the service will fail. This field is conditionally mutable: it allows 4861 + // for adding or removing a secondary IP family, but it does not allow 4862 + // changing the primary IP family of the Service. Valid values are "IPv4" 4863 + // and "IPv6". This field only applies to Services of types ClusterIP, 4864 + // NodePort, and LoadBalancer, and does apply to "headless" services. 4865 + // This field will be wiped when updating a Service to type ExternalName. 4691 4866 // 4692 4867 // This field may hold a maximum of two entries (dual-stack families, in 4693 4868 // either order). These families must correspond to the values of the ··· 4698 4873 ipFamilies?: [...#IPFamily] @go(IPFamilies,[]IPFamily) @protobuf(19,bytes,opt,casttype=IPFamily) 4699 4874 4700 4875 // IPFamilyPolicy represents the dual-stack-ness requested or required by 4701 - // this Service, and is gated by the "IPv6DualStack" feature gate. If 4702 - // there is no value provided, then this field will be set to SingleStack. 4703 - // Services can be "SingleStack" (a single IP family), "PreferDualStack" 4704 - // (two IP families on dual-stack configured clusters or a single IP family 4705 - // on single-stack clusters), or "RequireDualStack" (two IP families on 4706 - // dual-stack configured clusters, otherwise fail). The ipFamilies and 4707 - // clusterIPs fields depend on the value of this field. This field will be 4708 - // wiped when updating a service to type ExternalName. 4876 + // this Service. If there is no value provided, then this field will be set 4877 + // to SingleStack. Services can be "SingleStack" (a single IP family), 4878 + // "PreferDualStack" (two IP families on dual-stack configured clusters or 4879 + // a single IP family on single-stack clusters), or "RequireDualStack" 4880 + // (two IP families on dual-stack configured clusters, otherwise fail). The 4881 + // ipFamilies and clusterIPs fields depend on the value of this field. This 4882 + // field will be wiped when updating a service to type ExternalName. 4709 4883 // +optional 4710 4884 ipFamilyPolicy?: null | #IPFamilyPolicyType @go(IPFamilyPolicy,*IPFamilyPolicyType) @protobuf(17,bytes,opt,casttype=IPFamilyPolicyType) 4711 4885 ··· 5301 5475 sizeBytes?: int64 @go(SizeBytes) @protobuf(2,varint,opt) 5302 5476 } 5303 5477 5478 + // +enum 5304 5479 #NodePhase: string // #enumNodePhase 5305 5480 5306 5481 #enumNodePhase: ··· 5317 5492 // NodeTerminated means the node has been removed from the cluster. 5318 5493 #NodeTerminated: #NodePhase & "Terminated" 5319 5494 5495 + // +enum 5320 5496 #NodeConditionType: string // #enumNodeConditionType 5321 5497 5322 5498 #enumNodeConditionType: ··· 5366 5542 message?: string @go(Message) @protobuf(6,bytes,opt) 5367 5543 } 5368 5544 5545 + // +enum 5369 5546 #NodeAddressType: string // #enumNodeAddressType 5370 5547 5371 5548 #enumNodeAddressType: ··· 5539 5716 conditions?: [...#NamespaceCondition] @go(Conditions,[]NamespaceCondition) @protobuf(2,bytes,rep) 5540 5717 } 5541 5718 5719 + // +enum 5542 5720 #NamespacePhase: string // #enumNamespacePhase 5543 5721 5544 5722 #enumNamespacePhase: ··· 5555 5733 // forbidden due to the namespace being terminated. 5556 5734 #NamespaceTerminatingCause: metav1.#CauseType & "NamespaceTerminating" 5557 5735 5736 + // +enum 5558 5737 #NamespaceConditionType: string // #enumNamespaceConditionType 5559 5738 5560 5739 #enumNamespaceConditionType: ··· 5758 5937 stdin?: bool @go(Stdin) @protobuf(1,varint,opt) 5759 5938 5760 5939 // Redirect the standard output stream of the pod for this call. 5761 - // Defaults to true. 5762 5940 // +optional 5763 5941 stdout?: bool @go(Stdout) @protobuf(2,varint,opt) 5764 5942 5765 5943 // Redirect the standard error stream of the pod for this call. 5766 - // Defaults to true. 5767 5944 // +optional 5768 5945 stderr?: bool @go(Stderr) @protobuf(3,varint,opt) 5769 5946 ··· 6039 6216 #List: metav1.#List 6040 6217 6041 6218 // LimitType is a type of object that is limited 6219 + // +enum 6042 6220 #LimitType: string // #enumLimitType 6043 6221 6044 6222 #enumLimitType: ··· 6172 6350 #DefaultResourceRequestsPrefix: "requests." 6173 6351 6174 6352 // A ResourceQuotaScope defines a filter that must match each object tracked by a quota 6353 + // +enum 6175 6354 #ResourceQuotaScope: string // #enumResourceQuotaScope 6176 6355 6177 6356 #enumResourceQuotaScope: ··· 6249 6428 6250 6429 // A scope selector operator is the set of operators that can be used in 6251 6430 // a scope selector requirement. 6431 + // +enum 6252 6432 #ScopeSelectorOperator: string // #enumScopeSelectorOperator 6253 6433 6254 6434 #enumScopeSelectorOperator: ··· 6341 6521 stringData?: {[string]: string} @go(StringData,map[string]string) @protobuf(4,bytes,rep) 6342 6522 6343 6523 // Used to facilitate programmatic handling of secret data. 6524 + // More info: https://kubernetes.io/docs/concepts/configuration/secret/#secret-types 6344 6525 // +optional 6345 6526 type?: #SecretType @go(Type) @protobuf(3,bytes,opt,casttype=SecretType) 6346 6527 } ··· 6630 6811 #SecurityContext: { 6631 6812 // The capabilities to add/drop when running containers. 6632 6813 // Defaults to the default set of capabilities granted by the container runtime. 6814 + // Note that this field cannot be set when spec.os.name is windows. 6633 6815 // +optional 6634 6816 capabilities?: null | #Capabilities @go(Capabilities,*Capabilities) @protobuf(1,bytes,opt) 6635 6817 6636 6818 // Run container in privileged mode. 6637 6819 // Processes in privileged containers are essentially equivalent to root on the host. 6638 6820 // Defaults to false. 6821 + // Note that this field cannot be set when spec.os.name is windows. 6639 6822 // +optional 6640 6823 privileged?: null | bool @go(Privileged,*bool) @protobuf(2,varint,opt) 6641 6824 ··· 6643 6826 // If unspecified, the container runtime will allocate a random SELinux context for each 6644 6827 // container. May also be set in PodSecurityContext. If set in both SecurityContext and 6645 6828 // PodSecurityContext, the value specified in SecurityContext takes precedence. 6829 + // Note that this field cannot be set when spec.os.name is windows. 6646 6830 // +optional 6647 6831 seLinuxOptions?: null | #SELinuxOptions @go(SELinuxOptions,*SELinuxOptions) @protobuf(3,bytes,opt) 6648 6832 6649 6833 // The Windows specific settings applied to all containers. 6650 6834 // If unspecified, the options from the PodSecurityContext will be used. 6651 6835 // If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. 6836 + // Note that this field cannot be set when spec.os.name is linux. 6652 6837 // +optional 6653 6838 windowsOptions?: null | #WindowsSecurityContextOptions @go(WindowsOptions,*WindowsSecurityContextOptions) @protobuf(10,bytes,opt) 6654 6839 ··· 6656 6841 // Defaults to user specified in image metadata if unspecified. 6657 6842 // May also be set in PodSecurityContext. If set in both SecurityContext and 6658 6843 // PodSecurityContext, the value specified in SecurityContext takes precedence. 6844 + // Note that this field cannot be set when spec.os.name is windows. 6659 6845 // +optional 6660 6846 runAsUser?: null | int64 @go(RunAsUser,*int64) @protobuf(4,varint,opt) 6661 6847 ··· 6663 6849 // Uses runtime default if unset. 6664 6850 // May also be set in PodSecurityContext. If set in both SecurityContext and 6665 6851 // PodSecurityContext, the value specified in SecurityContext takes precedence. 6852 + // Note that this field cannot be set when spec.os.name is windows. 6666 6853 // +optional 6667 6854 runAsGroup?: null | int64 @go(RunAsGroup,*int64) @protobuf(8,varint,opt) 6668 6855 ··· 6677 6864 6678 6865 // Whether this container has a read-only root filesystem. 6679 6866 // Default is false. 6867 + // Note that this field cannot be set when spec.os.name is windows. 6680 6868 // +optional 6681 6869 readOnlyRootFilesystem?: null | bool @go(ReadOnlyRootFilesystem,*bool) @protobuf(6,varint,opt) 6682 6870 ··· 6686 6874 // AllowPrivilegeEscalation is true always when the container is: 6687 6875 // 1) run as Privileged 6688 6876 // 2) has CAP_SYS_ADMIN 6877 + // Note that this field cannot be set when spec.os.name is windows. 6689 6878 // +optional 6690 6879 allowPrivilegeEscalation?: null | bool @go(AllowPrivilegeEscalation,*bool) @protobuf(7,varint,opt) 6691 6880 ··· 6693 6882 // The default is DefaultProcMount which uses the container runtime defaults for 6694 6883 // readonly paths and masked paths. 6695 6884 // This requires the ProcMountType feature flag to be enabled. 6885 + // Note that this field cannot be set when spec.os.name is windows. 6696 6886 // +optional 6697 6887 procMount?: null | #ProcMountType @go(ProcMount,*ProcMountType) @protobuf(9,bytes,opt) 6698 6888 6699 6889 // The seccomp options to use by this container. If seccomp options are 6700 6890 // provided at both the pod & container level, the container options 6701 6891 // override the pod options. 6892 + // Note that this field cannot be set when spec.os.name is windows. 6702 6893 // +optional 6703 6894 seccompProfile?: null | #SeccompProfile @go(SeccompProfile,*SeccompProfile) @protobuf(11,bytes,opt) 6704 6895 } 6705 6896 6897 + // +enum 6706 6898 #ProcMountType: string // #enumProcMountType 6707 6899 6708 6900 #enumProcMountType:
+10
doc/tutorial/kubernetes/quick/cue.mod/gen/k8s.io/apimachinery/pkg/api/resource/quantity_go_gen.cue
··· 84 84 _#splitREString: "^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$" 85 85 86 86 _#int64QuantityExpectedBytes: 18 87 + 88 + // QuantityValue makes it possible to use a Quantity as value for a command 89 + // line parameter. 90 + // 91 + // +protobuf=true 92 + // +protobuf.embed=string 93 + // +protobuf.options.marshal=false 94 + // +protobuf.options.(gogoproto.goproto_stringer)=false 95 + // +k8s:deepcopy-gen=true 96 + #QuantityValue: _
+2 -2
doc/tutorial/kubernetes/quick/cue.mod/gen/k8s.io/apimachinery/pkg/apis/meta/v1/group_version_go_gen.cue
··· 14 14 } 15 15 16 16 // GroupVersionResource unambiguously identifies a resource. It doesn't anonymously include GroupVersion 17 - // to avoid automatic coersion. It doesn't use a GroupVersion to avoid custom marshalling 17 + // to avoid automatic coercion. It doesn't use a GroupVersion to avoid custom marshalling 18 18 // 19 19 // +protobuf.options.(gogoproto.goproto_stringer)=false 20 20 #GroupVersionResource: { ··· 33 33 } 34 34 35 35 // GroupVersionKind unambiguously identifies a kind. It doesn't anonymously include GroupVersion 36 - // to avoid automatic coersion. It doesn't use a GroupVersion to avoid custom marshalling 36 + // to avoid automatic coercion. It doesn't use a GroupVersion to avoid custom marshalling 37 37 // 38 38 // +protobuf.options.(gogoproto.goproto_stringer)=false 39 39 #GroupVersionKind: {
+48
doc/tutorial/kubernetes/quick/cue.mod/gen/k8s.io/apimachinery/pkg/apis/meta/v1/types_go_gen.cue
··· 506 506 dryRun?: [...string] @go(DryRun,[]string) @protobuf(5,bytes,rep) 507 507 } 508 508 509 + // FieldValidationIgnore ignores unknown/duplicate fields 510 + #FieldValidationIgnore: "Ignore" 511 + 512 + // FieldValidationWarn responds with a warning, but successfully serve the request 513 + #FieldValidationWarn: "Warn" 514 + 515 + // FieldValidationStrict fails the request on unknown/duplicate fields 516 + #FieldValidationStrict: "Strict" 517 + 509 518 // CreateOptions may be provided when creating an API object. 510 519 #CreateOptions: { 511 520 #TypeMeta ··· 524 533 // as defined by https://golang.org/pkg/unicode/#IsPrint. 525 534 // +optional 526 535 fieldManager?: string @go(FieldManager) @protobuf(3,bytes) 536 + 537 + // fieldValidation determines how the server should respond to 538 + // unknown/duplicate fields in the object in the request. 539 + // Introduced as alpha in 1.23, older servers or servers with the 540 + // `ServerSideFieldValidation` feature disabled will discard valid values 541 + // specified in this param and not perform any server side field validation. 542 + // Valid values are: 543 + // - Ignore: ignores unknown/duplicate fields. 544 + // - Warn: responds with a warning for each 545 + // unknown/duplicate field, but successfully serves the request. 546 + // - Strict: fails the request on unknown/duplicate fields. 547 + // +optional 548 + fieldValidation?: string @go(FieldValidation) @protobuf(4,bytes) 527 549 } 528 550 529 551 // PatchOptions may be provided when patching an API object. ··· 554 576 // types (JsonPatch, MergePatch, StrategicMergePatch). 555 577 // +optional 556 578 fieldManager?: string @go(FieldManager) @protobuf(3,bytes) 579 + 580 + // fieldValidation determines how the server should respond to 581 + // unknown/duplicate fields in the object in the request. 582 + // Introduced as alpha in 1.23, older servers or servers with the 583 + // `ServerSideFieldValidation` feature disabled will discard valid values 584 + // specified in this param and not perform any server side field validation. 585 + // Valid values are: 586 + // - Ignore: ignores unknown/duplicate fields. 587 + // - Warn: responds with a warning for each 588 + // unknown/duplicate field, but successfully serves the request. 589 + // - Strict: fails the request on unknown/duplicate fields. 590 + // +optional 591 + fieldValidation?: string @go(FieldValidation) @protobuf(4,bytes) 557 592 } 558 593 559 594 // ApplyOptions may be provided when applying an API object. ··· 602 637 // as defined by https://golang.org/pkg/unicode/#IsPrint. 603 638 // +optional 604 639 fieldManager?: string @go(FieldManager) @protobuf(2,bytes) 640 + 641 + // fieldValidation determines how the server should respond to 642 + // unknown/duplicate fields in the object in the request. 643 + // Introduced as alpha in 1.23, older servers or servers with the 644 + // `ServerSideFieldValidation` feature disabled will discard valid values 645 + // specified in this param and not perform any server side field validation. 646 + // Valid values are: 647 + // - Ignore: ignores unknown/duplicate fields. 648 + // - Warn: responds with a warning for each 649 + // unknown/duplicate field, but successfully serves the request. 650 + // - Strict: fails the request on unknown/duplicate fields. 651 + // +optional 652 + fieldValidation?: string @go(FieldValidation) @protobuf(3,bytes) 605 653 } 606 654 607 655 // Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out.
+4
doc/tutorial/kubernetes/quick/cue.mod/gen/k8s.io/apimachinery/pkg/runtime/interfaces_go_gen.cue
··· 64 64 // readability. 65 65 PrettySerializer: #Serializer 66 66 67 + // StrictSerializer, if set, deserializes this object strictly, 68 + // erring on unknown fields. 69 + StrictSerializer: #Serializer 70 + 67 71 // StreamSerializer, if set, describes the streaming serialization format 68 72 // for this media type. 69 73 StreamSerializer?: null | #StreamSerializerInfo @go(,*StreamSerializerInfo)
+2 -2
internal/ci/workflows.cue
··· 278 278 } 279 279 name: "Trigger unity build" 280 280 run: #""" 281 - \#(_#curl) -H "Content-Type: application/json" -u cueckoo:${{ secrets.CUECKOO_GITHUB_PAT }} --request POST --data-binary \#(strconv.Quote(encjson.Marshal(_#arg))) https://api.github.com/repos/cue-lang/unity/dispatches 281 + \#(_#curl) -H "Content-Type: application/json" -u cueckoo:${{ secrets.CUECKOO_GITHUB_PAT }} --request POST --data-binary \#(strconv.Quote(encjson.Marshal(_#arg))) https://api.github.com/repos/cue-unity/unity/dispatches 282 282 """# 283 283 }, 284 284 ] ··· 310 310 } 311 311 name: "Trigger unity build" 312 312 run: #""" 313 - \#(_#curl) -H "Content-Type: application/json" -u cueckoo:${{ secrets.CUECKOO_GITHUB_PAT }} --request POST --data-binary \#(strconv.Quote(encjson.Marshal(_#arg))) https://api.github.com/repos/cue-lang/unity/dispatches 313 + \#(_#curl) -H "Content-Type: application/json" -u cueckoo:${{ secrets.CUECKOO_GITHUB_PAT }} --request POST --data-binary \#(strconv.Quote(encjson.Marshal(_#arg))) https://api.github.com/repos/cue-unity/unity/dispatches 314 314 """# 315 315 }, 316 316 ]