Skip to content

Commit 86c6b43

Browse files
committed
more addon status condition types
Signed-off-by: yue9944882 <[email protected]>
1 parent 3297cac commit 86c6b43

3 files changed

+29
-3
lines changed

addon/v1alpha1/0000_01_addon.open-cluster-management.io_managedclusteraddons.crd.yaml

+7
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,13 @@ spec:
137137
description: RegistrationConfig defines the configuration of the addon agent to register to hub. The Klusterlet agent will create a csr for the addon agent with the registrationConfig.
138138
type: object
139139
properties:
140+
lastRenewedTimestamp:
141+
description: lastRenewedTimestamp records the last timestamp when we approved/renewed certificates for the addon agents.
142+
type: string
143+
format: date-time
144+
lastRenewedValidity:
145+
description: lastRenewedValidity records the last renewing certificate validity.
146+
type: string
140147
signerName:
141148
description: signerName is the name of signer that addon agent will use to create csr.
142149
type: string

addon/v1alpha1/types_managedclusteraddon.go

+17
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,13 @@ type RegistrationConfig struct {
5858
//
5959
// +optional
6060
Subject Subject `json:"subject,omitempty"`
61+
62+
// lastRenewedTimestamp records the last timestamp when we approved/renewed certificates
63+
// for the addon agents.
64+
LastRenewedTimestamp *metav1.Time `json:"lastRenewedTimestamp,omitempty"`
65+
66+
// lastRenewedValidity records the last renewing certificate validity.
67+
LastRenewedValidity *metav1.Duration `json:"lastRenewedValidity,omitempty"`
6168
}
6269

6370
// Subject is the user subject of the addon agent to be registered to the hub.
@@ -126,6 +133,16 @@ const (
126133
// ManagedClusterAddOnConditionDegraded represents that the addon agent is providing degraded service on
127134
// the managed cluster.
128135
ManagedClusterAddOnConditionDegraded string = "Degraded"
136+
137+
// ManagedClusterAddOConditionTypeRegistrationApplied represents that whether the addon agent finished
138+
// its registration into the hub control plane, including finishing CSR approval, signing, permission
139+
// configuration, etc.
140+
ManagedClusterAddOConditionTypeRegistrationApplied = "RegistrationApplied"
141+
142+
// ManagedClusterAddOConditionTypeManifestApplied represents that whether the corresponding resources are
143+
// applied to the hub cluster as a ManifestWork resource. Note that it doesn't imply the applied ManifestWork
144+
// is successfully delivered/executed by the work agent.
145+
ManagedClusterAddOConditionTypeManifestApplied = "ManifestApplied"
129146
)
130147

131148
// ObjectReference contains enough information to let you inspect or modify the referred object.

addon/v1alpha1/zz_generated.swagger_doc_generated.go

+5-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)