cluster

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// BootstrapNodePoolName is the name of the node pool that is used to
	// boostrap GKE cluster creation.
	BootstrapNodePoolName = "crossplane-bootstrap"

	// BNPNameFormat is the format for the fully qualified name of the bootstrap node pool.
	BNPNameFormat = "%s/nodePools/%s"

	// ParentFormat is the format for the fully qualified name of a cluster parent.
	ParentFormat = "projects/%s/locations/%s"

	// ClusterNameFormat is the format for the fully qualified name of a cluster.
	ClusterNameFormat = "projects/%s/locations/%s/clusters/%s"
)

Variables

This section is empty.

Functions

func AddNodePoolForCreate

func AddNodePoolForCreate(in *container.Cluster)

AddNodePoolForCreate inserts the default node pool into *container.Cluster so that it can be provisioned successfully.

func GenerateAddonsConfig

func GenerateAddonsConfig(in *v1beta1.AddonsConfig, cluster *container.Cluster)

GenerateAddonsConfig generates *container.AddonsConfig from *AddonsConfig.

func GenerateAuthenticatorGroupsConfig

func GenerateAuthenticatorGroupsConfig(in *v1beta1.AuthenticatorGroupsConfig, cluster *container.Cluster)

GenerateAuthenticatorGroupsConfig generates *container.AuthenticatorGroupsConfig from *AuthenticatorGroupsConfig.

func GenerateAutoscaling

func GenerateAutoscaling(in *v1beta1.ClusterAutoscaling, cluster *container.Cluster)

GenerateAutoscaling generates *container.ClusterAutoscaling from *ClusterAutoscaling.

func GenerateBinaryAuthorization

func GenerateBinaryAuthorization(in *v1beta1.BinaryAuthorization, cluster *container.Cluster)

GenerateBinaryAuthorization generates *container.BinaryAuthorization from *BinaryAuthorization.

func GenerateClientConfig

func GenerateClientConfig(cluster *container.Cluster) (clientcmdapi.Config, error)

GenerateClientConfig generates a clientcmdapi.Config that can be used by any kubernetes client.

func GenerateCluster

func GenerateCluster(name string, in v1beta1.ClusterParameters, cluster *container.Cluster)

GenerateCluster generates *container.Cluster instance from ClusterParameters.

func GenerateDatabaseEncryption

func GenerateDatabaseEncryption(in *v1beta1.DatabaseEncryption, cluster *container.Cluster)

GenerateDatabaseEncryption generates *container.DatabaseEncryption from *DatabaseEncryption.

func GenerateDefaultMaxPodsConstraint

func GenerateDefaultMaxPodsConstraint(in *v1beta1.MaxPodsConstraint, cluster *container.Cluster)

GenerateDefaultMaxPodsConstraint generates *container.MaxPodsConstraint from *DefaultMaxPodsConstraint.

func GenerateIPAllocationPolicy

func GenerateIPAllocationPolicy(in *v1beta1.IPAllocationPolicy, cluster *container.Cluster)

GenerateIPAllocationPolicy generates *container.MaxPodsConstraint from *IpAllocationPolicy.

func GenerateLegacyAbac

func GenerateLegacyAbac(in *v1beta1.LegacyAbac, cluster *container.Cluster)

GenerateLegacyAbac generates *container.LegacyAbac from *LegacyAbac.

func GenerateMaintenancePolicy

func GenerateMaintenancePolicy(in *v1beta1.MaintenancePolicySpec, cluster *container.Cluster)

GenerateMaintenancePolicy generates *container.MaintenancePolicy from *MaintenancePolicy.

func GenerateMasterAuth

func GenerateMasterAuth(in *v1beta1.MasterAuth, cluster *container.Cluster)

GenerateMasterAuth generates *container.MasterAuth from *MasterAuth.

func GenerateMasterAuthorizedNetworksConfig

func GenerateMasterAuthorizedNetworksConfig(in *v1beta1.MasterAuthorizedNetworksConfig, cluster *container.Cluster)

GenerateMasterAuthorizedNetworksConfig generates *container.MasterAuthorizedNetworksConfig from *MasterAuthorizedNetworksConfig.

func GenerateNetworkConfig

func GenerateNetworkConfig(in *v1beta1.NetworkConfigSpec, cluster *container.Cluster)

GenerateNetworkConfig generates *container.NetworkConfig from *NetworkConfig.

func GenerateNetworkPolicy

func GenerateNetworkPolicy(in *v1beta1.NetworkPolicy, cluster *container.Cluster)

GenerateNetworkPolicy generates *container.NetworkPolicy from *NetworkPolicy.

func GenerateObservation

func GenerateObservation(in container.Cluster) v1beta1.ClusterObservation

GenerateObservation produces ClusterObservation object from *container.Cluster object.

func GeneratePodSecurityPolicyConfig

func GeneratePodSecurityPolicyConfig(in *v1beta1.PodSecurityPolicyConfig, cluster *container.Cluster)

GeneratePodSecurityPolicyConfig generates *container.PodSecurityPolicyConfig from *PodSecurityPolicyConfig.

func GeneratePrivateClusterConfig

func GeneratePrivateClusterConfig(in *v1beta1.PrivateClusterConfigSpec, cluster *container.Cluster)

GeneratePrivateClusterConfig generates *container.PrivateClusterConfig from *PrivateClusterConfig.

func GenerateResourceUsageExportConfig

func GenerateResourceUsageExportConfig(in *v1beta1.ResourceUsageExportConfig, cluster *container.Cluster)

GenerateResourceUsageExportConfig generates *container.ResourceUsageExportConfig from *ResourceUsageExportConfig.

func GenerateTierSettings

func GenerateTierSettings(in *v1beta1.TierSettings, cluster *container.Cluster)

GenerateTierSettings generates *container.TierSettings from *TierSettings.

func GenerateVerticalPodAutoscaling

func GenerateVerticalPodAutoscaling(in *v1beta1.VerticalPodAutoscaling, cluster *container.Cluster)

GenerateVerticalPodAutoscaling generates *container.VerticalPodAutoscaling from *VerticalPodAutoscaling.

func GenerateWorkloadIdentityConfig

func GenerateWorkloadIdentityConfig(in *v1beta1.WorkloadIdentityConfig, cluster *container.Cluster)

GenerateWorkloadIdentityConfig generates *container.WorkloadIdentityConfig from *WorkloadIdentityConfig.

func GetFullyQualifiedBNP

func GetFullyQualifiedBNP(clusterName string) string

GetFullyQualifiedBNP build the fully qualified name of the bootstrap node pool.

func GetFullyQualifiedName

func GetFullyQualifiedName(project string, p v1beta1.ClusterParameters, name string) string

GetFullyQualifiedName builds the fully qualified name of the cluster.

func GetFullyQualifiedParent

func GetFullyQualifiedParent(project string, p v1beta1.ClusterParameters) string

GetFullyQualifiedParent builds the fully qualified name of the cluster parent.

func LateInitializeSpec

func LateInitializeSpec(spec *v1beta1.ClusterParameters, in container.Cluster)

LateInitializeSpec fills unassigned fields with the values in container.Cluster object.

Types

type UpdateFn

UpdateFn returns a function that updates a node pool.

func IsUpToDate

func IsUpToDate(name string, in *v1beta1.ClusterParameters, observed *container.Cluster) (bool, UpdateFn, error)

IsUpToDate checks whether current state is up-to-date compared to the given set of parameters. NOTE(hasheddan): This function is significantly above our cyclomatic complexity limit, but is necessary due to the fact that the GKE API only allows for update of one field at a time.

Jump to

Keyboard shortcuts

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