in controllers/controller.go [444:474]
func patchEtcdCluster(ctx context.Context, patchHelper *patch.Helper, ec *etcdv1.EtcdadmCluster) error {
// SetSummary sets the Ready condition on an object, in this case the EtcdadmCluster as an aggregate of all conditions defined on EtcdadmCluster
conditions.SetSummary(ec,
conditions.WithConditions(
etcdv1.EtcdMachinesSpecUpToDateCondition,
etcdv1.EtcdCertificatesAvailableCondition,
etcdv1.EtcdMachinesReadyCondition,
etcdv1.EtcdClusterResizeCompleted,
etcdv1.InitializedCondition,
etcdv1.EtcdClusterHasNoOutdatedMembersCondition,
etcdv1.EtcdEndpointsAvailable,
),
)
// patch the EtcdadmCluster conditions based on current values at the end of every reconcile
return patchHelper.Patch(
ctx,
ec,
patch.WithOwnedConditions{Conditions: []clusterv1.ConditionType{
clusterv1.ReadyCondition,
etcdv1.EtcdMachinesSpecUpToDateCondition,
etcdv1.EtcdCertificatesAvailableCondition,
etcdv1.EtcdMachinesReadyCondition,
etcdv1.EtcdClusterResizeCompleted,
etcdv1.InitializedCondition,
etcdv1.EtcdClusterHasNoOutdatedMembersCondition,
etcdv1.EtcdEndpointsAvailable,
}},
patch.WithStatusObservedGeneration{},
)
}