azure

package
v0.1.26 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CloudConfigKey = "cloud.conf"
	Provider       = "azure"
)

Variables

This section is empty.

Functions

func CCMDeployment added in v0.1.15

func CCMDeployment(ns string) *appsv1.Deployment

func CCMServiceAccount added in v0.1.15

func CCMServiceAccount(ns string) *corev1.ServiceAccount

func ReconcileCCMServiceAccount added in v0.1.15

func ReconcileCCMServiceAccount(sa *corev1.ServiceAccount, ownerRef config.OwnerRef) error

func ReconcileCloudConfig

func ReconcileCloudConfig(cm *corev1.ConfigMap, hcp *hyperv1.HostedControlPlane, credentialsSecret *corev1.Secret) error

ReconcileCloudConfig reconciles as expected by Nodes Kubelet.

func ReconcileCloudConfigWithCredentials

func ReconcileCloudConfigWithCredentials(secret *corev1.Secret, hcp *hyperv1.HostedControlPlane, credentialsSecret *corev1.Secret) error

ReconcileCloudConfigWithCredentials reconciles as expected by KAS/KCM.

func ReconcileDeployment added in v0.1.15

func ReconcileDeployment(deployment *appsv1.Deployment, hcp *hyperv1.HostedControlPlane, p *AzureParams, serviceAccountName string, releaseImageProvider *imageprovider.ReleaseImageProvider) error

Types

type AzureConfig

type AzureConfig struct {
	Cloud                        string `json:"cloud"`
	TenantID                     string `json:"tenantId"`
	UseManagedIdentityExtension  bool   `json:"useManagedIdentityExtension"`
	SubscriptionID               string `json:"subscriptionId"`
	AADClientID                  string `json:"aadClientId"`
	AADClientSecret              string `json:"aadClientSecret"`
	ResourceGroup                string `json:"resourceGroup"`
	Location                     string `json:"location"`
	VnetName                     string `json:"vnetName"`
	VnetResourceGroup            string `json:"vnetResourceGroup"`
	SubnetName                   string `json:"subnetName"`
	SecurityGroupName            string `json:"securityGroupName"`
	RouteTableName               string `json:"routeTableName"`
	CloudProviderBackoff         bool   `json:"cloudProviderBackoff"`
	CloudProviderBackoffDuration int    `json:"cloudProviderBackoffDuration"`
	UseInstanceMetadata          bool   `json:"useInstanceMetadata"`
	LoadBalancerSku              string `json:"loadBalancerSku"`
	DisableOutboundSNAT          bool   `json:"disableOutboundSNAT"`
	LoadBalancerName             string `json:"loadBalancerName"`
}

AzureConfig was originally a copy of the relevant subset of the upstream type at https://github.com/kubernetes/kubernetes/blob/30a21e9abdbbeb78d2b7ce59a79e46299ced2742/staging/src/k8s.io/legacy-cloud-providers/azure/azure.go#L123 in order to not pick up the huge amount of transient dependencies that type pulls in. Now the source is https://github.com/kubernetes-sigs/cloud-provider-azure/blob/e5d670328a51e31787fc949ddf41a3efcd90d651/examples/out-of-tree/cloud-controller-manager.yaml#L232 https://github.com/kubernetes-sigs/cloud-provider-azure/tree/e5d670328a51e31787fc949ddf41a3efcd90d651/pkg/provider/config

type AzureParams added in v0.1.15

type AzureParams struct {
	ClusterID        string                  `json:"clusterID"`
	ClusterNetwork   string                  `json:"clusterNetwork"`
	OwnerRef         *metav1.OwnerReference  `json:"ownerRef"`
	DeploymentConfig config.DeploymentConfig `json:"deploymentConfig"`
}

func NewAzureParams added in v0.1.15

func NewAzureParams(hcp *hyperv1.HostedControlPlane) *AzureParams

Jump to

Keyboard shortcuts

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