Documentation ¶
Index ¶
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 pkger.
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 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.
Click to show internal directories.
Click to hide internal directories.