Documentation ¶
Index ¶
- Constants
- func BuildCapaClusterConfig(config ClusterConfig) capa.ClusterConfig
- func BuildCapgClusterConfig(config ClusterConfig) capg.ClusterConfig
- func BuildCapoClusterConfig(config ClusterConfig, controlPlaneReplicas int) openstack.ClusterConfig
- func GetClusterApp(ctx context.Context, client k8sclient.Interface, ...) (applicationv1alpha1.App, error)
- func GetDefaultApp(ctx context.Context, client k8sclient.Interface, ...) (applicationv1alpha1.App, error)
- func IsInvalidFlag(err error) bool
- func TemplateClusterApp(ctx context.Context, output io.Writer, ...) error
- func TemplateDefaultApp(ctx context.Context, output io.Writer, ...) error
- func ValidateYAML(ctx context.Context, logger micrologger.Logger, client k8sclient.Interface, ...) error
- func WriteAWSTemplate(ctx context.Context, client k8sclient.Interface, out io.Writer, ...) error
- func WriteAzureTemplate(ctx context.Context, client k8sclient.Interface, out io.Writer, ...) error
- func WriteCAPAEKSTemplate(ctx context.Context, client k8sclient.Interface, out io.Writer, ...) error
- func WriteCAPATemplate(ctx context.Context, client k8sclient.Interface, output io.Writer, ...) error
- func WriteGCPTemplate(ctx context.Context, client k8sclient.Interface, output io.Writer, ...) error
- func WriteGSAWSTemplate(ctx context.Context, client k8sclient.Interface, out io.Writer, ...) error
- func WriteGSAzureTemplate(ctx context.Context, client k8sclient.Interface, out io.Writer, ...) error
- func WriteOpenStackTemplate(ctx context.Context, k8sClient k8sclient.Interface, output io.Writer, ...) error
- func WriteVSphereTemplate(ctx context.Context, client k8sclient.Interface, out io.Writer, ...) error
- type AWSConfig
- type AWSMachinePoolConfig
- type AppConfig
- type ClusterConfig
- type GCPConfig
- type GCPControlPlane
- type GCPMachineDeployment
- type MachineConfig
- type OIDC
- type OpenStackConfig
- type ServiceAccount
Constants ¶
View Source
const ( DefaultAppsRepoName = "default-apps-aws" ClusterAWSRepoName = "cluster-aws" ModePrivate = "private" )
View Source
const ( DefaultAppsGCPRepoName = "default-apps-gcp" ClusterGCPRepoName = "cluster-gcp" )
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 GetClusterApp ¶ added in v2.34.0
func GetDefaultApp ¶ added in v2.34.0
func TemplateClusterApp ¶ added in v2.34.0
func TemplateClusterApp(ctx context.Context, output io.Writer, provider, clusterName, clusterOrganization string, clusterApp applicationv1alpha1.App, clusterAppConfigValues map[string]interface{}) error
templateClusterApp templates the Cluster app
func TemplateDefaultApp ¶ added in v2.34.0
func TemplateDefaultApp(ctx context.Context, output io.Writer, provider, clusterName, clusterOrganization string, clusterApp applicationv1alpha1.App, clusterAppConfigValues map[string]interface{}) error
templateClusterApp templates the Cluster app
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 WriteAzureTemplate ¶
func WriteCAPAEKSTemplate ¶
func WriteCAPATemplate ¶
func WriteGCPTemplate ¶
func WriteGSAWSTemplate ¶
func WriteGSAzureTemplate ¶
func WriteOpenStackTemplate ¶
func WriteVSphereTemplate ¶
Types ¶
type AWSConfig ¶
type AWSConfig struct { EKS bool 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 DNSMode string TopologyMode string PrefixListID string TransitGatewayID string }
type AWSMachinePoolConfig ¶
type ClusterConfig ¶
type ClusterConfig struct { 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 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 MachineConfig ¶
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 ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.