iam

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2022 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupServiceAccount

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

SetupServiceAccount adds a controller that reconciles ServiceAccounts.

func SetupServiceAccountKey

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

SetupServiceAccountKey adds a controller that reconciles ServiceAccountKeys.

func SetupServiceAccountPolicy

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

SetupServiceAccountPolicy adds a controller that reconciles ServiceAccountPolicys.

Types

type RelativeResourceNamer

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

RelativeResourceNamer allows the controller to generate the "relative resource name" for the service account and GCP project based on the external-name annotation. https://cloud.google.com/apis/design/resource_names#relative_resource_name The relative resource name for service accounts has the following format: projects/{project_id}/serviceAccounts/{account name}

func NewRelativeResourceNamer

func NewRelativeResourceNamer(projectName string) RelativeResourceNamer

NewRelativeResourceNamer makes an instance of the RelativeResourceNamer which is the only type that is allowed to know how to construct GCP resource names for the IAM type.

func (RelativeResourceNamer) ProjectName

func (rrn RelativeResourceNamer) ProjectName() string

ProjectName yields the relative resource name for a GCP project

func (RelativeResourceNamer) ResourceName

func (rrn RelativeResourceNamer) ResourceName(sa *v1alpha1.ServiceAccount) string

ResourceName yields the relative resource name for the Service Account resource

Jump to

Keyboard shortcuts

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