provider

package
v2.53.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	DefaultAppsAWSRepoName = "default-apps-aws"
	ClusterAWSRepoName     = "cluster-aws"
	ModePrivate            = "private"
	ProxyPrivateType       = "proxy-private"
)
View Source
const (
	DefaultAppsGCPRepoName = "default-apps-gcp"
	ClusterGCPRepoName     = "cluster-gcp"
)
View Source
const (
	DefaultAppsVsphereRepoName = "default-apps-vsphere"
	ClusterVsphereRepoName     = "cluster-vsphere"
)
View Source
const (
	DefaultAppsAzureRepoName = "default-apps-azure"
	ClusterAzureRepoName     = "cluster-azure"
)
View Source
const (
	DefaultAppsEKSRepoName = "default-apps-eks"
	ClusterEKSRepoName     = "cluster-eks"
)

Variables

This section is empty.

Functions

func BuildCapaClusterConfig added in v2.30.0

func BuildCapaClusterConfig(config ClusterConfig) capa.ClusterConfig

func BuildCapgClusterConfig added in v2.30.0

func BuildCapgClusterConfig(config ClusterConfig) capg.ClusterConfig

func BuildCapoClusterConfig added in v2.30.0

func BuildCapoClusterConfig(config ClusterConfig, controlPlaneReplicas int) openstack.ClusterConfig

func BuildCapvClusterConfig added in v2.45.0

func BuildCapvClusterConfig(config ClusterConfig) capv.ClusterConfig

func BuildCapzClusterConfig added in v2.39.0

func BuildCapzClusterConfig(config ClusterConfig) capz.ClusterConfig

func BuildEKSClusterConfig added in v2.40.0

func BuildEKSClusterConfig(config ClusterConfig) eks.ClusterConfig

func IsInvalidFlag

func IsInvalidFlag(err error) bool

IsInvalidFlag asserts invalidFlagError.

func ValidateYAML added in v2.34.0

func ValidateYAML(ctx context.Context, logger micrologger.Logger, client k8sclient.Interface, clusterApp applicationv1alpha1.App, yaml map[string]interface{}) error

validateYAML validates the given yaml against the cluster specific app values schema

func WriteAWSTemplate

func WriteAWSTemplate(ctx context.Context, client k8sclient.Interface, out io.Writer, config ClusterConfig) error

func WriteAzureTemplate

func WriteAzureTemplate(ctx context.Context, client k8sclient.Interface, out io.Writer, config ClusterConfig) error

func WriteCAPATemplate

func WriteCAPATemplate(ctx context.Context, client k8sclient.Interface, output io.Writer, config ClusterConfig) error

func WriteCAPZTemplate

func WriteCAPZTemplate(ctx context.Context, client k8sclient.Interface, output io.Writer, config ClusterConfig) error

func WriteEKSTemplate added in v2.40.0

func WriteEKSTemplate(ctx context.Context, client k8sclient.Interface, output io.Writer, config ClusterConfig) error

func WriteGCPTemplate

func WriteGCPTemplate(ctx context.Context, client k8sclient.Interface, output io.Writer, config ClusterConfig) error

func WriteGSAWSTemplate

func WriteGSAWSTemplate(ctx context.Context, client k8sclient.Interface, out io.Writer, config ClusterConfig) error

func WriteGSAzureTemplate

func WriteGSAzureTemplate(ctx context.Context, client k8sclient.Interface, out io.Writer, config ClusterConfig) error

func WriteOpenStackTemplate

func WriteOpenStackTemplate(ctx context.Context, k8sClient k8sclient.Interface, output io.Writer, config ClusterConfig) error

func WriteVSphereTemplate

func WriteVSphereTemplate(ctx context.Context, client k8sclient.Interface, output io.Writer, config ClusterConfig) error

Types

type AWSConfig

