rancher

package
v2.14.6+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2020 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Overview

Package rancher contains a controller responsible for reconciling all rancher-related resources in the seed for Kubernetes clusters, as Rancher doesn't support openshift.

It is a no-op if the corresponding feature flag is not set on the cluster.

Index

Constants

View Source
const (
	ControllerName     = "kubernatic_rancher_controller"
	RancherUsername    = "admin"
	RancherAdminSecret = "rancher-admin-secret"
)

Variables

This section is empty.

Functions

func Add

func Add(
	mgr manager.Manager,
	log *zap.SugaredLogger,
	kubeconfigProvider KubeconfigProvider,
) error

Types

type KubeconfigProvider

type KubeconfigProvider interface {
	GetAdminKubeconfig(c *kubermaticv1.Cluster) ([]byte, error)
}

KubeconfigProvider provides functionality to get a clusters admin kubeconfig

type Reconciler

type Reconciler struct {
	ctrlruntimeclient.Client
	KubeconfigProvider KubeconfigProvider
	// contains filtered or unexported fields
}

func (*Reconciler) Reconcile

func (r *Reconciler) Reconcile(request reconcile.Request) (reconcile.Result, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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