controllers

package
v0.0.0-...-a566ef8 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2023 License: Apache-2.0 Imports: 15 Imported by: 1

Documentation

Index

Constants

View Source
const (
	FREE5GC            string = "free5gc"
	WORKLOADAPIVERSION string = "infra.nephio.org/v1alpha1"
	WORKLOADKIND       string = "WorkloadCluster"
)

Variables

This section is empty.

Functions

func AllUPFsDeployed

func AllUPFsDeployed(neighborMap map[string][]reqv1alpha1.NFInstance, nfInst *reqv1alpha1.NFInstance, nfDeployed *deployv1alpha1.NFDeployed, deployedInstMap map[string]int) bool

func BuildAttachmentMap

func BuildAttachmentMap(nfTopo *nfreqv1alpha1.NFTopology) map[string][]nfreqv1alpha1.NFInstance

* BuildAttachmentMap builds a map from attachment name to a list of NFInstances (template)

func BuildDeployedInstanceMap

func BuildDeployedInstanceMap(nfDeployed *nfdeployv1alpha1.NFDeployed) map[string]int

* BuildDeployedInstanceMap builds a map to map instance name (from NFTopology) to a NF instance * on NFDeployed

func BuildNFDeployed

func BuildNFDeployed(nfDeployedName string, topoNamespace string, nfTopo *nfreqv1alpha1.NFTopology, nfInstance *nfreqv1alpha1.NFInstance, clusterName string, vendor string, version string, nfdeployed *nfdeployv1alpha1.NFDeployed) error

func BuildNeighbormap

func BuildNeighbormap(attachmentMap map[string][]nfreqv1alpha1.NFInstance) map[string][]nfreqv1alpha1.NFInstance

* BuildNeighbormap builds a map of NFInstance(s) that are connected to each other

func BuildPVS

* BuildPVS: builds a PVS object from NFTopology's NFInstance * NFClass needed for package reference

func ConstructNFDeployedName

func ConstructNFDeployedName(nfInstanceName string, regionName string, clusterName string) string

func GetNFInstanceNameFromNFDeployedName

func GetNFInstanceNameFromNFDeployedName(nfDeployedName string) string

Types

type NFTopologyReconciler

type NFTopologyReconciler struct {
	client.Client
	Scheme *runtime.Scheme
	// contains filtered or unexported fields
}

NFTopologyReconciler reconciles a NFTopology object

func (*NFTopologyReconciler) Reconcile

func (r *NFTopologyReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

func (*NFTopologyReconciler) SetupWithManager

func (r *NFTopologyReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type PackageRevisionReconciler

type PackageRevisionReconciler struct {
	client.Client
	Scheme *runtime.Scheme
}

func (*PackageRevisionReconciler) Reconcile

+kubebuilder:rbac:groups=porch.kpt.dev,resources=packagerevisions,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=porch.kpt.dev,resources=packagerevisions/status,verbs=get;update;patch Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

func (*PackageRevisionReconciler) SetupWithManager

func (r *PackageRevisionReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

Jump to

Keyboard shortcuts

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