Skip to content

Commit

Permalink
Merge pull request kubernetes#16783 from justinsb/cleanup_nodeup_kube…
Browse files Browse the repository at this point in the history
…apierver

cleanup: better error messages for kube-apiserver healthcheck manifest
  • Loading branch information
k8s-ci-robot authored Aug 27, 2024
2 parents 722e4b1 + 733cce1 commit 4273384
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nodeup/pkg/model/kube_apiserver_healthcheck.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ func (b *KubeAPIServerBuilder) addHealthcheckSidecar(ctx context.Context, pod *c

data, err := p.ReadFile(ctx)
if err != nil {
return fmt.Errorf("error reading kube-apiserver-healthcheck manifest %s: %v", manifest.Path, err)
return fmt.Errorf("error reading kube-apiserver-healthcheck manifest %s: %w", p, err)
}

sidecar := &corev1.Pod{}
if err := yaml.Unmarshal(data, sidecar); err != nil {
return fmt.Errorf("error parsing kube-apiserver-healthcheck manifest %s: %v", manifest.Path, err)
return fmt.Errorf("error parsing kube-apiserver-healthcheck manifest %s: %w", p, err)
}

// Quick-and-dirty merge of the fields we care about
Expand Down

0 comments on commit 4273384

Please sign in to comment.