Documentation ¶
Index ¶
- func Add(mgr manager.Manager) error
- type ReconcileSubscription
- func (r *ReconcileSubscription) GetChannelGeneration(s *appv1alpha1.Subscription) (string, error)
- func (r *ReconcileSubscription) GetChannelNamespaceType(s *appv1alpha1.Subscription) (string, string, string)
- func (r *ReconcileSubscription) Reconcile(request reconcile.Request) (reconcile.Result, error)
- func (r *ReconcileSubscription) UpdateDeployablesAnnotation(sub *appv1alpha1.Subscription) bool
- func (r *ReconcileSubscription) UpdateGitDeployablesAnnotation(sub *appv1.Subscription) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ReconcileSubscription ¶
type ReconcileSubscription struct { // This client, initialized using mgr.Client() above, is a split client // that reads objects from the cache and writes to the apiserver client.Client // contains filtered or unexported fields }
ReconcileSubscription reconciles a Subscription object
func (*ReconcileSubscription) GetChannelGeneration ¶
func (r *ReconcileSubscription) GetChannelGeneration(s *appv1alpha1.Subscription) (string, error)
GetChannelGeneration get the channel generation
func (*ReconcileSubscription) GetChannelNamespaceType ¶
func (r *ReconcileSubscription) GetChannelNamespaceType(s *appv1alpha1.Subscription) (string, string, string)
GetChannelNamespaceType get the channel namespace and channel type by the given subscription
func (*ReconcileSubscription) Reconcile ¶
Reconcile reads that state of the cluster for a Subscription object and makes changes based on the state read and what is in the Subscription.Spec
func (*ReconcileSubscription) UpdateDeployablesAnnotation ¶
func (r *ReconcileSubscription) UpdateDeployablesAnnotation(sub *appv1alpha1.Subscription) bool
UpdateDeployablesAnnotation set all deployables subscribed by the subscription to the apps.open-cluster-management.io/deployables annotation
func (*ReconcileSubscription) UpdateGitDeployablesAnnotation ¶
func (r *ReconcileSubscription) UpdateGitDeployablesAnnotation(sub *appv1.Subscription) bool
UpdateGitDeployablesAnnotation clones the git repo and regenerate deployables and update annotation if needed
Click to show internal directories.
Click to hide internal directories.