utils

package
v0.0.0-...-dea613c Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Finalizer is the string for the k8s finalizer
	Finalizer = "finalizer.compute.gce"
	// ReconcilePeriodAnnotation is the annotation to accept alternative reconcile-period
	ReconcilePeriodAnnotation = "compute.gce/reconcile-period"
	// ProjectIDAnnotation is the annotation for accept an alternative Project ID
	ProjectIDAnnotation = "compute.gce/project-id"
	// ServiceAccountAnnotation is the annotation to specify a serviceAccountName for IAM tasks
	ServiceAccountAnnotation = "iam.gce/serviceAccountName"
	// ManagedZoneAnnotation is the annotation to specify a managed zone for DNS tasks
	ManagedZoneAnnotation = "dns.gce/zone"
)

Variables

This section is empty.

Functions

func Contains

func Contains(l []string, s string) bool

Contains verifies if a list of strings contains a given string

func GetAnnotation

func GetAnnotation(annotations map[string]string, a string) string

GetAnnotation returns a thing

func ServiceAccountEmail

func ServiceAccountEmail(projectID, name string) string

ServiceAccountEmail takes the projectid and a name and returns a valid service account email address

func ServiceAccountFQN

func ServiceAccountFQN(projectID, name string) string

ServiceAccountFQN creates the fully qualified name of the service account

func ServiceAccountName

func ServiceAccountName(projectID, name string) string

ServiceAccountName takes the projectid and a name and returns a valid Service Account URL

Types

This section is empty.

Jump to

Keyboard shortcuts

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