helper

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2024 License: Apache-2.0, MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrProviderStatusRawIsNil  = errors.New("providerStatus.Raw is nil, and can't be unmarshalled")
	ErrWrongInfrastructureType = errors.New("infrastructure type is not correct")
)

Error variables for helper pkg

View Source
var (
	ErrClusterObjectNotComplete = errors.New("cluster.Seed or cluster.Shoot is nil")
)

Error variables for helper pkg

Functions

func ComputeShortShootID added in v1.1.0

func ComputeShortShootID(shoot *v1beta1.Shoot) string

ComputeShortShootID computes the host for a given prefix.

func GetClusterForExtension

func GetClusterForExtension(
	ctx context.Context,
	c client.Reader,
	extension *extensionsv1alpha1.Extension,
) (*controller.Cluster, error)

GetClusterForExtension returns Cluster object for an extension object

func GetInfrastructureForExtension

func GetInfrastructureForExtension(
	ctx context.Context,
	c client.Reader,
	extension *extensionsv1alpha1.Extension,
	shootName string,
) (*extensionsv1alpha1.Infrastructure, error)

GetInfrastructureForExtension returns Infrastructure object for an extension object

func GetProviderSpecificAllowedCIDRs

func GetProviderSpecificAllowedCIDRs(
	infra *extensionsv1alpha1.Infrastructure,
) ([]string, error)

GetProviderSpecificAllowedCIDRs returns the allowed CIDRs for the Infrastructure object.

func GetSeedIngressDomain added in v1.1.0

func GetSeedIngressDomain(seed *v1beta1.Seed) string

GetSeedIngressDomain returns the ingress domain of the seed

func GetSeedSpecificAllowedCIDRs

func GetSeedSpecificAllowedCIDRs(seed *v1beta1.Seed) []string

GetSeedSpecificAllowedCIDRs returns the node and pod CIDRs from the seed

func GetShootNodeSpecificAllowedCIDRs

func GetShootNodeSpecificAllowedCIDRs(shoot *v1beta1.Shoot) []string

GetShootNodeSpecificAllowedCIDRs returns the node CIDRs of the shoot

func GetShootPodSpecificAllowedCIDRs

func GetShootPodSpecificAllowedCIDRs(shoot *v1beta1.Shoot) []string

GetShootPodSpecificAllowedCIDRs returns the pod CIDRs of the shoot

Types

This section is empty.

Jump to

Keyboard shortcuts

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