Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetResourceContext ¶
func GetResourceContext(ctx context.Context, c client.Client, instance *appsv1alpha1.CollaSet) (*appsv1alpha1.ResourceContext, error)
Types ¶
type Controller ¶
type Controller interface { Updater Reader source.SyncingSource // RegisterGenericEventChannel registers a channel to listen for changes associated with the CollaSet. RegisterGenericEventChannel(chan<- event.GenericEvent) // InjectClient inject manager client into Controller InjectClient(client.Client) error }
type Reader ¶
type Reader interface { // LatestPodDecorations are a set of the most recent PodDecorations in the namespace. LatestPodDecorations(namespace string) []*appsv1alpha1.PodDecoration // EffectivePodRevisions is used to select the suitable version from the UpdatedRevision // and CurrentRevision among a set of the latest Decorations. EffectivePodRevisions(*corev1.Pod) (updatedRevisions, stableRevisions map[string]string) }
type Updater ¶
type Updater interface { // Synced indicates that all PodDecoration managers were updated. Synced() // UpdateSelectedPods is used to update the effective Pods of PodDecoration // to make real-time decisions about the PodDecoration version for each Pod. UpdateSelectedPods(context.Context, *appsv1alpha1.PodDecoration, []*corev1.Pod) error // DeletePodDecoration clean up invalid PodDecoration manager. DeletePodDecoration(*appsv1alpha1.PodDecoration) }
Click to show internal directories.
Click to hide internal directories.