Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Add ¶
func Add(mgr manager.Manager, hubconfig *rest.Config, syncid *types.NamespacedName, syncinterval int) error
Add does nothing for namespace subscriber, it generates cache for each of the item
func GetdefaultNsSubscriber ¶
func GetdefaultNsSubscriber() appv1alpha1.Subscriber
GetdefaultNsSubscriber - returns the default namespace subscriber
Types ¶
type DeployableReconciler ¶
type DeployableReconciler 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 }
DeployableReconciler reconciles a Deployable object of Nmespace channel
func NewNsDeployableReconciler ¶
func NewNsDeployableReconciler(hub client.Client, nsSubscribe *NsSubscriber, ikey types.NamespacedName) *DeployableReconciler
type NsSubscriber ¶
type NsSubscriber struct {
// contains filtered or unexported fields
}
NsSubscriber information to run namespace subscription
func CreateNsSubscriber ¶
func CreateNsSubscriber( config *rest.Config, scheme *runtime.Scheme, mgr manager.Manager, kubesync nssubscriberSyncSource) (*NsSubscriber, error)
CreateNsSubscriber - create namespace subscriber with config to hub cluster, scheme of hub cluster and a syncrhonizer to local cluster
func (*NsSubscriber) SubscribeItem ¶
func (ns *NsSubscriber) SubscribeItem(subitem *appv1alpha1.SubscriberItem) error
SubscribeItem subscribes a subscriber item with namespace channel
func (*NsSubscriber) SubscribeNamespaceItem ¶
func (ns *NsSubscriber) SubscribeNamespaceItem(subitem *appv1alpha1.SubscriberItem, isClusterScoped bool) error
SubscribeNamespaceItem adds namespace subscribe item to subscriber
func (*NsSubscriber) UnsubscribeItem ¶
func (ns *NsSubscriber) UnsubscribeItem(key types.NamespacedName) error
UnsubscribeItem unsubscribes a namespace subscriber item
type NsSubscriberItem ¶
type NsSubscriberItem struct { appv1alpha1.SubscriberItem // contains filtered or unexported fields }
NsSubscriberItem defines the unit of namespace subscription
type SecretReconciler ¶
type SecretReconciler struct { *NsSubscriber Clt client.Client Schema *runtime.Scheme Itemkey types.NamespacedName }
SecretReconciler defined a info collection for query secret resource