gcp

package
v1.4.17 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2024 License: Apache-2.0 Imports: 24 Imported by: 2

Documentation

Index

Constants

View Source
const InstanceGroupRoleTag = "master"

InstanceGroupRoleTag is the tag used in the instance group name to maintain compatibility between MAPI & CAPI.

Variables

This section is empty.

Functions

func CloudControllerUID

func CloudControllerUID(infraID string) *corev1.ConfigMap

CloudControllerUID returns a configmap with a unique UID per cluster used by the GCP cloud controller provider to name load balancer resources. This is based on GCP provider code that manages this configmap: https://github.com/openshift/kubernetes/blob/a45281f7de40f996f67d0ee7b886add59e7b5e8d/pkg/cloudprovider/providers/gce/gce_clusterid.go#L38-L57

func CloudProviderConfig

func CloudProviderConfig(infraID, projectID, subnet, networkProjectID string) (string, error)

CloudProviderConfig generates the cloud provider config for the GCP platform.

func GenerateClusterAssets added in v0.90.0

func GenerateClusterAssets(installConfig *installconfig.InstallConfig, clusterID *installconfig.ClusterID) (*capiutils.GenerateClusterAssetsOutput, error)

GenerateClusterAssets generates the manifests for the cluster-api.

func GetTagsFromInstallConfig added in v0.90.17

func GetTagsFromInstallConfig(installConfig *installconfig.InstallConfig) []capg.ResourceManagerTag

GetTagsFromInstallConfig will return a slice of ResourceManagerTags from UserTags in install-config.

Types

type ClusterCSIDriverConfig

type ClusterCSIDriverConfig struct {
	Name      string
	KeyRing   string
	ProjectID string
	Location  string
}

ClusterCSIDriverConfig is the GCP config for the cluster CSI Driver.

func (ClusterCSIDriverConfig) YAML

func (params ClusterCSIDriverConfig) YAML() ([]byte, error)

YAML generates the cluster CSI driver config for the GCP platform.

Jump to

Keyboard shortcuts

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