kccmanager

package
v1.107.0 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2023 License: Apache-2.0 Imports: 18 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(ctx context.Context, restConfig *rest.Config, config Config) (manager.Manager, error)

Creates a new controller-runtime manager.Manager and starts all of the KCC controllers pointed at the API server associated with the rest.Config argument. The controllers are: { tf, gsakeysecretgenerator, iampolicy, iampolicymember, registration-controller }

This serves as the entry point for the in-cluster main and the Borg service main. Any changes made should be done with care.

Types

type Config

type Config struct {
	// The 'base' manager options which will be passed to New(...) other default options will be overlayed on top, such
	// as disabling caching
	ManagerOptions manager.Options

	// UserProjectOverride provides the option to use the resource project for preconditions, quota, and billing,
	// instead of the project the credentials belong to; false by default
	UserProjectOverride bool

	// BillingProject is the project used by the TF provider and DCL client to determine preconditions,
	// quota, and billing if UserProjectOverride is set to true. If this field is empty,
	// but UserProjectOverride is set to true, resource project will be used.
	BillingProject string

	// HTTPClient is the http client to use for DCL.
	// Currently only used in tests.
	HTTPClient *http.Client

	// AccessToken allows configuration of a static access token.
	// Currently only used in tests.
	AccessToken string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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