Documentation ¶
Overview ¶
Package hostname implements hostname resolving strategies.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OwnerChainResolver ¶
OwnerChainResolver traverses the owner chain and uses the name of the last owner reference as the hostname.
func (*OwnerChainResolver) GetHostname ¶
func (r *OwnerChainResolver) GetHostname(ctx context.Context, claim *ipamv1.IPAddressClaim) (string, error)
GetHostname returns the hostname for the specified claim.
type SearchOwnerReferenceResolver ¶
SearchOwnerReferenceResolver performs a depth search on the owner references until it finds the specified metav1.GroupKind and uses it's name as the hostname.
func (*SearchOwnerReferenceResolver) GetHostname ¶
func (r *SearchOwnerReferenceResolver) GetHostname(ctx context.Context, claim *ipamv1.IPAddressClaim) (string, error)
GetHostname returns the hostname for the specified claim.
Click to show internal directories.
Click to hide internal directories.