kubeconfig

package
v0.0.0-...-37f2402 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 26 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Kubeconfig

type Kubeconfig struct {
	Log           *logrus.Entry
	BaseAccessLog *logrus.Entry
	Audit         *logrus.Entry

	DbPortal database.Portal

	Env env.Core

	ReverseProxy *httputil.ReverseProxy
	// contains filtered or unexported fields
}

func New

func New(baseLog *logrus.Entry,
	audit *logrus.Entry,
	env env.Core,
	baseAccessLog *logrus.Entry,
	servingCert *x509.Certificate,
	elevatedGroupIDs []string,
	dbOpenShiftClusters database.OpenShiftClusters,
	dbPortal database.Portal,
	dialer proxy.Dialer,
) *Kubeconfig

func (*Kubeconfig) New

func (k *Kubeconfig) New(w http.ResponseWriter, r *http.Request)

New creates a New PortalDocument allowing kubeconfig access to a cluster for 6 hours and returns a kubeconfig with the temporary credentials

Jump to

Keyboard shortcuts

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