Common config
Implementation, history and tests of the entries on the reference page Common config. Text in square brackets is added here to say what a moved sentence refers to.
Common config
- History:
- go-kure/launcher#423 (the six properties and
command/argsread through presence-reporting helpers). - go-kure/launcher#447 (a top-level entry with
nameabsent or null refused by schema validation). - go-kure/launcher#453 (the parser message for a non-string at those positions).
- go-kure/launcher#546 (a dotted or longer name refused at conversion by the Service-name rule).
- go-kure/launcher#690 (
daemonsetandstatefulsetstop emitting a Service, andportgoes). - go-kure/launcher#383 (
cpuandmemorydeclared as a string-or-number union). - go-kure/launcher#342 (the pod-level
resourceClaimsproperty accepted). - go-kure/launcher#1228 (a
sleeplonger than the pod’sterminationGracePeriodSecondsrefused). - go-kure/launcher#790 (the container
windowsOptionskey set, its breaking rules for a pod-level value, and the closed key set of theaffinityshorthand). - go-kure/launcher#384 (
pvc.sizemust be a positive quantity). - go-kure/launcher#761 (
volumeClaimTemplates.storageClasskeeps the absent-versus-empty distinction [since go-kure/launcher#1629, as thespec.storageClassNameof a raw claim template]). - go-kure/launcher#793 (
oam.ShortenNameWithSuffixshortens a qualified volume name over 253 characters). - go-kure/launcher#1177 (a volume entry can author its source as the upstream object under a
key named like its
type). - go-kure/launcher#1172 (a
volumeMountsitem is a closed key set). - go-kure/launcher#1193 (one helper reads the mount keys under the rules of upstream
ValidateVolumeMounts). - go-kure/launcher#1199 (
subPathandsubPathExprrefused with a..element in all four places). - go-kure/launcher#1198 (the main container reads the same mount keys).
- go-kure/launcher#1212, go-kure/launcher#1223 (the mount rules held on the typed upstream mounts of the other kinds, with the error naming the container and the mount’s position).
- go-kure/launcher#321 (an
initContainersentry is a closed key set). - go-kure/launcher#1225 (port names unique across the pod).
- go-kure/launcher#1226 (a pod whose containers share a name refused when the document is read).
- go-kure/launcher#1254 (a container name in either list must be a DNS-1123 label).
- go-kure/launcher#1278 (the same check again when the pod is generated).
- go-kure/launcher#448 (the
postgresqlcomponent’s affinity block contract). - go-kure/launcher#452 (a non-string
nodeSelectorvalue, a behavior change underv1alpha1). - go-kure/launcher#444 later folded the dedicated
optionalObject/optionalObjectList/optionalStringListwrappers those six originally used into the baseparseObjectField/parseStringField/etc. helpers themselves — callers now use the base helpers directly, and the null-as-absence behavior applies uniformly rather than only through the wrappers. [the six:env,command,args,initContainers,sidecarsandaffinity] jobrefused the name from its introduction; the other six gained the check in go-kure/launcher#407. [the name is a workload component name;joband the other six are the seven workload kindswebservice,worker,deployment,statefulset,daemonset,cronjobandjob;deployment,statefulset,daemonset,jobandcronjobhave since become raw kinds with no main container named after the component (go-kure/launcher#1629), so the reference page lists the kinds that keep the reshaped form]- Until go-kure/launcher#405 all three were read with a bare comma-ok assertion, so a
handler called directly — without the schema validation an authored document gets first,
which already refused these shapes — dropped the value and emitted a container with no
requests or limits. [all three:
resources,requestsandlimits] - Until go-kure/launcher#423 they were mishandled twice over: a mistyped
command: /bin/sh -c truefell through their comma-ok guard and the container built with no command at all, andcommand: [ls, 3]emitted["ls"]and said nothing about the3. Closing it changed their signature to return an error, which is why the fix touches all 9 call sites — the seven workload kinds’ own main containers, plusinitContainersandsidecarsincommon.go[they:commandandargs;deployment,statefulset,daemonset,jobandcronjobhave no main container of their own since go-kure/launcher#1629] - go-kure/launcher#660; before that the name and protocol were taken unchecked, and a
non-list
ports, an unknown key, a non-string name or a non-string protocol, which then read asTCP, was dropped [the sentence is about the entries of a sidecar’sports] - before go-kure/launcher#466 it was refused as
must be a string, got <nil>[it: anodeSelectorvalue that is null, such asrack: null]
- go-kure/launcher#423 (the six properties and
Container fields
- History:
- go-kure/launcher#790 (the seven container fields read on every container of a hand-parsed
workload kind, and an
initContainersentry’s ownrestartPolicyandrestartPolicyRules). - go-kure/launcher#1180 (
restartPolicy: Alwaysmakes an init container entry a native sidecar). - go-kure/launcher#1225 (an init container’s
portsread as asidecarsentry’s are). - go-kure/launcher#1183 (
restartPolicyRulesrefused below Kubernetes 1.35, naming the gate and the version). - go-kure/launcher#1230 (the schema names the gate per value (
valueGates), soAlwaysis accepted at every version).
- go-kure/launcher#790 (the seven container fields read on every container of a hand-parsed
workload kind, and an
- Tests:
- One parser (
parseContainerFields,container_fields.go) and one schema fragment (schemaContainerFields) serve the three positions, pinned to each other byTestContainerFieldsSchemaMatchesParser. [the three positions: the main container, eachinitContainersentry and eachsidecarsentry]
- One parser (
Referencing an existing claim (pvc.claimName)
- History:
- go-kure/launcher#702 (a
pvcvolume withclaimNamemounts an existing claim). - go-kure/launcher#787 (the
claimObjectNameof a volume that synthesizes a claim, roleworkload-volume-claim). - go-kure/launcher#746 (an unauthored
storageClasstakes thestorageClassNameof the ClusterProfilepvccapability). - go-kure/launcher#761 (a
statefulsetvolumeClaimTemplatesentry takes the same default).
- go-kure/launcher#702 (a
Raw block volumes (volumeMode: Block)
- History:
- go-kure/launcher#385 (a container consumes a Block claim through
volumeDevicesat adevicePath). - go-kure/launcher#790 (the published schema publishes
mountPathanddevicePathas two optional keys plus a requiredexclusivegroup). - go-kure/launcher#1629 (a
statefulsetclaim template is a raw PersistentVolumeClaim: thevolumeMode: Blockclaim and thevolumeDevicesentry that consumes it are authored as the API shapes them, and the claim-template half of the rules above is gone).
- go-kure/launcher#385 (a container consumes a Block claim through
Pod-level properties
- History:
- go-kure/launcher#342 (the seven kind components share one pod-level property surface,
parsePodSpec[the reshaped ones only:deployment,statefulset,daemonset,jobandcronjobtook the upstream pod spec undertemplate.spec(jobTemplate.spec.template.specon acronjob) in go-kure/launcher#1629]). - go-kure/launcher#1183 (a property whose feature gate is off at the profile’s
kubernetesVersionrefused). - go-kure/launcher#1231 (a profile’s
spec.featureGatesreplaces the release default for a gate it names). - go-kure/launcher#1230 (the gate named per value in the schema (
valueGates)). - go-kure/launcher#1321 (the
templateofcnpg-poolerleft open like the raw-PodSpec kinds, its gated paths named ingatedPaths). - go-kure/launcher#1245 (a gated path in an open node refused, naming the authored path).
- go-kure/launcher#1330 (a gated value refused, naming the authored path and the value).
- go-kure/launcher#702 (an unset pod kind names no account and sets
automountServiceAccountToken: falseunless that is authored). - go-kure/launcher#790 (the schema publishes the
resourceClaimspairresourceClaimNameandresourceClaimTemplateNameas anexclusivegroup). - go-kure/launcher#312 (the shared
enforceExtraContainerhelper covers everyinitContainersandsidecarsentry). - go-kure/launcher#1171 (the
security-contexttrait merges into what is authored). - go-kure/launcher#790 made the container
windowsOptionsauthorable [the containerwindowsOptions:securityContext.windowsOptions]
- go-kure/launcher#342 (the seven kind components share one pod-level property surface,
Deployment-level properties (webservice, worker)
- History:
- go-kure/launcher#1629 (the kind-named
deploymentbecame a raw kind: its properties are theDeploymentSpecfields, strictly decoded, and the reshaped form moved to therole-deploymentmember thatwebserviceandworkerlower into. A breaking pre-GA change ofdeployment, with no launcher default: the sentences below that say “all three” or namedeploymentas one of the sharing kinds are from before it. [the reference page now says two]). - go-kure/launcher#1629 (
daemonsetbecame a raw kind in the same way: theDaemonSetSpecfields, strictly decoded, with no launcher default and an empty fill report. A breaking pre-GA change; the reshaped form of the kind is gone, and its reference page is thedaemonsetentry of “Kinds: core workloads”). - go-kure/launcher#1629 (
jobandcronjobbecame raw kinds in the same way: theJobSpecandCronJobSpecfields, strictly decoded, with no launcher default and an empty fill report. A breaking pre-GA change; the reshaped form of both kinds is gone, and their reference pages are thejobandcronjobentries of “Kinds: core workloads”). - go-kure/launcher#1629 (
statefulsetbecame a raw kind in the same way: theStatefulSetSpecfields, strictly decoded, with no launcher default, and claim templates as raw PersistentVolumeClaim objects. A breaking pre-GA change; the reshaped form of the kind is gone, and its reference page is thestatefulsetentry of “Kinds: core workloads”. What the kind still does itself: theapplabel on the pod template, thepvccapability’s storage class on a claim template that authors none, and the policy’s bounds). - go-kure/launcher#343 (the kind-named
deploymentcomponent). - go-kure/launcher#341 (
DeploymentSpecparsed byparseDeploymentSpecinto realappsv1types, from one fragment all three handlers compose). - go-kure/launcher#1216 (the pod template’s
podMetadatais the same on all three [deployment,webserviceandworker, then; since go-kure/launcher#1629 on the two roles]).
- go-kure/launcher#1629 (the kind-named
Main container ports
- History:
- go-kure/launcher#280 (
deploymentpublishedports, the main container’scorev1.ContainerPortlist; since go-kure/launcher#1629 its ports aretemplate.spec.containers[0].ports). - go-kure/launcher#1132 (
deployment,statefulsetanddaemonsetimplementoam.EndpointProviderfrom the main container’sports[since go-kure/launcher#1629, those oftemplate.spec.containers[0]on all three]). - go-kure/launcher#225 (
job,cronjobandworkerreport no endpoint). - go-kure/launcher#334 (
daemonset,statefulset,jobandcronjobpublish oneportsproperty, with the same entry rules [daemonset,statefulset,jobandcronjobno longer: their ports aretemplate.spec.containers[0].ports(jobTemplate.spec.template.spec.containers[0].portson acronjob), go-kure/launcher#1629]). - go-kure/launcher#343 (
deploymentdroppedportand the Service it drove). - go-kure/launcher#690 (
daemonsetandstatefulsetdropportand the Service it drove (breaking), and replace it withports). - go-kure/launcher#660 (a sidecar port of the same name as a main container port refused).
- go-kure/launcher#280 (
Raw scheduling properties
- History:
- go-kure/launcher#412 (
deploymentpublishedaffinity,tolerationsandtopologySpreadConstraintsas their plaincorev1shapes, parsed byscheduling.go; since go-kure/launcher#1629 they aretemplate.spec.*and no longer read by that parser). - go-kure/launcher#790 (the other kind-named workloads (
statefulset,daemonset,job,cronjob) publish the same shapes through the same parsers and schemas, andstatefulsetdropped the four-keyaffinityshorthand (breaking) [daemonset,statefulset,jobandcronjobstopped publishing them at the top level in go-kure/launcher#1629: they aretemplate.spec.*, andjobTemplate.spec.template.spec.*on acronjob]). - go-kure/launcher#1473 (
webserviceandworkerpublishtolerationsandtopologySpreadConstraintsas the same shapes, from the same schemas and parsers).
- go-kure/launcher#412 (
What tolerations changed for daemonset
[The section of this name on the reference page is gone: daemonset became a raw kind in
go-kure/launcher#1629, and its tolerations are template.spec.tolerations, decoded
strictly with the rest of the pod spec. The history below stays as it was.]
- History:
- go-kure/launcher#790 (
statefulset,jobandcronjobgainedtolerations). - go-kure/launcher#690 (
daemonsetandstatefulsetemit no Service and droppedport, which they read as no port at0). - go-kure/launcher#1268 (
scaleris available onstatefulset, with the HPA’sscaleTargetRefnaming aStatefulSet). - go-kure/launcher#1178 (
deploymentreports its pod template labels, its own and the onespodMetadata.labelsadds [the reshaped handler, now therole-deploymentmember; the rawdeploymentof go-kure/launcher#1629 has no such method]). - go-kure/launcher#1216 (the
role-deploymentmember of awebserviceorworkerreports the same, authoredpodMetadata.labelsincluded). - go-kure/launcher#794 (
statefulset,daemonset,jobandcronjobhave noPodTemplateLabelsmethod, deliberately (item 3 of that issue)). - go-kure/launcher#394 (a property read through one of the shared field helpers in
common.go, which test presence withauthoredValue, reads a null as omission on every kind, and six parsers that read their own property with a bare lookup (envFrom,probes,lifecycle,securityContext,volumes,accessModes) were converted to the same primitive). - go-kure/launcher#570 (the top-level keys still answered with a bare lookup and then
type-checked read a null as omission:
timeZone,successfulJobsHistoryLimitandfailedJobsHistoryLimitofcronjob,completionModeofjobandcronjob,clusterScopedofpassthrough,inlineandurlofcrdandmanifests, andscopeOverridesofmanifests). - go-kure/launcher#341 (
webserviceandworkerpublishstrategy: an authoredstrategyon awebservicewas accepted and silently discarded before, and under a non-RWX claim those two substitutedRecreatesilently). - go-kure/launcher#408 (
kurel buildcallsValidateAuthoredProperties, so an unrecognised key in a component’spropertiesmap is a build error). - go-kure/launcher#393 (
replicasis validated the same way on every kind that reads it, where only thedeploymenthandler did before). - go-kure/launcher#525 (an integer read from a lowering rule or a Go caller is checked against its own target and refused with an error rather than truncated or wrapped).
- go-kure/launcher#1179 (under a
scalerthe Deployment or StatefulSet is built withoutspec.replicas). - go-kure/launcher#1196 (under a
scalerthetopology-spreadtrait counts the scaler’sminReplicason a Deployment).
- go-kure/launcher#790 (
StatefulSet-level and claim-template properties
[The section of this name on the reference page now describes the raw statefulset kind of
go-kure/launcher#1629: the properties are the StatefulSetSpec fields and the claim templates
raw PersistentVolumeClaim objects, so the API server’s own rules apply to them. The history
below is of the reshaped form, which is gone.]
- History:
- go-kure/launcher#361 (kure’s
CreateStatefulSetno longer writespodManagementPolicy: OrderedReadyinto the object, the release-1 builder contract making that constructor identity-only). - go-kure/launcher#385 (
devicePathjoined the claim entry’s key set, andvolumeMode: Blockis accepted and rendered as a main-containervolumeDevicesentry). - go-kure/launcher#383 (
maxUnavailabletakes a positive integer or a 1-100% string, the schema leaf being theTypes: [integer, string]union). - go-kure/launcher#761 (an authored
storageClass: ""requests no class, and an unauthored entry takes thestorageClassNameof the ClusterProfilepvccapability (a pre-GA output change)). - go-kure/launcher#384 (the
volumes[].pvc.sizesurface on every kind applies the positivity rule). - go-kure/launcher#570 (a container’s resource quantities under any name and the top-level keys once read with a bare lookup read a null as omission).
- go-kure/launcher#790 (an authored StatefulSet-level
spec.templateis rejected with an error, where the parser dropped it silently before; the pod template is projected from the component’s own container and pod-level properties, as ondeployment[then; now as onwebserviceandworker]). - go-kure/launcher#394 extended the same treatment to the shared field helpers and to the parsers it converted, so it reaches well beyond these fields — but not the whole package. [the same treatment: reading an explicit null as omission; these fields: the optional StatefulSet-level and claim-level fields above]
- go-kure/launcher#361 (kure’s