kubeconfiggenerator

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MockedKubeConfigHash = []byte("KUBECONFIGHASH")
	MockedTokenHash      = []byte("TOKENHASH")
)

Functions

func Setup

func Setup(mgr ctrl.Manager, o controller.Options) error

Setup adds a controller that reconciles GlobalAccount managed resources.

Types

type KubeConfigClientMock

type KubeConfigClientMock struct {
	UpToDate         bool
	GeneratedContent string
	ServerUrl        string
}

func (*KubeConfigClientMock) Generate

func (k *KubeConfigClientMock) Generate(kubeConfig []byte, token []byte, config *oidc.GenerateConfig) (oidc.GenerateResult, error)

func (*KubeConfigClientMock) IsUpToDate

func (k *KubeConfigClientMock) IsUpToDate(kubeConfig []byte, token []byte) bool

func (*KubeConfigClientMock) WithHashes

func (k *KubeConfigClientMock) WithHashes(kubeConfigHash []byte, tokenHash []byte) oidc.KubeConfigClient

Jump to

Keyboard shortcuts

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