Documentation ¶
Index ¶
- Variables
- func Add(mgr manager.Manager, hubconfig *rest.Config, syncid *types.NamespacedName, ...) error
- type LeaseReconciler
- type ReconcileSubscription
- func (r *ReconcileSubscription) DeleteReferredObjects(rq types.NamespacedName, gvk schema.GroupVersionKind) error
- func (r *ReconcileSubscription) ListAndDeployReferredObject(instance *appv1.Subscription, gvk schema.GroupVersionKind, ...) error
- func (r *ReconcileSubscription) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ConfigMapKindStr = "ConfigMap"
View Source
var SecretKindStr = "Secret"
View Source
var SubscriptionGVK = schema.GroupVersionKind{ Group: appv1.SchemeGroupVersion.Group, Kind: "Subscription", Version: appv1.SchemeGroupVersion.Version}
Functions ¶
func Add ¶
func Add(mgr manager.Manager, hubconfig *rest.Config, syncid *types.NamespacedName, standalone bool) error
Add creates a new Subscription Controller and adds it to the Manager. The Manager will set fields on the Controller and Start it when the Manager is Started. If standalone = true, it will only reconcile standalone subscriptions without hosting subscription from ACM hub. If standalone = false, it will only reconcile subscriptions that are propagated from ACM hub.
Types ¶
type LeaseReconciler ¶
type LeaseReconciler struct { HubKubeClient kubernetes.Interface HubConfigFilePathName string HubConfigCheckSum [32]byte KubeClient kubernetes.Interface ClusterName string LeaseName string LeaseDurationSeconds int32 // contains filtered or unexported fields }
LeaseReconciler reconciles a Secret object
func (*LeaseReconciler) CheckHubKubeConfig ¶ added in v0.9.0
func (r *LeaseReconciler) CheckHubKubeConfig(ctx context.Context) error
func (*LeaseReconciler) Reconcile ¶
func (r *LeaseReconciler) Reconcile(ctx context.Context)
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) DeleteReferredObjects ¶
func (r *ReconcileSubscription) DeleteReferredObjects(rq types.NamespacedName, gvk schema.GroupVersionKind) error
func (*ReconcileSubscription) ListAndDeployReferredObject ¶
func (r *ReconcileSubscription) ListAndDeployReferredObject(instance *appv1.Subscription, gvk schema.GroupVersionKind, refObj referredObject) error
func (*ReconcileSubscription) Reconcile ¶
func (r *ReconcileSubscription) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error)
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
Click to show internal directories.
Click to hide internal directories.