bootstrap

package
v0.30.1 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package bootstrap ensures certain RBAC resources like ClusterRoles, ClusterRoleBindings, and ServiceAccounts. If they exist, they will be modified according to spec. If not, they are created.

Package bootstrap ensures certain RBAC resources like ClusterRoles, ClusterRoleBindings, and ServiceAccounts. If they exist, they will be modified according to spec. If not, they are created.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

Types

type Bootstrap

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

func New

func New(config Config) (*Bootstrap, error)

func (Bootstrap) K8sClient added in v0.28.0

func (b Bootstrap) K8sClient() kubernetes.Interface

func (Bootstrap) Logger added in v0.28.0

func (b Bootstrap) Logger() micrologger.Logger

func (*Bootstrap) Run

func (b *Bootstrap) Run(ctx context.Context) error

type Config

type Config struct {
	K8sClient k8sclient.Interface
	Logger    micrologger.Logger

	// internal
	CustomerAdminGroup string
	GSAdminGroup       string
}

Jump to

Keyboard shortcuts

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