ibmcloud

package
v0.8.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var IBMCloudProps = &IBMCloudProperties{}

Functions

func InitIBMCloudProperties

func InitIBMCloudProperties(properties map[string]string) error

func NewIBMCloudInstallOverlay

func NewIBMCloudInstallOverlay(installDir, provider string) (pv.InstallOverlay, error)

func NewIBMCloudProvisioner

func NewIBMCloudProvisioner(properties map[string]string) (pv.CloudProvisioner, error)

Types

type IBMCloudInstallOverlay

type IBMCloudInstallOverlay struct {
	Overlay *pv.KustomizeOverlay
}

IBMCloudInstallOverlay implements the InstallOverlay interface

func (*IBMCloudInstallOverlay) Apply

func (lio *IBMCloudInstallOverlay) Apply(ctx context.Context, cfg *envconf.Config) error

func (*IBMCloudInstallOverlay) Delete

func (lio *IBMCloudInstallOverlay) Delete(ctx context.Context, cfg *envconf.Config) error

func (*IBMCloudInstallOverlay) Edit

func (lio *IBMCloudInstallOverlay) Edit(ctx context.Context, cfg *envconf.Config, properties map[string]string) error

Update install/overlays/ibmcloud/kustomization.yaml

type IBMCloudProperties

type IBMCloudProperties struct {
	IBMCloudProvider  string
	ApiKey            string
	IamProfileID      string
	Bucket            string
	CaaImageTag       string
	ClusterName       string
	CosApiKey         string
	CosInstanceID     string
	CosServiceURL     string
	SecurityGroupID   string
	IamServiceURL     string
	IksServiceURL     string
	InstanceProfile   string
	KubeVersion       string
	PodvmImageID      string
	PodvmImageArch    string
	PublicGatewayName string
	PublicGatewayID   string
	Region            string
	ResourceGroupID   string
	SshKeyContent     string
	SshKeyID          string
	SshKeyName        string
	SubnetName        string
	SubnetID          string
	VpcName           string
	VpcID             string
	VpcServiceURL     string
	WorkerFlavor      string
	WorkerOS          string
	Zone              string

	WorkerCount   int
	IsSelfManaged bool

	VPC        *vpcv1.VpcV1
	ClusterAPI containerv2.Clusters
}

type IBMCloudProvisioner

type IBMCloudProvisioner struct {
}

IBMCloudProvisioner implements the CloudProvisioner interface for ibmcloud.

func (*IBMCloudProvisioner) CreateCluster

func (p *IBMCloudProvisioner) CreateCluster(ctx context.Context, cfg *envconf.Config) error

func (*IBMCloudProvisioner) CreateVPC

func (p *IBMCloudProvisioner) CreateVPC(ctx context.Context, cfg *envconf.Config) error

func (*IBMCloudProvisioner) DeleteCluster

func (p *IBMCloudProvisioner) DeleteCluster(ctx context.Context, cfg *envconf.Config) error

func (*IBMCloudProvisioner) DeleteVPC

func (p *IBMCloudProvisioner) DeleteVPC(ctx context.Context, cfg *envconf.Config) error

func (*IBMCloudProvisioner) GetProperties

func (p *IBMCloudProvisioner) GetProperties(ctx context.Context, cfg *envconf.Config) map[string]string

func (*IBMCloudProvisioner) GetVPCDefaultSecurityGroupID

func (p *IBMCloudProvisioner) GetVPCDefaultSecurityGroupID(vpcID string) (string, error)

func (*IBMCloudProvisioner) UploadPodvm

func (p *IBMCloudProvisioner) UploadPodvm(imagePath string, ctx context.Context, cfg *envconf.Config) error

type IBMSelfManagedClusterProvisioner

type IBMSelfManagedClusterProvisioner struct {
}

IBMSelfManagedClusterProvisioner implements the CloudProvisioner interface for self-managed k8s cluster in ibmcloud VSI.

func (*IBMSelfManagedClusterProvisioner) CreateCluster

func (*IBMSelfManagedClusterProvisioner) CreateVPC

func (*IBMSelfManagedClusterProvisioner) DeleteCluster

func (*IBMSelfManagedClusterProvisioner) DeleteVPC

func (*IBMSelfManagedClusterProvisioner) GetProperties

func (*IBMSelfManagedClusterProvisioner) UploadPodvm

func (p *IBMSelfManagedClusterProvisioner) UploadPodvm(imagePath string, ctx context.Context, cfg *envconf.Config) error

type QuayTagsResponse

type QuayTagsResponse struct {
	Tags []struct {
		Name     string `json:"name"`
		Manifest bool   `json:"is_manifest_list"`
	} `json:"tags"`
	Others map[string]interface{} `json:"-"`
}

Jump to

Keyboard shortcuts

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