subscription

package
v0.13.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 21, 2024 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

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

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL