You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 24, 2023. It is now read-only.
Expected behavior
The type of VirtualMachineScaleSetExtension should be changed to Compute.AKS.Windows.Billing
or Compute.Engine.Linux.Billing but it is still Compute.AKS-Engine.Linux.Billing AKS Engine version
0.45.0
Kubernetes version
1.16.1
Additional context
I use below snippet code to verify it
// You can edit this code!
// Click here and start typing.
package main
import (
"encoding/json"
"fmt"
"github.com/Azure/go-autorest/autorest/to"
)
type VirtualMachineScaleSetExtension struct {
// Name - The name of the extension.
Name *string `json:"name,omitempty"`
// Type - READ-ONLY; Resource type
Type *string `json:"type,omitempty"`
*VirtualMachineScaleSetExtensionProperties `json:"properties,omitempty"`
// ID - READ-ONLY; Resource Id
ID *string `json:"id,omitempty"`
}
type VirtualMachineScaleSetExtensionProperties struct {
// ForceUpdateTag - If a value is provided and is different from the previous value, the extension handler will be forced to update even if the extension configuration has not changed.
ForceUpdateTag *string `json:"forceUpdateTag,omitempty"`
// Publisher - The name of the extension handler publisher.
Publisher *string `json:"publisher,omitempty"`
// Type - Specifies the type of the extension; an example is "CustomScriptExtension".
Type *string `json:"type,omitempty"`
// TypeHandlerVersion - Specifies the version of the script handler.
TypeHandlerVersion *string `json:"typeHandlerVersion,omitempty"`
// AutoUpgradeMinorVersion - Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true.
AutoUpgradeMinorVersion *bool `json:"autoUpgradeMinorVersion,omitempty"`
// Settings - Json formatted public settings for the extension.
Settings interface{} `json:"settings,omitempty"`
// ProtectedSettings - The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all.
ProtectedSettings interface{} `json:"protectedSettings,omitempty"`
// ProvisioningState - READ-ONLY; The provisioning state, which only appears in the response.
ProvisioningState *string `json:"provisioningState,omitempty"`
// ProvisionAfterExtensions - Collection of extension names after which this extension needs to be provisioned.
ProvisionAfterExtensions *[]string `json:"provisionAfterExtensions,omitempty"`
}
func main() {
e := VirtualMachineScaleSetExtension{
Name: to.StringPtr("haha"),
VirtualMachineScaleSetExtensionProperties: &VirtualMachineScaleSetExtensionProperties{
Publisher: to.StringPtr("Microsoft.AKS"),
Type: to.StringPtr("Compute.AKS-Engine.Linux.Billing"),
TypeHandlerVersion: to.StringPtr("1.0"),
AutoUpgradeMinorVersion: to.BoolPtr(true),
Settings: map[string]interface{}{},
},
}
s, _ := json.Marshal(e)
fmt.Println(string(s))
e.Type = to.StringPtr("Compute.AKS.Windows.Billing")
e.VirtualMachineScaleSetExtensionProperties.Type = to.StringPtr("Compute.AKS.Windows.Billing")
s, _ = json.Marshal(e)
fmt.Println(string(s))
}
⚠️ IMPORTANT: this needs to be fixed before the next Azure SDK for Go update. After offline discussion we realized this was due to a change in the SDK since v0.36.0 (version AKS Engine is currently using) and now.
Describe the bug
In CreateAgentVMSS, the type of VirtualMachineScaleSetExtension is not set correctly.
https://github.com/Azure/aks-engine/blob/master/pkg/engine/virtualmachinescalesets.go#L779
VMSS:
Generated ARM template:
Steps To Reproduce
Expected behavior
The type of VirtualMachineScaleSetExtension should be changed to
Compute.AKS.Windows.Billing
or
Compute.Engine.Linux.Billing
but it is stillCompute.AKS-Engine.Linux.Billing
AKS Engine version
0.45.0
Kubernetes version
1.16.1
Additional context
I use below snippet code to verify it
Output:
The text was updated successfully, but these errors were encountered: