k8s

package
v0.99.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package k8s contains the Kubernetes hostname provider

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

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

func NewProvider

func NewProvider(logger *zap.Logger, clusterProvider provider.ClusterNameProvider) (*Provider, error)

NewProvider creates a new Kubernetes hostname provider.

func (*Provider) Source

func (p *Provider) Source(ctx context.Context) (source.Source, error)

Hostname returns the Kubernetes node name followed by the cluster name if available.

Jump to

Keyboard shortcuts

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