Documentation ¶
Index ¶
- Constants
- func AllUPFsDeployed(neighborMap map[string][]reqv1alpha1.NFInstance, ...) bool
- func BuildAttachmentMap(nfTopo *nfreqv1alpha1.NFTopology) map[string][]nfreqv1alpha1.NFInstance
- func BuildDeployedInstanceMap(nfDeployed *nfdeployv1alpha1.NFDeployed) map[string]int
- func BuildNFDeployed(nfDeployedName string, topoNamespace string, nfTopo *nfreqv1alpha1.NFTopology, ...) error
- func BuildNeighbormap(attachmentMap map[string][]nfreqv1alpha1.NFInstance) map[string][]nfreqv1alpha1.NFInstance
- func BuildPVS(nfInst *reqv1alpha1.NFInstance, nfClassObj *reqv1alpha1.NFClass) *pvsv1alpha2.PackageVariantSet
- func ConstructNFDeployedName(nfInstanceName string, regionName string, clusterName string) string
- func GetNFInstanceNameFromNFDeployedName(nfDeployedName string) string
- type NFTopologyReconciler
- type PackageRevisionReconciler
Constants ¶
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 ¶
func BuildPVS(nfInst *reqv1alpha1.NFInstance, nfClassObj *reqv1alpha1.NFClass) *pvsv1alpha2.PackageVariantSet
* BuildPVS: builds a PVS object from NFTopology's NFInstance * NFClass needed for package reference
func ConstructNFDeployedName ¶
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 ¶
func (*PackageRevisionReconciler) Reconcile ¶
func (r *PackageRevisionReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
+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.