Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ReleaseManager ¶ added in v0.6.0
type ReleaseManager interface {
// contains filtered or unexported methods
}
type RolloutContext ¶ added in v0.4.0
type RolloutReconciler ¶
type RolloutReconciler struct {
client.Client
Scheme *runtime.Scheme
Recorder record.EventRecorder
// contains filtered or unexported fields
}
RolloutReconciler reconciles a Rollout object
func (*RolloutReconciler) Reconcile ¶
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the Rollout object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.8.3/pkg/reconcile
func (*RolloutReconciler) SetupWithManager ¶
func (r *RolloutReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type UnifiedStatus ¶ added in v0.6.2
type UnifiedStatus struct {
*v1beta1.CommonStatus
// UpdatedRevision is the pointer of BlueGreenStatus.UpdatedRevision or CanaryStatus.CanaryRevision
UpdatedRevision *string `json:"updatedRevision"`
// UpdatedReplicas is the pointer of BlueGreenStatus.UpdatedReplicas or CanaryStatus.CanaryReplicas
UpdatedReplicas *int32 `json:"updatedReplicas"`
// UpdatedReadyReplicas is the pointer of BlueGreenStatus.UpdatedReadyReplicas or CanaryStatus.CanaryReadyReplicas
UpdatedReadyReplicas *int32 `json:"updatedReadyReplicas"`
}
UnifiedStatus is a data structure used to unify BlueGreenStatus and CanaryStatus, allowing the controller to operate the current release status in a unified manner without considering the release form.
func GetUnifiedStatus ¶ added in v0.6.2
func GetUnifiedStatus(r *v1beta1.RolloutStatus) UnifiedStatus
func (UnifiedStatus) IsNil ¶ added in v0.6.2
func (u UnifiedStatus) IsNil() bool