🚀 Features:
- Introduce ability to pause/unpause a cluster: SveltosCluster has a new field called
Schedule
that allows
to specify when to unpause a cluster. A Paused SveltosCluster will receive no update from Sveltos.
This feature so enable having a maintanence window on each managed cluster. Only during this maintanance window, update will be delivered to cluster. For instance, following will have the SveltosCluster set to unpaused only from Friday, 8PM
to Monday 7AM every week:
sveltosCluster.Spec.Schedule = &libsveltosv1beta1.Schedule{
From: "0 20 * * 5", // every friday 8PM
To: "0 7 * * 1", // every monday 7AM
}
- When creating a Profile/ClusterProfile with syncMode set to
ContinuosWithDriftDetection
, adds ability to specify a set
of fields, for certain resources, to be ignored when evaluation configuration drift. More here. For instance following will have Sveltos ignore changes in Replicas
field for any deployment
clusterProfile.Spec.DriftExclusions = []configv1beta1.DriftExclusion{
{
Target: &libsveltosv1beta1.PatchSelector{
Kind: "Deployment",
Group: "apps",
Version: "v1",
},
Paths: []string{"/spec/replicas"},
},
}
- ability to patch sub resources: referenced ConfigMaps/Secrets/Flux Sources with
projectsveltos.io/subresources
set indicates Sveltos to patch sub resources.
🌱 Others
- Bump clusterAPI to v1.8.1
- Bump golang to v1.22.5