Skip to content

Commit b702d00

Browse files
authored
add evictionStartTime for appliedmanifestwork (#221)
Signed-off-by: Wei Liu <[email protected]>
1 parent 6cd5b2b commit b702d00

5 files changed

+22
-2
lines changed

work/v1/0000_01_work.open-cluster-management.io_appliedmanifestworks.crd.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,10 @@ spec:
7272
version:
7373
description: Version is the version of the Kubernetes resource.
7474
type: string
75+
evictionStartTime:
76+
description: 'EvictionStartTime represents the current appliedmanifestwork will be evicted after a grace period. An appliedmanifestwork will be evicted from the managed cluster in the following two scenarios: - the manifestwork of the current appliedmanifestwork is missing on the hub, or - the appliedmanifestwork hub hash does not match the current hub hash of the work agent.'
77+
type: string
78+
format: date-time
7579
served: true
7680
storage: true
7781
subresources:

work/v1/0001_01_work.open-cluster-management.io_appliedmanifestworks.crd.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@ spec:
7373
version:
7474
description: Version is the version of the Kubernetes resource.
7575
type: string
76+
evictionStartTime:
77+
description: 'EvictionStartTime represents the current appliedmanifestwork will be evicted after a grace period. An appliedmanifestwork will be evicted from the managed cluster in the following two scenarios: - the manifestwork of the current appliedmanifestwork is missing on the hub, or - the appliedmanifestwork hub hash does not match the current hub hash of the work agent.'
78+
type: string
79+
format: date-time
7680
version: v1
7781
versions:
7882
- name: v1

work/v1/types.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -545,6 +545,13 @@ type AppliedManifestWorkStatus struct {
545545
// However, the resource will not be undeleted, so it can be removed from this list and eventual consistency is preserved.
546546
// +optional
547547
AppliedResources []AppliedManifestResourceMeta `json:"appliedResources,omitempty"`
548+
549+
// EvictionStartTime represents the current appliedmanifestwork will be evicted after a grace period.
550+
// An appliedmanifestwork will be evicted from the managed cluster in the following two scenarios:
551+
// - the manifestwork of the current appliedmanifestwork is missing on the hub, or
552+
// - the appliedmanifestwork hub hash does not match the current hub hash of the work agent.
553+
// +optional
554+
EvictionStartTime *metav1.Time `json:"evictionStartTime,omitempty"`
548555
}
549556

550557
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

work/v1/zz_generated.deepcopy.go

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

work/v1/zz_generated.swagger_doc_generated.go

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)