bootstrap

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2022 License: Apache-2.0 Imports: 15 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) 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