Documentation ¶
Index ¶
- func ApplyTerraform(ctx context.Context, workingDir, terraformExecPath string, ...) error
- func BuildCloud(kopscluster *kopsapi.Cluster) (_ fi.Cloud, rerr error)
- func BuildKarpenterVolumeConfigFromKops(kopsVolume *kopsapi.InstanceRootVolumeSpec) *karpenterv1beta1.BlockDevice
- func BuildKarpenterVolumeConfigV1FromKops(kopsVolume *kopsapi.InstanceRootVolumeSpec) *karpenterv1.BlockDevice
- func CleanupTerraformDirectory(dir string) error
- func CreateAdditionalTerraformFiles(tfFiles ...Template) error
- func CreateEC2NodeClassFromKopsLaunchTemplateInfo(kopsCluster *kopsapi.Cluster, kmp *infrastructurev1alpha1.KopsMachinePool, ...) (string, error)
- func CreateEC2NodeClassV1FromKopsLaunchTemplateInfo(kopsCluster *kopsapi.Cluster, kmp *infrastructurev1alpha1.KopsMachinePool, ...) (*karpenterv1.EC2NodeClass, error)
- func CreateTerraformFilesFromTemplate(terraformTemplateFilePath string, TerraformOutputFileName string, ...) error
- func DeleteOwnerResources(ctx context.Context, kubeClient client.Client, resource client.Object) error
- func DestroyTerraform(ctx context.Context, workingDir, terraformExecPath string, ...) error
- func EvaluateKopsValidationResult(validation *validation.ValidationCluster) (bool, []string)
- func GetAWSCredentialsFromKopsControlPlaneSecret(ctx context.Context, c client.Client, secretName, namespace string) (*aws.Credentials, error)
- func GetAmiNameFromImageSource(image string) (string, string, error)
- func GetBucketName(configBase string) (string, error)
- func GetClusterByName(ctx context.Context, c client.Client, namespace, name string) (*clusterv1beta1.Cluster, error)
- func GetKopsClientset(configBase string) (simple.Clientset, error)
- func GetKubeconfigFromKopsState(ctx context.Context, kopsCluster *kopsapi.Cluster, ...) (*rest.Config, error)
- func GetKubeletConfiguration(kubeletSpec *kopsapi.KubeletConfigSpec) *karpenterv1.KubeletConfiguration
- func GetUserDataFromTerraformFile(clusterName, igName, terraformOutputDir string) (string, error)
- func KopsClusterValidation(object runtime.Object, recorder record.EventRecorder, log logr.Logger, ...) bool
- func KopsDeleteResources(ctx context.Context, cloud fi.Cloud, kopsClientset simple.Clientset, ...) error
- func ParseSpotinstFeatureflags(kopsControlPlane *controlplanev1alpha1.KopsControlPlane) error
- func ReconcileKopsSecrets(ctx context.Context, k8sClient client.Client, secretStore fi.SecretStore, ...) error
- func SetEnvVarsFromAWSCredentials(awsConfig aws.Credentials) error
- func ValidateKopsCluster(kubeConfig *rest.Config, kopsCluster *kopsapi.Cluster, cloud fi.Cloud, ...) (*validation.ValidationCluster, error)
- type Subnet
- type Template
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyTerraform ¶
func ApplyTerraform(ctx context.Context, workingDir, terraformExecPath string, credentials aws.Credentials) error
ApplyTerraform just applies the already created terraform files
func BuildKarpenterVolumeConfigFromKops ¶
func BuildKarpenterVolumeConfigFromKops(kopsVolume *kopsapi.InstanceRootVolumeSpec) *karpenterv1beta1.BlockDevice
func BuildKarpenterVolumeConfigV1FromKops ¶
func BuildKarpenterVolumeConfigV1FromKops(kopsVolume *kopsapi.InstanceRootVolumeSpec) *karpenterv1.BlockDevice
func CreateAdditionalTerraformFiles ¶
CreateAdditionalTerraformFiles create files in the terraform state directory from a template
func CreateEC2NodeClassFromKopsLaunchTemplateInfo ¶
func CreateEC2NodeClassFromKopsLaunchTemplateInfo(kopsCluster *kopsapi.Cluster, kmp *infrastructurev1alpha1.KopsMachinePool, nodePoolName, terraformOutputDir string) (string, error)
func CreateEC2NodeClassV1FromKopsLaunchTemplateInfo ¶
func CreateEC2NodeClassV1FromKopsLaunchTemplateInfo(kopsCluster *kopsapi.Cluster, kmp *infrastructurev1alpha1.KopsMachinePool, nodePoolName, terraformOutputDir string) (*karpenterv1.EC2NodeClass, error)
func CreateTerraformFilesFromTemplate ¶
func CreateTerraformFilesFromTemplate(terraformTemplateFilePath string, TerraformOutputFileName string, terraformOutputDir string, templateData any) error
CreateTerraformFileFromTemplate populates a Terraform template and create files in the state
func DeleteOwnerResources ¶
func DestroyTerraform ¶
func EvaluateKopsValidationResult ¶
func EvaluateKopsValidationResult(validation *validation.ValidationCluster) (bool, []string)
func GetBucketName ¶
func GetClusterByName ¶
func GetClusterByName(ctx context.Context, c client.Client, namespace, name string) (*clusterv1beta1.Cluster, error)
GetClusterByName finds and return a Cluster object using the specified params.
func GetKubeletConfiguration ¶
func GetKubeletConfiguration(kubeletSpec *kopsapi.KubeletConfigSpec) *karpenterv1.KubeletConfiguration
func KopsClusterValidation ¶
func KopsClusterValidation(object runtime.Object, recorder record.EventRecorder, log logr.Logger, validation *validation.ValidationCluster) bool
func KopsDeleteResources ¶
func ParseSpotinstFeatureflags ¶
func ParseSpotinstFeatureflags(kopsControlPlane *controlplanev1alpha1.KopsControlPlane) error
func ReconcileKopsSecrets ¶
func ReconcileKopsSecrets(ctx context.Context, k8sClient client.Client, secretStore fi.SecretStore, kopsControlPlane *controlplanev1alpha1.KopsControlPlane, k8sSecretKey client.ObjectKey) error
func SetEnvVarsFromAWSCredentials ¶
func SetEnvVarsFromAWSCredentials(awsConfig aws.Credentials) error
func ValidateKopsCluster ¶
func ValidateKopsCluster(kubeConfig *rest.Config, kopsCluster *kopsapi.Cluster, cloud fi.Cloud, igs *kopsapi.InstanceGroupList) (*validation.ValidationCluster, error)
Types ¶
Click to show internal directories.
Click to hide internal directories.