Documentation ¶
Index ¶
- Constants
- Variables
- func SetupOCIAuth(ctx context.Context, client kubernetes.Interface, v *Variables) error
- type NodePool
- type Subnet
- type Variables
- func (v *Variables) GetCAPIClusterKubeConfig(ctx context.Context) (*store.KubeConfig, error)
- func (v *Variables) GetConfigurationProvider() common.ConfigurationProvider
- func (v *Variables) IsSingleNodeCluster() bool
- func (v *Variables) NodeCount() (*types.NodeCount, error)
- func (v *Variables) ParseNodePools() ([]NodePool, error)
- func (v *Variables) SetControlPlaneHash()
- func (v *Variables) SetDockerConfigJson() error
- func (v *Variables) SetDynamicValues(ctx context.Context) error
- func (v *Variables) SetHashes()
- func (v *Variables) SetNodePoolHash()
- func (v *Variables) SetQuickCreateVCNInfo(ctx context.Context, di dynamic.Interface) error
- func (v *Variables) SetUpdateValues(ctx context.Context, vNew *Variables) error
- func (v *Variables) Version() *types.KubernetesVersion
Constants ¶
View Source
const ( DefaultOCICPUs = 2 DefaultMemoryGbs = 16 DefaultVolumeGbs = 100 DefaultNodePVTransitEncryption = true DefaultVMShape = "VM.Standard.E4.Flex" ProviderId = `oci://{{ ds["id"] }}` DefaultCNEPath = "olcne" DefaultImagePullSecretName = "verrazzano-container-registry" DefaultImagePullSecretRegistry = "ghcr.io" ImagePullConfigJson = `` /* 136-byte string literal not displayed */ DefaultVerrazzanoResource = `` /* 1052-byte string literal not displayed */ )
Variables ¶
Functions ¶
func SetupOCIAuth ¶
SetupOCIAuth dynamically loads OCI authentication
Types ¶
type Variables ¶
type Variables struct { Name string DisplayName string Namespace string Hash string ControlPlaneHash string QuickCreateVCN bool VCNID string WorkerNodeSubnet string ControlPlaneSubnet string LoadBalancerSubnet string // Parsed subnets Subnets []Subnet `json:"subnets,omitempty"` PodCIDR string ClusterCIDR string ProxyEndpoint string // Cluster topology and configuration KubernetesVersion string OCNEVersion string SSHPublicKey string ControlPlaneShape string ControlPlaneReplicas int64 ControlPlaneOCPUs int64 ControlPlaneMemoryGbs int64 ControlPlaneVolumeGbs int64 NodePVTransitEncryption bool RawNodePools []string ApplyYAMLS []string // Parsed node pools NodePools []NodePool // ImageID is looked up by display name ImageDisplayName string ImageID string ActualImage string PreOCNECommands []string PostOCNECommands []string SkipOCNEInstall bool // Addons, images, and registries InstallVerrazzano bool // Set to true during Updates UninstallVerrazzano bool VerrazzanoResource string VerrazzanoVersion string VerrazzanoTag string InstallCalico bool InstallCCM bool CNEPath string TigeraTag string ETCDImageTag string CoreDNSImageTag string // Private registry PrivateRegistry string // Image pull secret CreateImagePullSecrets bool DeleteImagePullSecrets bool ImagePullSecretUsername string ImagePullSecretPassword string ImagePullSecretEmail string ImagePullSecretNamespace string DockerConfigJson string // OCI Credentials CloudCredentialId string CompartmentID string Fingerprint string PrivateKey string PrivateKeyPassphrase string Region string Tenancy string User string // Supplied for templating ProviderId string }
Variables are parameters for cluster lifecycle operations
func NewFromOptions ¶
NewFromOptions creates a new Variables given *types.DriverOptions
func (*Variables) GetCAPIClusterKubeConfig ¶
GetCAPIClusterKubeConfig fetches the cluster's kubeconfig
func (*Variables) GetConfigurationProvider ¶
func (v *Variables) GetConfigurationProvider() common.ConfigurationProvider
GetConfigurationProvider creates a new configuration provider from Variables
func (*Variables) IsSingleNodeCluster ¶
func (*Variables) ParseNodePools ¶
func (*Variables) SetControlPlaneHash ¶
func (v *Variables) SetControlPlaneHash()
func (*Variables) SetDockerConfigJson ¶ added in v0.22.0
SetDockerConfigJson sets the docker configuration payload for the image pull secret
func (*Variables) SetDynamicValues ¶
SetDynamicValues sets dynamic values
func (*Variables) SetNodePoolHash ¶
func (v *Variables) SetNodePoolHash()
func (*Variables) SetQuickCreateVCNInfo ¶ added in v0.17.0
func (*Variables) SetUpdateValues ¶
SetUpdateValues are the values potentially changed during an update operation
func (*Variables) Version ¶
func (v *Variables) Version() *types.KubernetesVersion
Version is the cluster Kubernetes version
Click to show internal directories.
Click to hide internal directories.