shared

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package shared implements functionality that is shared across different services.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsRegional

func IsRegional(location string) bool

IsRegional will check if a given location is a region (if not its a zone).

func ManagedMachinePoolPreflightCheck

func ManagedMachinePoolPreflightCheck(managedPool *infrav1exp.GCPManagedMachinePool, machinePool *clusterv1exp.MachinePool, location string) error

ManagedMachinePoolPreflightCheck will perform checks against the machine pool before its created.

func ManagedMachinePoolsPreflightCheck

func ManagedMachinePoolsPreflightCheck(managedPools []infrav1exp.GCPManagedMachinePool, machinePools []clusterv1exp.MachinePool, location string) error

ManagedMachinePoolsPreflightCheck will perform checks against a slice of machine pool before they are created.

func ResourceTagBinding added in v1.6.0

func ResourceTagBinding(ctx context.Context, client *resourcemanager.TagBindingsClient, spec infrav1exp.GCPManagedClusterSpec, name string) error

ResourceTagBinding creates a TagBinding between a TagValue and a Google Cloud resource. If any of the SDK calls fail, the error is logged and no action is taken.

func ResourceTagConvert added in v1.6.0

ResourceTagConvert converts the passed resource-manager tags to a GCP API valid format. Tag keys and Tag Values will be created by the user and only the Tag bindings to the Compute Instance will be handled by CAPG. If the Tag Key/Tag Value cannot be retrieved or no tags are provided, this will be empty and no tags will be added.

Types

This section is empty.

Jump to

Keyboard shortcuts

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