Documentation ¶
Index ¶
- func Diff(currentDeployment azureresource.DeploymentExtended, ...) ([]string, error)
- func GetARMTemplate() (map[string]interface{}, error)
- func IsWrongTypeError(err error) bool
- func NewDeployment(templateParams Parameters) (azureresource.Deployment, error)
- type OSImage
- type Parameters
- type Scaling
- type SpotInstanceConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Diff ¶
func Diff(currentDeployment azureresource.DeploymentExtended, desiredDeployment azureresource.Deployment) ([]string, error)
func GetARMTemplate ¶
GetARMTemplate returns the ARM template reading a json file locally using go embed.
func IsWrongTypeError ¶
IsWrongTypeError asserts wrongTypeError.
func NewDeployment ¶
func NewDeployment(templateParams Parameters) (azureresource.Deployment, error)
Types ¶
type Parameters ¶
type Parameters struct { AzureOperatorVersion string ClusterID string DataDisks []v1alpha3.DataDisk EnableAcceleratedNetworking bool KubernetesVersion string NodepoolName string OSImage OSImage Scaling Scaling SpotInstanceConfig SpotInstanceConfig StorageAccountType string SubnetName string VMCustomData string VMSize string VnetName string Zones []string }
func NewFromDeployment ¶
func NewFromDeployment(deployment azureresource.Deployment) (Parameters, error)
func NewFromExtendedDeployment ¶
func NewFromExtendedDeployment(deployment azureresource.DeploymentExtended) (Parameters, error)
func (Parameters) ToDeployParams ¶
func (p Parameters) ToDeployParams() map[string]interface{}
ToDeployParams prepares the parameters to the format that ARM API understand. We also try to use the same types that the ARM API will return, that's why we convert to float64 or interface{} types.
type SpotInstanceConfig ¶ added in v5.4.0
Click to show internal directories.
Click to hide internal directories.