Skip to content

Commit

Permalink
fix: removing nodeclass usage of artifact streaming enabling by default
Browse files Browse the repository at this point in the history
  • Loading branch information
Bryce-Soghigian committed May 7, 2024
1 parent d7e5340 commit 6b99af2
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 13 deletions.
4 changes: 0 additions & 4 deletions pkg/apis/crds/karpenter.azure.com_aksnodeclasses.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,6 @@ spec:
AKSNodeClassSpec is the top level specification for the AKS Karpenter Provider.
This will contain configuration necessary to launch instances in AKS.
properties:
artifactStreamingEnabled:
default: false
description: AritfactStreamingEnabled is a flag to enable https://aka.ms/artifactstreaming
type: boolean
imageFamily:
default: Ubuntu2204
description: ImageFamily is the image family that instances use.
Expand Down
3 changes: 0 additions & 3 deletions pkg/apis/v1alpha2/aksnodeclass.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ import (
// AKSNodeClassSpec is the top level specification for the AKS Karpenter Provider.
// This will contain configuration necessary to launch instances in AKS.
type AKSNodeClassSpec struct {
// AritfactStreamingEnabled is a flag to enable https://aka.ms/artifactstreaming
// +kubebuilder:default=false
ArtifactStreamingEnabled *bool `json:"artifactStreamingEnabled,omitempty"`
// +kubebuilder:default=128
// +kubebuilder:validation:Minimum=100
// osDiskSizeGB is the size of the OS disk in GB.
Expand Down
3 changes: 1 addition & 2 deletions pkg/providers/imagefamily/bootstrap/aksbootstrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ var (
KubenetTemplate: base64.StdEncoding.EncodeToString(kubenetTemplate), // s
ContainerdConfigContent: "", // kd
IsKata: false, // n
ArtifactStreamingEnabled: false, // td
ArtifactStreamingEnabled: true, // td
}
)

Expand Down Expand Up @@ -449,7 +449,6 @@ func (a AKS) applyOptions(nbv *NodeBootstrapVariables) {
nbv.GPUDriverVersion = a.GPUDriverVersion
nbv.GPUImageSHA = a.GPUImageSHA
}
nbv.ArtifactStreamingEnabled = a.ArtifactStreamingEnabled
nbv.NeedsCgroupV2 = true
// merge and stringify labels
kubeletLabels := lo.Assign(kubeletNodeLabelsBase, a.Labels)
Expand Down
1 change: 0 additions & 1 deletion pkg/providers/imagefamily/bootstrap/bootstrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ type Options struct {
GPUDriverVersion string
GPUImageSHA string
SubnetID string
ArtifactStreamingEnabled bool
}

// Bootstrapper can be implemented to generate a bootstrap script
Expand Down
1 change: 0 additions & 1 deletion pkg/providers/imagefamily/ubuntu_2204.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ func (u Ubuntu2204) UserData(kubeletConfig *corev1beta1.KubeletConfiguration, ta
GPUDriverVersion: u.Options.GPUDriverVersion,
GPUImageSHA: u.Options.GPUImageSHA,
SubnetID: u.Options.SubnetID,
ArtifactStreamingEnabled: u.Options.ArtifactStreamingEnabled,
},
Arch: u.Options.Arch,
TenantID: u.Options.TenantID,
Expand Down
1 change: 0 additions & 1 deletion pkg/providers/launchtemplate/launchtemplate.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ func (p *Provider) getStaticParameters(ctx context.Context, instanceType *cloudp
ClusterName: options.FromContext(ctx).ClusterName,
ClusterEndpoint: p.clusterEndpoint,
Tags: nodeClass.Spec.Tags,
ArtifactStreamingEnabled: lo.FromPtr(nodeClass.Spec.ArtifactStreamingEnabled),
Labels: labels,
CABundle: p.caBundle,
Arch: arch,
Expand Down
1 change: 0 additions & 1 deletion pkg/providers/launchtemplate/parameters/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ type StaticParameters struct {
NetworkPolicy string
KubernetesVersion string
SubnetID string
ArtifactStreamingEnabled bool

Tags map[string]string
Labels map[string]string
Expand Down

0 comments on commit 6b99af2

Please sign in to comment.