hcloud

package
v0.0.0-...-9a9a1f8 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package hcloud implements controller.Assiger interface for Hetzner Cloud.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssignerConfig

type AssignerConfig struct {
	// AuthToken is a Hetzner Cloud read-write token and must be set to non-empty value.
	AuthToken string

	// When mapping Kubernetes Node objects to Hetzner Cloud Servers, this suffix will be added
	// to the Kubernetes Node object name before mapping.
	//
	// E.g. if your Kubernetes node has name "foo" and your Hetzner Cloud server has name "foo.example.com",
	// you should set this to ".example.com".
	NodeSuffix string

	// Optional Prometheus Registerer to register Hetzner Cloud client metrics.
	PrometheusRegistrer prometheus.Registerer

	// Optional logger to use. If nil, controller.Klogger will be used.
	Logger controller.Logger

	// If true, no assignment changes will be actually performed. They will only be logged.
	DryRun bool
}

AssignerConfig represents Hetzner Cloud Floating IP Assigner configuration, which can be used with this controller.

func (AssignerConfig) New

New validates AssignerConfig and returns assigner implementing controller.Assigner interface.

Jump to

Keyboard shortcuts

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