podnetworkinstance

package
v1.5.10 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2023 License: MIT Imports: 14 Imported by: 0

README

Pod Network Instance (PNI)

PNIs represent optional requirements, or behavior configurations for how we setup the pod networking. They should map 1:1 and follow the lifetime of a customer workload.

The object points to the PodNetwork for the delegated subnet to use and defines allocation requirements (e.g.: for IPs to reserve for pod endpoints). Orchestrator can map the deployments with these requirements to the PNI object through labels on the pod spec pointing to this object identifier. 

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PodNetworkInstanceYAML []byte

PodNetworkInstanceYAML embeds the CRD YAML for downstream consumers.

View Source
var Scheme = runtime.NewScheme()

Scheme is a runtime scheme containing the client-go scheme and the PodNetworkInstance scheme.

Functions

func GetPodNetworkInstances

func GetPodNetworkInstances() (*apiextensionsv1.CustomResourceDefinition, error)

GetPodNetworkInstances parses the raw []byte PodNetworkInstance in to a CustomResourceDefinition and returns it or an unmarshalling error.

Types

type Installer

type Installer struct {
	// contains filtered or unexported fields
}

Installer provides methods to manage the lifecycle of the PodNetworkInstance resource definition.

func NewInstaller

func NewInstaller(c *rest.Config) (*Installer, error)

func (*Installer) Install

Install installs the embedded PodNetworkInstance CRD definition in the cluster.

func (*Installer) InstallOrUpdate

func (i *Installer) InstallOrUpdate(ctx context.Context) (*v1.CustomResourceDefinition, error)

InstallOrUpdate installs the embedded PodNetworkInstance CRD definition in the cluster or updates it if present.

Directories

Path Synopsis
api
v1alpha1
Package v1alpha1 contains API Schema definitions for the networking v1alpha1 API group +kubebuilder:object:generate=true +groupName=acn.azure.com
Package v1alpha1 contains API Schema definitions for the networking v1alpha1 API group +kubebuilder:object:generate=true +groupName=acn.azure.com
Package manifests exists to allow the rendered CRD manifests to be packaged in to dependent components.
Package manifests exists to allow the rendered CRD manifests to be packaged in to dependent components.

Jump to

Keyboard shortcuts

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