Skip to content

Commit 923f4e0

Browse files
BREAKING: disable artifact streaming (#1213)
Co-authored-by: tallaxes <[email protected]>
1 parent 1396028 commit 923f4e0

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

pkg/providers/imagefamily/customscriptsbootstrap/provisionclientbootstrap.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,11 @@ func (p *ProvisionClientBootstrap) ConstructProvisionValues(ctx context.Context)
107107
labels.AddAgentBakerGeneratedLabels(p.ResourceGroup, options.FromContext(ctx).KubeletIdentityClientID, nodeLabels)
108108

109109
// artifact streaming is not yet supported for Arm64, for Ubuntu 20.04, Ubuntu 24.04, and for Azure Linux v3
110-
enableArtifactStreaming := p.Arch == karpv1.ArchitectureAmd64 &&
111-
(p.OSSKU == ImageFamilyOSSKUUbuntu2204 || p.OSSKU == ImageFamilyOSSKUAzureLinux2)
110+
// enableArtifactStreaming := p.Arch == karpv1.ArchitectureAmd64 &&
111+
// (p.OSSKU == ImageFamilyOSSKUUbuntu2204 || p.OSSKU == ImageFamilyOSSKUAzureLinux2)
112+
// Temporarily disable artifact streaming altogether, until node provisioning performance is fixed
113+
// (or until we make artifact streaming configurable)
114+
enableArtifactStreaming := false
112115

113116
// unspecified FIPSMode is effectively no FIPS for now
114117
enableFIPS := lo.FromPtr(p.FIPSMode) == v1beta1.FIPSModeFIPS

pkg/providers/imagefamily/customscriptsbootstrap/provisionclientbootstrap_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -333,8 +333,8 @@ func TestConstructProvisionValues(t *testing.T) {
333333
// Check system mode
334334
assert.Equal(t, models.AgentPoolModeSystem, *profile.Mode)
335335

336-
// Check artifact streaming is enabled
337-
assert.True(t, *profile.ArtifactStreamingProfile.Enabled)
336+
// Check artifact streaming is disabled
337+
assert.False(t, *profile.ArtifactStreamingProfile.Enabled)
338338

339339
// Check FIPS enablement (unset/nil FIPSMode is effectively false for now)
340340
assert.False(t, *profile.EnableFIPS)
@@ -700,8 +700,8 @@ func TestArtifactStreamingEnablement(t *testing.T) {
700700
ossku: customscriptsbootstrap.ImageFamilyOSSKUUbuntu2204,
701701
kubernetesVersion: "1.31.0",
702702
imageDistro: "aks-ubuntu-containerd-22.04-gen2",
703-
expectedArtifactStreamingEnabled: true,
704-
description: "Artifact streaming should be enabled for AMD64 with Ubuntu2204",
703+
expectedArtifactStreamingEnabled: false,
704+
description: "Artifact streaming should be disabled for AMD64 with Ubuntu2204",
705705
},
706706
{
707707
name: "AMD64 Ubuntu2404 - Artifact streaming disabled",
@@ -718,8 +718,8 @@ func TestArtifactStreamingEnablement(t *testing.T) {
718718
ossku: customscriptsbootstrap.ImageFamilyOSSKUAzureLinux2,
719719
kubernetesVersion: "1.31.0",
720720
imageDistro: "aks-azurelinux-v2-gen2",
721-
expectedArtifactStreamingEnabled: true,
722-
description: "Artifact streaming should be enabled for AMD64 with AzureLinux2",
721+
expectedArtifactStreamingEnabled: false,
722+
description: "Artifact streaming should be disabled for AMD64 with AzureLinux2",
723723
},
724724
{
725725
name: "AMD64 AzureLinux3 - Artifact streaming disabled",

0 commit comments

Comments
 (0)