Skip to content

Commit

Permalink
Lower errors verbosity for kube-env label missing
Browse files Browse the repository at this point in the history
  • Loading branch information
azylinski committed Apr 12, 2024
1 parent 8273c9c commit bdd333c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cluster-autoscaler/cloudprovider/gce/templates.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,13 +144,13 @@ func (t *GceTemplateBuilder) MigOsInfo(migId string, kubeEnv KubeEnv) (MigOsInfo
osDistribution := extractOperatingSystemDistributionFromKubeEnv(kubeEnv)
if osDistribution == OperatingSystemDistributionUnknown {
osDistribution = OperatingSystemDistributionDefault
klog.Errorf("could not obtain os-distribution from kube-env from template metadata, falling back to %q", osDistribution)
klog.V(5).Infof("could not obtain os-distribution from kube-env from template metadata, falling back to %q", osDistribution)
}

arch, err := extractSystemArchitectureFromKubeEnv(kubeEnv)
if err != nil {
arch = DefaultArch
klog.Errorf("Couldn't extract architecture from kube-env for MIG %q, falling back to %q. Error: %v", migId, arch, err)
klog.V(5).Infof("Couldn't extract architecture from kube-env for MIG %q, falling back to %q. Error: %v", migId, arch, err)
}
return NewMigOsInfo(os, osDistribution, arch), nil
}
Expand Down

0 comments on commit bdd333c

Please sign in to comment.