- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 25 for TemplateGeneration (0.27 sec)
-
pkg/controller/daemon/util/daemonset_util_test.go
templateGeneration *int64 pod *v1.Pod hash string isUpdated bool }{ { "templateGeneration and hash both match", templateGeneration, newPod("pod1", "node1", labels), hash, true, }, { "templateGeneration matches, hash doesn't", templateGeneration, newPod("pod1", "node1", labels), hash + "123", true, }, {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 14.5K bytes - Viewed (0) -
pkg/registry/apps/daemonset/strategy.go
// update is not allowed to set status newDaemonSet.Status = oldDaemonSet.Status // update is not allowed to set TemplateGeneration newDaemonSet.Spec.TemplateGeneration = oldDaemonSet.Spec.TemplateGeneration // Any changes to the spec increment the generation number, any changes to the // status should reflect the generation number of the corresponding object. We push
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Nov 08 01:52:02 UTC 2022 - 8.7K bytes - Viewed (0) -
pkg/registry/apps/daemonset/strategy_test.go
MatchExpressions: []metav1.LabelSelectorRequirement{}, }, UpdateStrategy: apps.DaemonSetUpdateStrategy{ Type: apps.OnDeleteDaemonSetStrategyType, }, TemplateGeneration: templateGeneration, Template: api.PodTemplateSpec{ ObjectMeta: metav1.ObjectMeta{ Labels: selectorLabels, }, Spec: api.PodSpec{ RestartPolicy: api.RestartPolicyAlways,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Nov 08 01:52:02 UTC 2022 - 4.7K bytes - Viewed (0) -
pkg/apis/apps/validation/validation.go
if newSpec.TemplateGeneration == oldSpec.TemplateGeneration && templateUpdated { allErrs = append(allErrs, field.Invalid(fldPath.Child("templateGeneration"), newSpec.TemplateGeneration, "must be incremented upon template update")) } else if newSpec.TemplateGeneration > oldSpec.TemplateGeneration && !templateUpdated {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Apr 06 22:11:20 UTC 2024 - 41.4K bytes - Viewed (0) -
pkg/apis/apps/validation/validation_test.go
}, }, }, }, }, "unchanged templateGeneration upon semantically equal template update": { old: apps.DaemonSet{ ObjectMeta: metav1.ObjectMeta{Name: "abc", Namespace: metav1.NamespaceDefault}, Spec: apps.DaemonSetSpec{ Selector: &metav1.LabelSelector{MatchLabels: validSelector}, TemplateGeneration: 4, Template: validPodTemplateAbc.Template,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 111.9K bytes - Viewed (0) -
pkg/controller/daemon/util/daemonset_util.go
} // IsPodUpdated checks if pod contains label value that either matches templateGeneration or hash func IsPodUpdated(pod *v1.Pod, hash string, dsTemplateGeneration *int64) bool { // Compare with hash to see if the pod is updated, need to maintain backward compatibility of templateGeneration templateMatches := dsTemplateGeneration != nil &&
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jul 18 11:54:59 UTC 2022 - 9.3K bytes - Viewed (0) -
pkg/apis/apps/v1/conversion.go
return err } out.Annotations = deepCopyStringMap(out.Annotations) // deep copy annotations because we change them below out.Annotations[appsv1.DeprecatedTemplateGeneration] = strconv.FormatInt(in.Spec.TemplateGeneration, 10) return nil } // Convert_apps_DaemonSetSpec_To_v1_DaemonSetSpec is defined here, because public // conversion is not auto-generated due to existing warnings.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Sep 23 23:36:24 UTC 2022 - 6.2K bytes - Viewed (0) -
pkg/apis/apps/v1beta2/conversion.go
return err } out.Annotations = deepCopyStringMap(out.Annotations) out.Annotations[appsv1beta2.DeprecatedTemplateGeneration] = strconv.FormatInt(in.Spec.TemplateGeneration, 10) return nil } // Convert_apps_DaemonSetSpec_To_v1beta2_DaemonSetSpec is defined here, because public // conversion is not auto-generated due to existing warnings.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Sep 23 23:36:24 UTC 2022 - 8.3K bytes - Viewed (0) -
staging/src/k8s.io/api/testdata/HEAD/extensions.v1beta1.DaemonSet.yaml
vsphereVolume: fsType: fsTypeValue storagePolicyID: storagePolicyIDValue storagePolicyName: storagePolicyNameValue volumePath: volumePathValue templateGeneration: 5 updateStrategy: rollingUpdate: maxSurge: maxSurgeValue maxUnavailable: maxUnavailableValue type: typeValue status: collisionCount: 9 conditions:
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 22:40:29 UTC 2024 - 35.1K bytes - Viewed (0) -
staging/src/k8s.io/api/testdata/v1.29.0/extensions.v1beta1.DaemonSet.json
"type": "typeValue", "rollingUpdate": { "maxUnavailable": "maxUnavailableValue", "maxSurge": "maxSurgeValue" } }, "minReadySeconds": 4, "templateGeneration": 5, "revisionHistoryLimit": 6 }, "status": { "currentNumberScheduled": 1, "numberMisscheduled": 2, "desiredNumberScheduled": 3, "numberReady": 4,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Dec 15 04:12:07 UTC 2023 - 53.7K bytes - Viewed (0)