Documentation ¶
Index ¶
- func DefaultTo(value string, defaultValue string) string
- func GetLatestVersion(ctx context.Context, ctrlClient client.Client, app, catalog string) (string, error)
- func NewCapiClusterCR(config ClusterConfig, infrastructureRef *corev1.ObjectReference) *capi.Cluster
- func OrganizationNamespace(org string) string
- func UserConfigMapName(app string) string
- func ValidateYAML(ctx context.Context, logger micrologger.Logger, client k8sclient.Interface, ...) error
- type AWSConfig
- type AWSMachinePoolConfig
- type AppConfig
- type AzureConfig
- type ClusterConfig
- type GCPConfig
- type GCPControlPlane
- type GCPMachineDeployment
- type MachineConfig
- type OIDC
- type OpenStackConfig
- type ServiceAccount
- type VSphereConfig
- type VSphereControlPlane
- type VSphereMachineTemplate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetLatestVersion ¶
func NewCapiClusterCR ¶
func NewCapiClusterCR(config ClusterConfig, infrastructureRef *corev1.ObjectReference) *capi.Cluster
func OrganizationNamespace ¶
func UserConfigMapName ¶
func ValidateYAML ¶
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
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 AzureConfig ¶
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 PreventDeletion bool 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 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 ¶
type VSphereConfig ¶
type VSphereConfig struct { ControlPlane VSphereControlPlane CredentialsSecretName string ImageTemplate string NetworkName string Worker VSphereMachineTemplate ResourcePool string ServiceLoadBalancerCIDR string SvcLbIpPoolName string }
type VSphereControlPlane ¶
type VSphereControlPlane struct { Ip string IpPoolName string VSphereMachineTemplate }
Click to show internal directories.
Click to hide internal directories.