type AWSConfig struct {
	ExternalSNAT       bool
	ControlPlaneSubnet string

	// for CAPA
	AWSClusterRoleIdentityName                     string
	MachinePool                                    AWSMachinePoolConfig
	NetworkAZUsageLimit                            int
	NetworkVPCCIDR                                 string
	ClusterType                                    string
	HttpProxy                                      string
	HttpsProxy                                     string
	NoProxy                                        string
	APIMode                                        string
	VPCMode                                        string
	TopologyMode                                   string
	PrefixListID                                   string
	TransitGatewayID                               string
	ControlPlaneLoadBalancerIngressAllowCIDRBlocks []string
	PublicSubnetMask                               int
	PrivateSubnetMask                              int
}

type AWSMachinePoolConfig

type AWSMachinePoolConfig struct {
	Name             string
	MinSize          int
	MaxSize          int
	AZs              []string
	InstanceType     string
	RootVolumeSizeGB int
	CustomNodeLabels []string
}

type AppConfig

type AppConfig struct {
	ClusterCatalog     string
	ClusterVersion     string
	DefaultAppsCatalog string
	DefaultAppsVersion string
}

type AzureConfig added in v2.39.0

type AzureConfig struct {
	SubscriptionID string
}

type ClusterConfig

type ClusterConfig struct {
	ManagementCluster string
	KubernetesVersion string
	FileName          string
	ControlPlaneAZ    []string
	Description       string
	Name              string
	Organization      string
	ReleaseVersion    string
	ReleaseComponents map[string]string
	Labels            map[string]string
	Namespace         string
	PodsCIDR          string
	OIDC              OIDC
	ServicePriority   string

	Region                   string
	BastionInstanceType      string
	BastionReplicas          int
	ControlPlaneInstanceType string

	App       AppConfig
	AWS       AWSConfig
	Azure     AzureConfig
	VSphere   VSphereConfig
	GCP       GCPConfig
	OpenStack OpenStackConfig
}

type GCPConfig

type GCPConfig struct {
	Project           string
	FailureDomains    []string
	ControlPlane      GCPControlPlane
	MachineDeployment GCPMachineDeployment
}

type GCPControlPlane

type GCPControlPlane struct {
	ServiceAccount ServiceAccount
}

type GCPMachineDeployment

type GCPMachineDeployment struct {
	Name             string
	FailureDomain    string
	InstanceType     string
	Replicas         int
	RootVolumeSizeGB int
	CustomNodeLabels []string
	ServiceAccount   ServiceAccount
}

type MachineConfig

type MachineConfig struct {
	BootFromVolume bool
	DiskSize       int
	Flavor         string
	Image          string
}

type OIDC

type OIDC struct {
	IssuerURL     string
	CAFile        string
	ClientID      string
	UsernameClaim string
	GroupsClaim   string
}

type OpenStackConfig

type OpenStackConfig struct {
	Cloud          string
	CloudConfig    string
	DNSNameservers []string

	ExternalNetworkID string
	NodeCIDR          string
	NetworkName       string
	SubnetName        string

	Bastion      MachineConfig
	ControlPlane MachineConfig
	Worker       MachineConfig

	WorkerFailureDomain string
	WorkerReplicas      int
}

type ServiceAccount

type ServiceAccount struct {
	Email  string
	Scopes []string
}

type VSphereConfig added in v2.45.0

type VSphereConfig struct {
	ControlPlane            VSphereControlPlane
	CredentialsSecretName   string
	ImageTemplate           string
	NetworkName             string
	Worker                  VSphereMachineTemplate
	ResourcePool            string
	ServiceLoadBalancerCIDR string
	SvcLbIpPoolName         string
}

type VSphereControlPlane added in v2.45.0

type VSphereControlPlane struct {
	Ip         string
	IpPoolName string
	VSphereMachineTemplate
}

type VSphereMachineTemplate added in v2.45.0

type VSphereMachineTemplate struct {
	DiskGiB   int
	MemoryMiB int
	NumCPUs   int
	Replicas  int
}

Directories

Path Synopsis
templates
aws
eks
gcp

Jump to

Keyboard shortcuts

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