You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`metadata`_[ObjectMeta](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.24/#objectmeta-v1-meta)_| Refer to Kubernetes API documentation for fields of `metadata`. |
ConditionalTTLSpec represents the configuration for a ConditionalTTL object.
41
+
A ConditionalTTL's specification is the union of conditions under which
42
+
deletion begins and actions to be taken during it.
43
+
44
+
_Appears in:_
45
+
-[ConditionalTTL](#conditionalttl)
46
+
47
+
| Field | Description |
48
+
| --- | --- |
49
+
|`ttl`_[Duration](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.24/#duration-v1-meta)_| Duration the controller should wait relative to the ConditionalTTL's CreationTime before starting deletion. |
50
+
|`retry`_[RetryConfig](#retryconfig)_| Specifies how the controller should retry the evaluation of conditions. This field is required when the list of conditions is not empty. |
51
+
|`helm`_[HelmConfig](#helmconfig)_| Optional: Allows a ConditionalTTL to refer to and possibly delete a Helm release, usually the release responsible for creating the targets of the ConditionalTTL. |
52
+
|`targets`_[Target](#target) array_| List of targets the ConditionalTTL is interested in deleting or that are needed for evaluating the conditions under which deletion should take place. |
53
+
|`conditions`_string array_| Optional list of [Common Expression Language](https://github.com/google/cel-spec) conditions which should all evaluate to true before deletion takes place. |
54
+
|`cloudEventSink`_string_| Optional http(s) address the controller should send a [Cloud Event](https://github.com/cloudevents/spec/blob/main/cloudevents/spec.md) to after deletion takes place. |
55
+
56
+
57
+
58
+
59
+
#### HelmConfig
60
+
61
+
62
+
63
+
HelmConfig specifies a Helm release by its name and whether
64
+
the release should be deleted.
65
+
66
+
_Appears in:_
67
+
-[ConditionalTTLSpec](#conditionalttlspec)
68
+
69
+
| Field | Description |
70
+
| --- | --- |
71
+
|`release`_string_| The Helm Release name. |
72
+
|`delete`_boolean_| Delete specifies whether the Helm release should be deleted. |
73
+
74
+
75
+
#### RetryConfig
76
+
77
+
78
+
79
+
RetryConfig defines how the controller should retry evaluating the
80
+
set of conditions.
81
+
82
+
_Appears in:_
83
+
-[ConditionalTTLSpec](#conditionalttlspec)
84
+
85
+
| Field | Description |
86
+
| --- | --- |
87
+
|`period`_[Duration](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.24/#duration-v1-meta)_| Period defines how long the controller should wait before retrying the condition. |
88
+
89
+
90
+
#### Target
91
+
92
+
93
+
94
+
Target declares how to find one or more resources related to the ConditionalTTL,
95
+
whether they should be deleted and whether they are necessary for evaluating the
96
+
set of conditions.
97
+
98
+
_Appears in:_
99
+
-[ConditionalTTLSpec](#conditionalttlspec)
100
+
101
+
| Field | Description |
102
+
| --- | --- |
103
+
|`name`_string_| Name identifies this target group and is used to refer to its state when evaluating the set of conditions. The name `time` is invalid and is included by default during evaluation. |
104
+
|`delete`_boolean_| Delete indicates whether this target group should be deleted when the ConditionalTTL is triggered. |
105
+
|`includeWhenEvaluating`_boolean_| IncludeWhenEvaluating indicates whether this target group should be included in the CEL evaluation context. |
106
+
|`reference`_[TargetReference](#targetreference)_| Reference declares how to find either a single object, using its name, or a collection, using a LabelSelector. |
107
+
108
+
109
+
#### TargetReference
110
+
111
+
112
+
113
+
TargetReference declares how a target group should be looked up.
114
+
A target group can reference either a single Kubernetes resource - in which case
115
+
finding it is required in other to evaluate the set of conditions - or
116
+
a collection of resources of the same GroupVersionKind. In contrast
117
+
with single targets, an empty collection is a valid value when evaluating
118
+
the set of conditions.
119
+
120
+
_Appears in:_
121
+
-[Target](#target)
122
+
123
+
| Field | Description |
124
+
| --- | --- |
125
+
|`kind`_string_| Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds|
126
+
|`apiVersion`_string_| APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources|
127
+
|`name`_string_| Name matches a single object. If name is specified, LabelSelector is ignored. |
128
+
|`labelSelector`_[LabelSelector](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.24/#labelselector-v1-meta)_| LabelSelector allows more than one object to be included in the target group. If Name is not empty, LabelSelector is ignored. |
0 commit comments