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