Skip to content

Commit

Permalink
Merge pull request kubernetes#6706 from azylinski/lower-kube-env-err
Browse files Browse the repository at this point in the history
Lower errors verbosity for kube-env label missing
  • Loading branch information
k8s-ci-robot authored Apr 12, 2024
2 parents 8273c9c + bdd333c commit 59882e0
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 59882e0

Please sign in to comment.