helper

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2023 License: MIT Imports: 22 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureFirewallControllerRBAC

func EnsureFirewallControllerRBAC(ctx context.Context, seedConfig *rest.Config, deploy *v2.FirewallDeployment, shootNamespace string, shootAccess *v2.ShootAccess, shootAccessHelper *ShootAccessHelper) error

func GetAccessKubeconfig

func GetAccessKubeconfig(c *AccessConfig) ([]byte, error)

func MustNewFirewallScheme

func MustNewFirewallScheme() *runtime.Scheme

Types

type AccessConfig

type AccessConfig struct {
	Ctx          context.Context
	Config       *rest.Config
	Namespace    string
	ApiServerURL string
	Deployment   *v2.FirewallDeployment
	ForShoot     bool
}

type ShootAccessHelper

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

func NewShootAccessHelper

func NewShootAccessHelper(seed client.Client, access *v2.ShootAccess) *ShootAccessHelper

func (*ShootAccessHelper) Client

func (s *ShootAccessHelper) Client(ctx context.Context) (client.Client, error)

func (*ShootAccessHelper) Config

func (*ShootAccessHelper) K8sVersion

func (s *ShootAccessHelper) K8sVersion(ctx context.Context) (*semver.Version, error)

func (*ShootAccessHelper) RESTConfig

func (s *ShootAccessHelper) RESTConfig(ctx context.Context) (*rest.Config, error)

func (*ShootAccessHelper) Raw

func (s *ShootAccessHelper) Raw(ctx context.Context) ([]byte, error)

func (*ShootAccessHelper) ReadTokenSecret

func (s *ShootAccessHelper) ReadTokenSecret(ctx context.Context) (*time.Time, string, error)

type ShootAccessTokenUpdater

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

func NewShootAccessTokenUpdater

func NewShootAccessTokenUpdater(s *ShootAccessHelper, tokenDir string) (*ShootAccessTokenUpdater, error)

func (*ShootAccessTokenUpdater) UpdateContinuously

func (s *ShootAccessTokenUpdater) UpdateContinuously(log logr.Logger, stop context.Context) error

Jump to

Keyboard shortcuts

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