hydration

package
v0.0.0-...-296b82f Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hydration

type Hydration struct {
	PS  ps.PackageServiceInterface
	Log logr.Logger
}

func (*Hydration) CreateNFDeployActuators

func (h *Hydration) CreateNFDeployActuators(ctx context.Context, nfDeploy deployv1alpha1.NfDeploy) ([]string, error)

For each unique vendor, version and nfType in the NFDeploy, creates a package in the respective edge deploy repo of the cluster. The package contains the operators required for the NFDeploy to be actuated on the edge. It ensures that these operators are deployed only once on the edge. It returns the list of package names to be added for approval if any.

func (*Hydration) Hydrate

func (h *Hydration) Hydrate(ctx context.Context, nfDeploy deployv1alpha1.NfDeploy) ([]string, error)

Hydrate hydrates the given nfDeploy and generates the NfTypeDeploy (like UpfDeploy, SmfDeploy) and creates the packages of generated artifacts using packageservice

type HydrationInterface

type HydrationInterface interface {
	Hydrate(ctx context.Context, nfDeploy deployv1alpha1.NfDeploy) ([]string, error)
	CreateNFDeployActuators(ctx context.Context, nfDeploy deployv1alpha1.NfDeploy) ([]string, error)
}

HydrationInterface is the interface that wraps the steps involved in hydration of a NFDeploy into the individual NFType deploys and all other supporting manifests like operators required to meet the intent of NFDeploy.

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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